If you expect to have more than 100 to 200 markers you need to consider some clustering solution. For a few thousand markers you can do the clustering on the client, for several thousand you need to do it on the server.
This is a demo that does it on the server (2 different versions): http://maps.forum.nu/server_side_clusterer/ http://maps.forum.nu/server_side_clusterer/index2.php -- Marcelo - http://maps.forum.nu -- On Apr 7, 4:17 pm, Alexei <[email protected]> wrote: > Hello everybody, > > I´ve searching for an information in the web, but I can´t find a good > answer. > > I´m developing a map web page that users will insert markers into. A > lot of markers I mean! > > And each marker (overlay) will need to have a Listener. When the user > clicks in the marker, a openInfoWindowHtml with some informations > about the place will be opened. > > What I´m doing is a loop from the first to the last marker. I add the > marker to the map and I add a Listener to the click of this marker. > > Actually I´m testing the page with 10 or 20 markers. It works fine. > But I don´t know how it will work with a lot of overlays and overlays > Listeners (this is my first map page). > > The way I´m doing is the right way to do this? > Or is there any other better way? > > Considering then I know that my map will have many markers? > > Thanks everybody --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
