forked from MapComplete/MapComplete
Fix pin colour
This commit is contained in:
parent
4642e34da7
commit
9551da4e84
2 changed files with 2 additions and 18 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue