Google maps set different zoom based on window resize

前端 未结 1 984
悲&欢浪女
悲&欢浪女 2021-02-09 18:27

Following to my previous question Google maps responsive resize I would like to implement a different zoom level based on windows resize, while resizing, so if

1条回答
  •  無奈伤痛
    2021-02-09 18:39

    Construct the area you want to always be in view by creating a LatLngBounds and call map.fitBounds() as suggested by geocodezip.

    0 讨论(0)
提交回复
热议问题