tweak leaflet map settings - no 'bounce' at zoom limits for touch devices. may prevent unnecessary redraws on mobile, which may help performance in some cases
This commit is contained in:
parent
19b504ef16
commit
5520f927a9
@ -151,7 +151,8 @@ window.setupMap = function() {
|
|||||||
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true,
|
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true,
|
||||||
minZoom: 1,
|
minZoom: 1,
|
||||||
// zoomAnimation: false,
|
// zoomAnimation: false,
|
||||||
markerZoomAnimation: false
|
markerZoomAnimation: false,
|
||||||
|
bounceAtZoomLimits: false
|
||||||
});
|
});
|
||||||
|
|
||||||
// add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements
|
// add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user