Answer the question
In order to leave comments, you need to log in
What is the way to prevent openstreetmap rescaling under leafletjs (not mapbox)?
Google Maps has one, Yandex.Maps has another (and mapbox has "zoomControl: false")... What about Openstreetmap?
Answer the question
In order to leave comments, you need to log in
There is a prettier solution:
touchZoom = false
scrollWheelZoom = false
doubleClickZoom = false
var map = L.map('map', {
touchZoom = false,
scrollWheelZoom = false,
doubleClickZoom = false
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question