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:
Jon Atkins 2014-07-02 03:10:40 +01:00
parent 19b504ef16
commit 5520f927a9

View File

@ -151,7 +151,8 @@ window.setupMap = function() {
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true,
minZoom: 1,
// 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