Disable map drag and scroll wheel zoom in leaflet maps

Sandeep Kumar Mishra
Flippercode
in Blog Posts
December 26, 2019
5 min read

About This Demo –

You can disable map drag and mouse scroll wheel so the map is completely locked and not able to move. This means that when your mouse moves over the Leaflet Map, the overlay will be covering it and it won’t zoom in and out of the map. Below is an example of a map.