Skip to content

Commit bb64f31

Browse files
committed
v1.4.2
2 parents 60b31a1 + b35745e commit bb64f31

File tree

7 files changed

+29
-24
lines changed

7 files changed

+29
-24
lines changed

dist/angular-openlayers-directive.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,17 @@ angular.module('openlayers-directive').directive('olLayer', ["$log", "$q", "olMa
514514
}
515515

516516
//set min resolution
517-
if (isDefined(properties.minResolution) &&
518-
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
519-
olLayer.setMinResolution(properties.minResolution);
517+
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
518+
if (isDefined(properties.minResolution)) {
519+
olLayer.setMinResolution(properties.minResolution);
520+
}
520521
}
521522

522523
//set max resolution
523-
if (isDefined(properties.maxResolution) &&
524-
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
525-
olLayer.setMaxResolution(properties.maxResolution);
524+
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
525+
if (isDefined(properties.maxResolution)) {
526+
olLayer.setMaxResolution(properties.maxResolution);
527+
}
526528
}
527529
}
528530
}, true);

dist/angular-openlayers-directive.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.min.no-header.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.pre.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,17 @@ angular.module('openlayers-directive').directive('olLayer', function($log, $q, o
514514
}
515515

516516
//set min resolution
517-
if (isDefined(properties.minResolution) &&
518-
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
519-
olLayer.setMinResolution(properties.minResolution);
517+
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
518+
if (isDefined(properties.minResolution)) {
519+
olLayer.setMinResolution(properties.minResolution);
520+
}
520521
}
521522

522523
//set max resolution
523-
if (isDefined(properties.maxResolution) &&
524-
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
525-
olLayer.setMaxResolution(properties.maxResolution);
524+
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
525+
if (isDefined(properties.maxResolution)) {
526+
olLayer.setMaxResolution(properties.maxResolution);
527+
}
526528
}
527529
}
528530
}, true);

examples/043-layers-bing-maps-example.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<script src="../bower_components/openlayers3/build/ol.js"></script>
55
<script src="../bower_components/angular/angular.min.js"></script>
66
<script src="../bower_components/angular-sanitize/angular-sanitize.min.js"></script>
7-
<script src="../bower_components/openlayers3/build/ol.js"></script>
87
<script src="../dist/angular-openlayers-directive.js"></script>
98
<link rel="stylesheet" href="../bower_components/openlayers3/build/ol.css" />
109
<script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@
6161
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6262
},
6363
"main": "dist/angular-openlayers-directive",
64-
"version": "1.4.1"
64+
"version": "1.4.2"
6565
}

src/directives/layer.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,17 @@ angular.module('openlayers-directive').directive('olLayer', function($log, $q, o
205205
}
206206

207207
//set min resolution
208-
if (isDefined(properties.minResolution) &&
209-
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
210-
olLayer.setMinResolution(properties.minResolution);
208+
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
209+
if (isDefined(properties.minResolution)) {
210+
olLayer.setMinResolution(properties.minResolution);
211+
}
211212
}
212213

213214
//set max resolution
214-
if (isDefined(properties.maxResolution) &&
215-
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
216-
olLayer.setMaxResolution(properties.maxResolution);
215+
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
216+
if (isDefined(properties.maxResolution)) {
217+
olLayer.setMaxResolution(properties.maxResolution);
218+
}
217219
}
218220
}
219221
}, true);

0 commit comments

Comments
 (0)