开发者

How to change MapTypeid in Google Maps API v3?

开发者 https://www.devze.com 2023-01-15 05:25 出处:网络
I need to change the map type from RoadMap to Hybrid when a user clicks on a marker (it automatically zoom\'s and center\'s on it already)

I need to change the map type from RoadMap to Hybrid when a user clicks on a marker (it automatically zoom's and center's on it already)

I 开发者_开发知识库can't find anything on Google's API documentation for 3.2 on how to do that. Any help would be appreciated!


You need to call setMapTypeId on your map object:

setMapTypeId(mapTypeId:MapTypeId)

where mapTypeId is HYBRID.

0

精彩评论

暂无评论...
验证码 换一张
取 消