mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: use correct color for categorized/choropleth layers in browser
This commit is contained in:
parent
dd9c3ba194
commit
00483882a1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue