IndexSizeError on IE11 when rendering SVG icons as map points
See original GitHub issueDescribe the bug
Trying to render icons as points on the map based on an SVG URI (base64 encoded). Works fine on Chrome, Safari, Firefox but not IE11. An IndexSizeError
is thrown:
after digging into this a bit more it looks like x
and/or y
params are negative values in the points generated, and IE11 seems to be the only browser that has an issue with this
I’ve looked through all the other issues related to this and have tried suggested fixes, however these have not worked. Hopefully I am missing something but happy to contribute towards a bug fix if required
To Reproduce Minimal Repo to reproduce https://github.com/ben-cloud9/openlayers-ie-11
- clone this repo
- install dependancies
npm install
- run
npm start
and go to localhost:1234 in IE11 - an
IndexSizeError
will be thrown on map render - no issues opening in any other browser
Expected behavior Icons to render on map points as in other browsers
Thanks in advanced and let me know if you need any further info 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (6 by maintainers)
Top GitHub Comments
@ben-cloud9 you need to set the
imgSize: [width, height]
property forol.style.Icon
. This fixed SVG icons for me in IE11.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.