Skip to content

Commit

Permalink
fix: bad url for icon in print legend
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed Oct 11, 2023
1 parent 4802902 commit ab0916a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/print/print-legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const LayerRow = function LayerRow(options) {
const layerName = aLayer.get('name');
const style = viewer.getStyle(aLayer.get('styleName'));
if (style && style[0] && style[0][0] && style[0][0].icon) {
return `${style[0][0].icon.src}&format=${format}`;
return `${style[0][0].icon.src}?format=${format}`;
}
return `${url}?SERVICE=WMS&layer=${layerName}&format=${format}&version=1.1.1&request=getLegendGraphic&scale=401&legend_options=dpi:300`;
};
Expand Down

0 comments on commit ab0916a

Please sign in to comment.