How can I temporary disable zoming/draging the Mapview in Leaflet.js
Tried so many ways but without any luck.
It's important to make it temporary and I also need the option to enable again.
Disable Leaflet Interaction – How to Temporarily Disable Leaflet Interaction
leaflet
Related Question
- [GIS] Leaflet Polyline with custom fill pattern
- [GIS] How to use Leaflet Marker Cluster on markers from Leaflet-layerJSON (Overpass API)
- [GIS] Making info panel clickable in Leaflet
- [GIS] Disable Leaflet WMS getFeatureInfo popup while using the Measure tool
- [GIS] Leaflet populate L.divIcon marker’s html option from feature properties
Best Answer
your going to want to do (assuming your map is call
map
)turn it on again with