Skip to content

Commit

Permalink
issue-tombatossals#1180, Add support in zoomDelta and zoomSnap
Browse files Browse the repository at this point in the history
  • Loading branch information
barakdof committed Feb 5, 2018
1 parent 1cfbdf4 commit 6f6ceda
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dist/angular-leaflet-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6f6ceda

Please sign in to comment.