Skip to content

Commit

Permalink
Corrected a map unbounding bug in MapOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux committed Oct 28, 2024
1 parent 1cd5e1e commit 656eef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modulecore/MapOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
return {
show: this.visible,
position: this.coordinates,
olOverlay: null,
olOverlay: undefined,
contentData: {}
}
},
Expand Down Expand Up @@ -97,7 +97,7 @@ export default {
* Destroys the OpenLayers overlay control and removes it from the map.
*/
destroyOlOverlay () {
if (this.olOverlay) {
if (this.olOverlay && this.map) {
this.map.removeOverlay(this.olOverlay);
this.olOverlay = undefined;
}
Expand Down

0 comments on commit 656eef6

Please sign in to comment.