From e8f8a517dc3d09de5b58d013b260af29fae77ce4 Mon Sep 17 00:00:00 2001 From: tonnyandersson Date: Fri, 27 Oct 2023 11:21:58 +0200 Subject: [PATCH] Update print-legend.js --- src/controls/print/print-legend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/print/print-legend.js b/src/controls/print/print-legend.js index 3a64430f4..7b7039967 100644 --- a/src/controls/print/print-legend.js +++ b/src/controls/print/print-legend.js @@ -241,7 +241,7 @@ const LayerRow = function LayerRow(options) { const style = viewer.getStyle(layer.get('styleName')); if (style && style[0] && (!style[0][0].extendedLegend)) { content = getStyleContent(title, style); - } else if (!layer.get('type')) { + } else if (!layer.get('type') || layer.get('styleName') === 'origoStylefunction') { content = getTitleWithIcon(title, ''); } else if (layer.get('type').includes('AGS') || /\/arcgis\/services\/[^/]+\/[^/]+\/MapServer\/WMSServer/.test(getOneUrl(layer))) { content = await getAGSJSONContent(title, layer.get('id'));