Fix: improve background layer switching code, might improve #1481

This commit is contained in:
Pieter Vander Vennet 2023-06-29 00:24:19 +02:00
parent 775886b2b9
commit 33fa11fc17
2 changed files with 57 additions and 33 deletions

View file

@ -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 },