On Jul 28, 12:30 pm, MarkusF <[email protected]> wrote:
> Sorry, may be a silly question, but how to change the map type in
> running mode ?
> I know that I can set the maptype via constant by using:
>
>    map.setMapType(G_PHYSICAL_MAP);

maptype is a GMapType object.
http://code.google.com/apis/maps/documentation/reference.html#GMapType

>
> But how to change it when getting the new maptype f.e. via ajax ?
> This might not work:
>
>    maptype = 'G_PHYSICAL_MAP';
>    map.setMapType(maptype);

maptype is a string.

which is not a GMapType object, so setMapType fails.

>
> Any help appreciated.....Many thanks
>
> Markus
--~--~---------~--~----~------------~-------~--~----~
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