Set a max zoom level on LatLngBounds builder

前端 未结 10 627
慢半拍i
慢半拍i 2020-12-13 00:57

I haven\'t found an answer in my search, there are a few answers on SO but they didn\'t work for me.

I have 2 markers on the map and I am using LatLngBounds builder

10条回答
  •  借酒劲吻你
    2020-12-13 01:13

    Google has added an api for limiting max/min zoom levels.

    GoogleMap.setMaxZoomPreference()
    GoogleMap.setMinZoomPreference()
    

提交回复
热议问题