Cool.  I assumed it would be resource heavy. The only load issue is
the actual loading of the HTML extra marker stuff. I was hoping that
the following approach might work, then I could have the markers
change with all the zoom levels and not have to restrict the zoom
level in order to deal with the HTML load issue.

define custom icon globally.
GEvent.addListener(map, "zoomend", function(oldzoom,zoom) {
document.getElementById("zoom").innerHTML=zoom;
customIcon.iconSize = new GSize(50,50);
});

It doesn't work, but perhaps I'm misunderstanding how to dynamically
redefine the iconSize? Or maybe its just not possible to globally
redefine the markers once they are passed to the GMarkerManager?

Thanks,
James Love
http://www.jameslove.com

On Jan 26, 1:35 pm, Mike Williams <[email protected]> wrote:
> The normal way to get (G)MarkerManager to do that is to create separate
> sets of markers (with different icons) for each zoom level.
>
> You might think it's a bit wasteful to have multiple markers for each
> point, but it actually works quite well, because inactive markers don't
> consume much resources, and (G)MarkerManager doesn't have to scan
> through the extra ones because it knows that they're not used in the
> current zoom level.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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