Skip to content

Commit

Permalink
fix: avoid redundant scale param for WMS getlegendgraphic (origo-map#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Grammostola authored Mar 24, 2023
1 parent 05b3fd6 commit 33233b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/wms.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function createWmsStyle({ wmsOptions, source, viewer, initialStyle = false }) {
const legendParams = wmsOptions.stylePicker ? newStyle.legendParams : wmsOptions.legendParams;

if ((legendParams) && (Object.keys(legendParams).find(key => key.toUpperCase() === 'SCALE'))) {
maxResolution = null;
maxResolution = undefined;
}

let getLegendString;
Expand Down

0 comments on commit 33233b0

Please sign in to comment.