How to change MapTypeid in Google Maps API v3?

I need to change the map type from RoadMap to Hybrid when the user clicks on the marker (it automatically zooms in and centers it already)

I cannot find anything in the Google API documentation for 3.2 on how to do this. Any help would be appreciated!

+5
source share
1 answer

You need to call setMapTypeId on map :

setMapTypeId(mapTypeId:MapTypeId)

where mapTypeId is HYBRID.

+8
source

All Articles