danzel / Leaflet.utfgrid

A UTFGrid implementation for leaflet that is super small.
MIT License
132 stars 51 forks source link

Internet Explorer - DOMException Invalid State #48

Open jseppi opened 8 years ago

jseppi commented 8 years ago

During the first ajax request after adding a utfGrid layer to a map, Internet Explorer (v11.0.9600) throws a DOMException: InvalidStateError.

I believe the problem is due to setting request.timeout after request.send() has already been called (ref: https://github.com/danzel/Leaflet.utfgrid/commit/c58e15a3782629a9824f485a717fac9ab4c31145?diff=unified#diff-9c205830311c365520ac7b1989ab3d3bR296).

The dist/leaflet.utfgrid.js from the parent commit (https://github.com/danzel/Leaflet.utfgrid/commit/f82bf1b0f4e70e50bc4412800030eff9575b90eb) works as expected in IE.

danzel commented 8 years ago

@sambernet ^^ You did this change I think, could you take a look please?

sambernet commented 8 years ago

unfortunately I was moved away from the project and don't have access to a testbed at the moment. If someone can make a plunkr showcasing the problem I'll sure have a shot at it. At least I have access to IE11 :-)

Be aware that this might take some time, though, as I'm now on another project with an extremely tight roadmap. No christmas holidays whatsoever...