Hi,
Just wondering if there is a way to create a copy or clone of the
default map types eg G_NORMAL_MAP , G_SATELLITE_MAP etc.
Unfortunately I cant provide a link, since its password protected but,
basically I'm having issues with setting a min/max zoom resolution
when having multiple google map instances on the same page.
I assume since each instance of a map is using the same default map
types. When I set the min/max resolution for a map using something
like:
var mt = gmap.getMapTypes();
for (var i=0; i < mt.length; i++)
{
mt[i].getMinimumResolution = function() {return
mapMinZoom; }
mt[i].getMaximumResolution = function() {return
mapMaxZoom; }
}
It affects all map instances since their map types all point to the
default map type constants eg G_NORMAL_MAP , G_SATELLITE_MAP etc.
So I'm trying to create a copy of a default map type and add that to
an individual map instance so that when I set that map types min/max
resolution its unique to that map instance.
I've tried to "clone" the G_NORMAL_MAP object using various methods to
clone an object but they end with to much recursion.
Any ideas on how to get a pointer to a new map type based on
G_NORMAL_MAP would be much appreciated
--
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.