Since there is a limited number of map types, you could also create
your own variable.
var map_type;
if (map.getCurrentMapType() == G_NORMAL_MAP)
map_type = "normal";
if (map.getCurrentMapType() == G_SATELLITE_MAP)
map_type = "satellite";
if (map.getCurrentMapType() == G_HYBRID_MAP)
map_type = "hybrid";
When reconstructing the map you just do it reverse:
if (map_type == "normal")
map.setMapType(G_NORMAL_MAP);
and so on.
On Dec 8, 1:56 am, Mike Williams <[EMAIL PROTECTED]> wrote:
> I use
> map.getCurrentMapType().getUrlArg();
> which returns a value that is used as a URL parameter value to identify
> the map type in permalinks to maps.google.com.
>
> http://econym.org.uk/gmap/example_linktothis.htm?lat=53&lng=-3&zoom=1...
> pe=k
>
> --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
-~----------~----~----~----~------~----~------~--~---