Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Mar 6, 2018
2 parents 0c09f19 + 6e2961f commit c069b32
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', [

scope.$on('$destroy', function() {
olData.resetMap(attrs.id);
map.setTarget(null);
map = null;
});

// If no layer is defined, set the default tileLayer
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.

2 changes: 2 additions & 0 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f

scope.$on('$destroy', function() {
olData.resetMap(attrs.id);
map.setTarget(null);
map = null;
});

// If no layer is defined, set the default tileLayer
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "2.0.0"
"version": "2.0.1"
}
2 changes: 2 additions & 0 deletions src/directives/openlayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f

scope.$on('$destroy', function() {
olData.resetMap(attrs.id);
map.setTarget(null);
map = null;
});

// If no layer is defined, set the default tileLayer
Expand Down

0 comments on commit c069b32

Please sign in to comment.