Skip to content

Commit c069b32

Browse files
committed
v2.0.1
2 parents 0c09f19 + 6e2961f commit c069b32

6 files changed

+13
-7
lines changed

dist/angular-openlayers-directive.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', [
9494

9595
scope.$on('$destroy', function() {
9696
olData.resetMap(attrs.id);
97+
map.setTarget(null);
98+
map = null;
9799
});
98100

99101
// If no layer is defined, set the default tileLayer

dist/angular-openlayers-directive.min.js

Lines changed: 3 additions & 3 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: 3 additions & 3 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f
9494

9595
scope.$on('$destroy', function() {
9696
olData.resetMap(attrs.id);
97+
map.setTarget(null);
98+
map = null;
9799
});
98100

99101
// If no layer is defined, set the default tileLayer

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@
6666
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6767
},
6868
"main": "dist/angular-openlayers-directive",
69-
"version": "2.0.0"
69+
"version": "2.0.1"
7070
}

src/directives/openlayers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f
7979

8080
scope.$on('$destroy', function() {
8181
olData.resetMap(attrs.id);
82+
map.setTarget(null);
83+
map = null;
8284
});
8385

8486
// If no layer is defined, set the default tileLayer

0 commit comments

Comments
 (0)