diff --git a/src/modules/legend/Legend.js b/src/modules/legend/Legend.js index 2e41c22f5..48783081c 100644 --- a/src/modules/legend/Legend.js +++ b/src/modules/legend/Legend.js @@ -120,10 +120,9 @@ class Legend { const SVGMarker = SVG(elMarker).size('100%', '100%') const marker = new Graphics(this.ctx).drawMarker(0, 0, { ...markerConfig, - pointFillColor: Array.isArray(w.config.legend.markers.fillColors) + pointFillColor: Array.isArray(fillcolor) ? fillcolor[i] : markerConfig.pointFillColor, - shape, })