Skip to content

Commit

Permalink
fix: sets legend url on source for wmts
Browse files Browse the repository at this point in the history
  • Loading branch information
mholthausen committed Dec 12, 2022
1 parent 0760a76 commit 8331233
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,6 +407,8 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
}
});

source.set('legendUrl', legendUrl);

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

this.setLayerProperties(wmtsLayer, layer);

wmtsLayer.set('legendUrl', legendUrl);

return wmtsLayer;
}

Expand Down

0 comments on commit 8331233

Please sign in to comment.