Change Google Maps v3 mapOptions object after load

前端 未结 3 699
小蘑菇
小蘑菇 2020-12-29 22:55

How can i modify a V3 map\'s mapOptions (after the initial map has been loaded)?

Specifically, I would like to be able to flip the

draggable: false
         


        
3条回答
  •  既然无缘
    2020-12-29 23:13

    Google Maps JavaScript API V3.25 update

    Note that map.set() does not work in newer versions of Maps API. You have to use map.setOptions()

    Source: Google Maps Reference

提交回复
热议问题