Edit this page

pannable Boolean (default: true)

Controls whether the user can pan the map.

Example - make the map non-pannable

<div id="map"></div>
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "&copy; OpenStreetMap"
        center: [32.7758, -96.7966],
        zoom: 9,
        pannable: false
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article