Restrict Map Panning

Restrict map panning to coordinates or completely disable it

Map Styles


by Mapbox

You can restrict or completely disable map panning using the plugin settings. To restrict, simply key in the latitude and longitude limits of the Southwest and Northeast points. When these settings are activated, users will not be able to move the map beyond these points. You can also completely disable map panning if needed.

On this page are two demo maps — on the first one, the feature is completely disabled, and on the other, map panning is restricted to the Southwest and Northeast points.

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