Restrict Map Panning
Restrict map panning to specific coordinates or completely disable it
You can restrict or completely disable map panning using the plugin settings. To restrict panning, simply enter the latitude and longitude limits for the Southwest and Northeast points. When these settings are activated, users will not be able to move the map beyond these boundaries. If needed, you can also completely disable map panning.
On this page, there are two demo maps: in the first, panning is completely disabled, and in the second, map panning is restricted to the specified Southwest and Northeast points.
Related Examples
Previous Example
Adjust the initial pitch and bearing of your map
Next Example