Restrict Map Panning

Restrict map panning to specific coordinates or completely disable it

Map Styles
mapbox-style-satellite

Satellite

by Mapbox

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.

You’re a few clicks away
from discovering the joy of mapping