Fix pin colour

This commit is contained in:
Pieter Vander Vennet 2022-02-09 01:37:08 +01:00
parent 4642e34da7
commit 9551da4e84
2 changed files with 2 additions and 18 deletions

View file

@ -89,7 +89,8 @@ export default class PointRenderingConfig extends WithContextLoader {
if (match !== null && Svg.All[match[1] + ".svg"] !== undefined) {
const svg = (Svg.All[match[1] + ".svg"] as string)
const targetColor = match[2]
const img = new Img(svg.replace(/rgb\(0%,0%,0%\)/g, targetColor), true)
const img = new Img(svg
.replace(/(rgb\(0%,0%,0%\)|#000000|#000)/g, targetColor), true)
.SetStyle(style)
if (isBadge) {
img.SetClass("badge")