Dear all: I have been trying to create a web page that loads a Google Map, fill it with loads of markers (more than 3000) , and depending on its availability, uses a pan view window to take advantage of Streetview.
I was able (after reading lots of posts in this forum, and using Mike Williams' Google map Api tutorial (http://econym.org.uk/gmap/) as a companion reading, to come up with a piece of code that does the following: 1. Creates the map 2. Populates it with markers from a xml file that has all the markers Lat and Lon data, (as well as its corresponding text to display in the pop-up balloon when you click the marker in the map window) 3. Places an hyperlink to each marker in a sidebar, for convenient access to the user. It works perfectly fine (no errors) when all the markers are loaded at once, but the performance (speed) gets seriously affected (because of the large number of markers). I read Mike Williams post where he proposes a useful way of dealing with this problem using Gmarkermanager (http://econym.org.uk/gmap/ markermanager.htm). I used that in my case and here is it: http://robertofilo.007sites.com/Map_points/Beta/Location_mapping.html In this example, it loads 120 data points from an xml file (http:// robertofilo.007sites.com/Map_points/Beta/McDonalds.xml), and separates them into 6 layers (gmarkersA … gmarkersF), that appear depending on the zoom level of the map. I came up with a problem, which is the same that Mike alerts at the end of the page: He refers that if you try to use Gmarkermanager with a side bar, and because marker.openInfoWindow() doesn't work for markers that are not currently attached to the map, when you try to use the hyperlink in the side bar to point to a marker, which is not present at the time (because of the current zoom level), the page generates an error. Mike also proposes an alternate solution at the end of the page, under the title “GMarkerManager with a Sidebar”, that “uses map.openInfoWindow() instead of marker.openInfoWindow(), calculating the map pixel offset from the infoWindowAnchor and the iconAnchor.” However, I load the example that Mike proposes (http://econym.org.uk/ gmap/example_markermanager2.htm) and I don’t see it working. It only loads markers from “Agatwi” to “Chyuna” (in his Rwanda example), but I don’t see how it actually manages the rest of the markers. Can somebody explain how this could work? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
