question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Openlayers example does not work in IE11

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:22 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
kjellmfcommented, Apr 22, 2015

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/2861

0reactions
spatialillusionscommented, May 5, 2020

If 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found