Skip to content

Commit

Permalink
v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Dec 2, 2015
2 parents 60b31a1 + b35745e commit bb64f31
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 24 deletions.
14 changes: 8 additions & 6 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,17 @@ angular.module('openlayers-directive').directive('olLayer', ["$log", "$q", "olMa
}

//set min resolution
if (isDefined(properties.minResolution) &&
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
olLayer.setMinResolution(properties.minResolution);
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.minResolution)) {
olLayer.setMinResolution(properties.minResolution);
}
}

//set max resolution
if (isDefined(properties.maxResolution) &&
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
olLayer.setMaxResolution(properties.maxResolution);
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.maxResolution)) {
olLayer.setMaxResolution(properties.maxResolution);
}
}
}
}, true);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-openlayers-directive.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/angular-openlayers-directive.min.no-header.js

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,17 @@ angular.module('openlayers-directive').directive('olLayer', function($log, $q, o
}

//set min resolution
if (isDefined(properties.minResolution) &&
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
olLayer.setMinResolution(properties.minResolution);
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.minResolution)) {
olLayer.setMinResolution(properties.minResolution);
}
}

//set max resolution
if (isDefined(properties.maxResolution) &&
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
olLayer.setMaxResolution(properties.maxResolution);
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.maxResolution)) {
olLayer.setMaxResolution(properties.maxResolution);
}
}
}
}, true);
Expand Down
1 change: 0 additions & 1 deletion examples/043-layers-bing-maps-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<script src="../bower_components/openlayers3/build/ol.js"></script>
<script src="../bower_components/angular/angular.min.js"></script>
<script src="../bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script src="../bower_components/openlayers3/build/ol.js"></script>
<script src="../dist/angular-openlayers-directive.js"></script>
<link rel="stylesheet" href="../bower_components/openlayers3/build/ol.css" />
<script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "1.4.1"
"version": "1.4.2"
}
14 changes: 8 additions & 6 deletions src/directives/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,17 @@ angular.module('openlayers-directive').directive('olLayer', function($log, $q, o
}

//set min resolution
if (isDefined(properties.minResolution) &&
!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
olLayer.setMinResolution(properties.minResolution);
if (!equals(properties.minResolution, oldProperties.minResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.minResolution)) {
olLayer.setMinResolution(properties.minResolution);
}
}

//set max resolution
if (isDefined(properties.maxResolution) &&
!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
olLayer.setMaxResolution(properties.maxResolution);
if (!equals(properties.maxResolution, oldProperties.maxResolution) || isNewLayer(olLayer)) {
if (isDefined(properties.maxResolution)) {
olLayer.setMaxResolution(properties.maxResolution);
}
}
}
}, true);
Expand Down

0 comments on commit bb64f31

Please sign in to comment.