On Fri, Jan 23, 2009 at 12:36 AM, [email protected] <[email protected] > wrote:
> > On Jan 22, 6:06 pm, AgilityNerd <[email protected]> wrote: > > Hi, > > I'm looking to create a side bar for my map that displays a title and > > link for each marker displayed within the map's current bounding box. > > > > It looks like MarkerManager will generate an event containing the new > > bounding box and number of visible points upon zoom and pan. But I'd > > rather not iterate through my markers find the ones that are within > > the bounding box since MM just did it in order to update the display > > and return the count. > > > > I was thinking of modifying a copy of the script to return the zoom > > level and an array of visible markers and thought someone might have > > already made that modification? It seems like a pretty useful > > modification but maybe I'm not using the script in the manner in which > > it was intended. > > > > Any comments or suggestions would be appreciated. > > Something like this? > > http://groups.google.com/group/Google-Maps-API/browse_frm/thread/649d4cb1a7e428d/555b7d7709ee36ae?hl=en&lnk=gst&q=open+source+marker+manager+visible+markers#555b7d7709ee36ae > > -- Larry > Larry, Thanks for the reply. But that's actually what I'm trying to avoid. I don't want to requery my list of points for the ones that are visible within the bounding box. MarkerManager has to go through the work of comparing all the points at a given zoom level to determine which ones to add/remove overlay() and if it were to return that list I could use each marker in the list as a hash access to get the side bar info. It would allow all the work to be done in the browser quickly for the < 100 visible points without having to hit the server or redoing the bounding box calculation over 1000s of points. Thanks, Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
