Openlayers example does not work in IE11
See original GitHub issueI noticed that the OpenLayers example at http://spatialillusions.github.io/MilSymbol/examples/openlayers3/index.html does not work in IE11. When I open the debug console the following error is shown multiple times:
XML5634: An attribute with the same name already exists on this element. Line: 1, Column 155
Any idea why it don’t work?
Issue Analytics
- State:
- Created 8 years ago
- Comments:22 (19 by maintainers)
Top Results From Across the Web
OL 6.9.0 does not work in IE11 · Issue #12896 · openlayers ...
I downloaded the latest release of OL 6.9.0 Created a simple website: Base map.
Read more >OpenLayers Image WMS not working on IE11 - Stack Overflow
OpenLayers ImageWMS in our website has stopped working for some reason and I assume it's due to IE11 changes/compatibility.
Read more >Issue 378 in geoext-viewer: several WFS requests do not work in IE11
What steps will reproduce the problem? 1. Start the Sublayers example ... This is an OpenLayers IE11 problem, a solution for this problem...
Read more >OpenLayers v7.2.2 API - Class: Map
The map is the core component of OpenLayers. For a map to render, a view, one or more layers, and a target container...
Read more >Is there a Cluster convex hull implementation in OpenLayers?
ol-ext extension from example does not work in IE11, since it uses ES6 syntax. – TomazicM. Feb 8, 2019 at 15:48.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue seems to be that the SVG generated by MilSymbol contains two xmlns attributes. If I comment out the following lines I get rid of the XML5634 error https://github.com/spatialillusions/MilSymbol/blob/master/bin/MilSymbol.js#L6641 https://github.com/spatialillusions/MilSymbol/blob/master/bin/MilSymbol.js#L6912
if(_MilSymbol.userAgentIE){svgSymbol.setAttribute("xmlns", svgNS)};
Unfortunately it looks like the example then runs into a bug in openlayers and I’m still not able to render the example in IE11. I get several
IndexSizeErrors
exceptions. I found a couple of OL-issues may be related: https://github.com/openlayers/ol3/issues/3220 https://github.com/openlayers/ol3/issues/2861If I find time to update the examples to Open Layers 6, I will do so. Otherwise it is always welcomed with a pull request that updates the current examples.