Forked from carolina-vallejo/disable-interaction-leaflet.js
Created
May 21, 2021 17:56
-
-
Save mattsrinc/b7f0ac4ea3c60897858a153eb04c6b25 to your computer and use it in GitHub Desktop.
disable interaction leaflet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leafletMap.dragging.disable(); | |
leafletMap.touchZoom.disable(); | |
leafletMap.doubleClickZoom.disable(); | |
leafletMap.scrollWheelZoom.disable(); | |
leafletMap.boxZoom.disable(); | |
leafletMap.keyboard.disable(); | |
if (leafletMap.tap) leafletMap.tap.disable(); | |
document.getElementById('mapid').style.cursor = 'default'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment