diff --git a/dist/angular-leaflet-directive.js b/dist/angular-leaflet-directive.js index b4e92c96..b64d6664 100644 --- a/dist/angular-leaflet-directive.js +++ b/dist/angular-leaflet-directive.js @@ -2283,6 +2283,14 @@ angular.module('leaflet-directive').factory('leafletMapDefaults', ["$q", "leafle mapDefaults.minZoom = d.minZoom; } + if (isDefined(d.zoomDelta)) { + mapDefaults.zoomDelta = d.zoomDelta; + } + + if (isDefined(d.zoomSnap)) { + mapDefaults.zoomSnap = d.zoomSnap; + } + if (isDefined(d.zoomAnimation)) { mapDefaults.zoomAnimation = d.zoomAnimation; } @@ -2346,6 +2354,14 @@ angular.module('leaflet-directive').factory('leafletMapDefaults', ["$q", "leafle newDefaults.minZoom = userDefaults.minZoom; } + if (isDefined(userDefaults.zoomDelta)) { + newDefaults.zoomDelta = userDefaults.zoomDelta; + } + + if (isDefined(userDefaults.zoomSnap)) { + newDefaults.zoomSnap = userDefaults.zoomSnap; + } + if (isDefined(userDefaults.zoomAnimation)) { newDefaults.zoomAnimation = userDefaults.zoomAnimation; }