Skip to content

Commit

Permalink
Merge pull request #227 from terrestris/fix-wmts-legend-url
Browse files Browse the repository at this point in the history
Sets legend url on source for wmts
  • Loading branch information
mholthausen authored Dec 13, 2022
2 parents 59092a4 + 8331233 commit 3443e22
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 3443e22

Please sign in to comment.