Skip to content

Commit

Permalink
v1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Feb 14, 2018
2 parents 09753cb + 58d87da commit 6946357
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ branches:
notifications:
email: false
node_js:
- '4.1'
- '6.1'
before_install:
- npm i -g npm@^2.0.0
- npm install -g grunt-cli
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"angular": "1.4.9",
"angular-sanitize": "1.4.9",
"openlayers": "https://github.com/openlayers/ol3/releases/download/v3.16.0/v3.16.0-dist.zip"
"openlayers": "https://github.com/openlayers/ol3/releases/download/v4.3.4/v4.3.4-dist.zip"
},
"devDependencies": {
"jquery": "*",
Expand Down
15 changes: 7 additions & 8 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ angular.module('openlayers-directive').directive('olCenter', ["$log", "$location
});

olScope.$on('$destroy', function() {
map.unByKey(moveEndEventKey);
ol.Observable.unByKey(moveEndEventKey);
});
});
}
Expand Down Expand Up @@ -661,7 +661,7 @@ angular.module('openlayers-directive').directive('olView', ["$log", "$q", "olDat
});

olScope.$on('$destroy', function() {
map.unByKey(rotationEventKey);
ol.Observable.unByKey(rotationEventKey);
});

});
Expand Down Expand Up @@ -2122,11 +2122,10 @@ angular.module('openlayers-directive').factory('olHelpers', ["$q", "$log", "$htt
setCenter: function(view, projection, newCenter, map) {

if (map && view.getCenter()) {
var pan = ol.animation.pan({
view.animate({
duration: 150,
source: (view.getCenter())
center: view.getCenter()
});
map.beforeRender(pan);
}

if (newCenter.projection === projection) {
Expand All @@ -2138,11 +2137,11 @@ angular.module('openlayers-directive').factory('olHelpers', ["$q", "$log", "$htt
},

setZoom: function(view, zoom, map) {
var z = ol.animation.zoom({
view.animate({
duration: 150,
resolution: map.getView().getResolution()
resolution: map.getView().getResolution(),
zoom: zoom
});
map.beforeRender(z);
view.setZoom(zoom);
},

Expand Down
6 changes: 3 additions & 3 deletions dist/angular-openlayers-directive.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ angular.module('openlayers-directive').directive('olCenter', function($log, $loc
});

olScope.$on('$destroy', function() {
map.unByKey(moveEndEventKey);
ol.Observable.unByKey(moveEndEventKey);
});
});
}
Expand Down Expand Up @@ -661,7 +661,7 @@ angular.module('openlayers-directive').directive('olView', function($log, $q, ol
});

olScope.$on('$destroy', function() {
map.unByKey(rotationEventKey);
ol.Observable.unByKey(rotationEventKey);
});

});
Expand Down Expand Up @@ -2122,11 +2122,10 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
setCenter: function(view, projection, newCenter, map) {

if (map && view.getCenter()) {
var pan = ol.animation.pan({
view.animate({
duration: 150,
source: (view.getCenter())
center: view.getCenter()
});
map.beforeRender(pan);
}

if (newCenter.projection === projection) {
Expand All @@ -2138,11 +2137,11 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
},

setZoom: function(view, zoom, map) {
var z = ol.animation.zoom({
view.animate({
duration: 150,
resolution: map.getView().getResolution()
resolution: map.getView().getResolution(),
zoom: zoom
});
map.beforeRender(z);
view.setZoom(zoom);
},

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"angular": "~1.4.8",
"angular-sanitize": "~1.4.8",
"openlayers": "~3.18.1"
"openlayers": "~4.3.4"
},
"devDependencies": {
"grunt": "~0.4.5",
Expand Down Expand Up @@ -52,7 +52,7 @@
"karma-script-launcher": "~0.1.0",
"load-grunt-config": "^0.17.1",
"matchdep": "~0.3.0",
"phantomjs": "^1.9.18",
"phantomjs": "^2.1.0",
"protractor": "~2.5.0",
"publish-latest": "^1.1.2",
"semantic-release": "^4.3.5"
Expand All @@ -66,5 +66,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "1.20.1"
"version": "1.20.2"
}
2 changes: 1 addition & 1 deletion src/directives/center.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ angular.module('openlayers-directive').directive('olCenter', function($log, $loc
});

olScope.$on('$destroy', function() {
map.unByKey(moveEndEventKey);
ol.Observable.unByKey(moveEndEventKey);
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/directives/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ angular.module('openlayers-directive').directive('olView', function($log, $q, ol
});

olScope.$on('$destroy', function() {
map.unByKey(rotationEventKey);
ol.Observable.unByKey(rotationEventKey);
});

});
Expand Down
11 changes: 5 additions & 6 deletions src/services/olHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,10 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
setCenter: function(view, projection, newCenter, map) {

if (map && view.getCenter()) {
var pan = ol.animation.pan({
view.animate({
duration: 150,
source: (view.getCenter())
center: view.getCenter()
});
map.beforeRender(pan);
}

if (newCenter.projection === projection) {
Expand All @@ -884,11 +883,11 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
},

setZoom: function(view, zoom, map) {
var z = ol.animation.zoom({
view.animate({
duration: 150,
resolution: map.getView().getResolution()
resolution: map.getView().getResolution(),
zoom: zoom
});
map.beforeRender(z);
view.setZoom(zoom);
},

Expand Down

0 comments on commit 6946357

Please sign in to comment.