On Jul 8, 7:20 am, Rich <[email protected]> wrote: > Hi, > > I'm trying to come up with a google map that has a layer of markers > over the whole map. > My thinking is that the markers would appear as if a grid over the top > of the map, plotted equal distances apart. Effectively I guess, by > knowing the width and height of the (div) map I could then plot a > marker every 'x' number of pixels on the map. > > This would extend to if the user zoomed in, the amount of markers > showing would still exist. > > I know the concept, but can't think how I would go about this.
Markers are positioned on the map with GLatLngs (geographic coordinates). The API includes these two functions that may help you achieve your desired result: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.fromContainerPixelToLatLng http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.fromLatLngToDivPixel If you run into trouble, post a link to your map. -- Larry > > Hope I was clear?! > > Here's my bad illustration! The crosses (+) are the markers on the map > ________________ > | + + + + + + | > | + + + + + + | > | + + + + + + | > | + + + + + + | > ---------------------------- -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
