forked from MapComplete/MapComplete
Fix: improve background layer switching code, might improve #1481
This commit is contained in:
parent
775886b2b9
commit
33fa11fc17
2 changed files with 57 additions and 33 deletions
|
@ -380,6 +380,9 @@ class LineRenderingLayer {
|
|||
if (this._listenerInstalledOn.has(id)) {
|
||||
continue
|
||||
}
|
||||
if (!map.getSource(this._layername)) {
|
||||
continue
|
||||
}
|
||||
if (this._fetchStore === undefined) {
|
||||
map.setFeatureState(
|
||||
{ source: this._layername, id },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue