Merge pull request #10824 from MoonE/icon-color-ie11

Fix drawing svg icon with color option in ie11
This commit is contained in:
Andreas Hocevar
2020-03-28 14:26:10 +01:00
committed by GitHub
3 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -2,6 +2,6 @@
<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg">
<g>
<rect width="20" height="20" style="fill:#fff" />
<rect width="20" height="20" style="fill:#fff; stroke-width:4px; stroke:#000" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 194 B

After

Width:  |  Height:  |  Size: 225 B

+1
View File
@@ -25,6 +25,7 @@ rome.setStyle(new Style({
image: new Icon({
color: '#8959A8',
crossOrigin: 'anonymous',
imgSize: [20, 20],
src: 'data/square.svg'
})
}));