Svg icon needs imgSize to display in ie11

This commit is contained in:
Maximilian Krög
2020-03-21 00:15:49 +01:00
parent 3674ec5481
commit f942c482d8

View File

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