100,000 or 1,000,000 markers are possible if you use the right kind of marker.
Look at a standard maps.google.com page, zoom in to virtually any city and do a common search like for "hotels." If you'll notice, a lot of little red dots appear that look like mini-markers. They are in fact a tile layer, not actual markers. You can do the same thing. Create a tile layer with your points that show up as some sort of icon. When overlaid on the map, they will appear to be markers but not take up a single DOM node (outside the tile itself). This method works quite well. Clicking on one of these points can be handled any number of ways, the easiest of which is to make an AJAX call to your server to retrieve the information to actually produce an infowindow. It's a bit slower than pre-loading the data into the page and acting on it directly but when you consider the practical limit of 200 markers then that slight lag to ask the server for the data is well within limits. I created a nifty page that loads the meta data for the points with cookies here: http://www.usnaviguide.com/ws-2008-02/demotilecookies-tilelayer.htm The source code for the server side as well as data and everything else needed to reproduce this page are available as a download. -John Coryat http://maps.huge.info http://www.usnaviguide.com http://www.zipmaps.net
-- 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.
