From 00483882a1c822557fa4abb74efdbbe5d5cb7b36 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 9 Jul 2024 11:58:29 +0200 Subject: [PATCH] fix: use correct color for categorized/choropleth layers in browser --- umap/static/umap/js/modules/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/browser.js b/umap/static/umap/js/modules/browser.js index db988d7e..2f9a8741 100644 --- a/umap/static/umap/js/modules/browser.js +++ b/umap/static/umap/js/modules/browser.js @@ -37,7 +37,7 @@ export default class Browser { ? U.Icon.prototype.formatUrl(feature._getIconUrl(), feature) : null title.textContent = feature.getDisplayName() || '—' - const bgcolor = feature.getDynamicOption('color') + const bgcolor = feature.getDynamicOption(feature.staticOptions.mainColor) colorBox.style.backgroundColor = bgcolor if (symbol && symbol !== U.SCHEMA.iconUrl.default) { const icon = U.Icon.makeIconElement(symbol, colorBox)