Skip to content
Snippets Groups Projects
Commit 7a821f64 authored by Tom Robinson's avatar Tom Robinson
Browse files

Disable leaflet pan/zoom for now

parent 7b845cd7
No related branches found
No related tags found
No related merge requests found
......@@ -15,10 +15,19 @@ const LeafletChoropleth = ({ series, geoJson, minimalBounds, getColor, onHoverFe
element.style.backgroundColor = "transparent";
const map = L.map(element, {
scrollWheelZoom: false,
zoomSnap: 0,
worldCopyJump: true,
attributionControl: false
attributionControl: false,
// disable zoom controls
dragging: false,
tap: false,
zoomControl: false,
touchZoom: false,
doubleClickZoom: false,
scrollWheelZoom: false,
boxZoom: false,
keyboard: false,
});
// L.tileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment