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)