Hi there,

i have a map that will need a lot of markers (hundreds or even
thousands).

I want to change the size of the markers according to a zoom level. If
the zoom is low, the markers size will be small.

When i load the page, all the markers are attached to the map. In
order to change their size whenever the zoom level is changed, i think
i need to store "references" to them. So, i have an array in
javascript to store all the markers.

Then, i listen to the event "zoomend" to detect changes in the zoom
level. When i need to change the markers size, i run through the
entire array, and i use functions map.removeOverlay(marker) and then
map.addOverlay(marker) to update the markers size.

Do you think this is a good approach to this problem? I think that
GMarkerManager doesn't have options to deal with this problem..


Thanks and best regards!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to