From 9551da4e84144e852d155232ab554318571e5814 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 9 Feb 2022 01:37:08 +0100 Subject: [PATCH] Fix pin colour --- Models/ThemeConfig/PointRenderingConfig.ts | 3 ++- assets/svg/pin.svg | 17 ----------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/Models/ThemeConfig/PointRenderingConfig.ts b/Models/ThemeConfig/PointRenderingConfig.ts index 910351e3e8..781b7bf656 100644 --- a/Models/ThemeConfig/PointRenderingConfig.ts +++ b/Models/ThemeConfig/PointRenderingConfig.ts @@ -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") diff --git a/assets/svg/pin.svg b/assets/svg/pin.svg index 9094012e2f..4a10b32da1 100644 --- a/assets/svg/pin.svg +++ b/assets/svg/pin.svg @@ -5,27 +5,10 @@ viewBox="0 0 314 374" version="1.1" id="svg7" - sodipodi:docname="pin.svg" - inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> -