Skip to content

Commit

Permalink
Fix for map layer removal exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyder authored Mar 21, 2024
1 parent 93bdf17 commit 9b42d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ module.exports = {
if (mapDefs[layer.id]) {
next.push(layer)
} else {
this.map.removeLayer(layer.layer)
this.map.removeLayer(layer)
}
})
} else {
this.tileLayers.forEach(layer => {
this.map.removeLayer(layer.layer)
this.map.removeLayer(layer)
})
const baseLayer = L.tileLayer(...baseLayers[this.basemap])
this.map.addLayer(baseLayer)
Expand Down

0 comments on commit 9b42d4b

Please sign in to comment.