Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 09b9298

Browse files
committed
Merge pull request #183 from behboud/master
added trackResize to default options map
2 parents 12984e8 + 973fe1c commit 09b9298

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/services/leafletMapDefaults.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ angular.module('ui-leaflet').factory('leafletMapDefaults', function ($q, leaflet
3636
lat: 0,
3737
lng: 0,
3838
zoom: 1
39-
}
39+
},
40+
trackResize:true
4041
};
4142
}
4243

@@ -70,7 +71,8 @@ angular.module('ui-leaflet').factory('leafletMapDefaults', function ($q, leaflet
7071
touchZoom: d.touchZoom,
7172
attributionControl: d.attributionControl,
7273
worldCopyJump: d.worldCopyJump,
73-
crs: d.crs
74+
crs: d.crs,
75+
trackResize:d.trackResize
7476
};
7577

7678
if (isDefined(d.minZoom)) {
@@ -113,6 +115,7 @@ angular.module('ui-leaflet').factory('leafletMapDefaults', function ($q, leaflet
113115
newDefaults.zoomControlPosition = isDefined(userDefaults.zoomControlPosition) ? userDefaults.zoomControlPosition : newDefaults.zoomControlPosition;
114116
newDefaults.keyboard = isDefined(userDefaults.keyboard) ? userDefaults.keyboard : newDefaults.keyboard;
115117
newDefaults.dragging = isDefined(userDefaults.dragging) ? userDefaults.dragging : newDefaults.dragging;
118+
newDefaults.trackResize = isDefined(userDefaults.trackResize) ? userDefaults.trackResize : newDefaults.trackResize;
116119

117120
if (isDefined(userDefaults.controls)) {
118121
angular.extend(newDefaults.controls, userDefaults.controls);

0 commit comments

Comments
 (0)