On Dec 22, 11:24 am, "David G." <darka...@gmail.com> wrote: > I have a bunch of locators and need to load the markers depending on > where I am, avoiding to load all the markers... > > Any suggestions?
map.getBounds() will return a GLatLngBounds() object containing the visible area of the map, so you can get the lat and long of the edges. Pass those values to your server-side script which delivers the marker data so that it can restrict the markers to that area. You may need to consider what happens when the map is moved, and you could find that a marker manager is easier to use since a lot of the work has already been written for you (but that does mean that everything is done client-side). Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---