Setting Boundaries around city in google maps

后端 未结 3 1798
生来不讨喜
生来不讨喜 2021-01-03 16:27

I\'m looking for a way to set boundaries around a specific city/town within the Google maps API V3 using JavaScript

Is this type of thing even supported within the A

3条回答
  •  青春惊慌失措
    2021-01-03 16:37

    1. Use map.fitBounds() or map.setCenter() to center the city/country/region on the map.
    2. Use draggable: false option to disable panning.

提交回复
热议问题