Skip to content

Commit

Permalink
fix: sets the legendUrl on layer
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed Dec 12, 2022
1 parent a5d6a79 commit 6f1743c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
}
});

source.set('legendUrl', legendUrl);

const wmtsLayer = new OlTileLayer({
source,
minResolution,
Expand All @@ -418,6 +416,8 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {

this.setLayerProperties(wmtsLayer, layer);

wmtsLayer.set('legendUrl', legendUrl);

return wmtsLayer;
}

Expand Down

0 comments on commit 6f1743c

Please sign in to comment.