From 6f6ceda7cec294c1375d74a8b8a8558fe5236467 Mon Sep 17 00:00:00 2001 From: Barak Pinchovski Date: Mon, 5 Feb 2018 08:19:16 +0000 Subject: [PATCH] issue-#1180, Add support in zoomDelta and zoomSnap --- dist/angular-leaflet-directive.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; }