Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I’m not sure if this question isn’t too specific for Stack Exchange, but I really can’t find a solution, and even extensive web search hasn’t brought up any help. There are similar, but different questions here on Stack Exchange, but they also didn't help me.

Basically, I am trying to display a simple, rather small geoJSON file in an OpenLayers project, just about 20 polygons (a small showcase, the focus is more on tiled imagery than on the geoJSON). I created the geoJSON with QGIS from an existing shapefile and cut off all attribute data (I also validated it online to be sure)

This is the actual website (containing the geoJSON showing city districts, and two tiled planning documents that are disabled by default):

http://www.anderka-stadtentwicklung.de/maps/penzberg/webmap.html

(sorry for the abysmal performance, my webhost is moving his server farm this week)

A quick link to the actual JS map code:

http://www.anderka-stadtentwicklung.de/maps/penzberg/webmap_code.js

The polygons in questions are shown in orange, at least in Firefox. But soon I noticed that the geoJSON wasn’t visible when I viewed the map in IE9 (neither in normal mode, nor in any of the various legacy and development modes). There is no error message, and everything else works fine. I already checked all the usual suspects (trailing commas, projection, proxy problems etc.), none of it helped. JS isn't really my strongest skill, but I think my code is more or less valid, because Firebug won't point out any glaring errors, and the map is showing up correctly in FF...

The JS code itself mostly stems from a former project of mine (loosely based on an example from Erik Hazzards great book), plus various snippets I gathered up here on this page, some of the Openlayers tutorials and different Q&A sites on the web.

Right now I am also using the OpenLayers 2.12 full feature .js file to avoid any unintended side effects due to missing features (the long-term goal is to create a slim custom openlayers.js, of course).

So my question is, in short, why won’t the geoJSON show in IE? What am I doing wrong here?

I would be deeply grateful if someone could at least provide me with a hint where to look for a solution… at the moment I’m completely lost.

share|improve this question

1 Answer 1

This is working in IE10 (Windows 8), I did see the black outlining in IE9 (Windows 7)

So it must be a bug in IE9 Rendering.

You can emulate a working IE9 by using "IE=EmulateIE8"

see the accepted answer here:

http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge

enter image description here

share|improve this answer
    
So you are able to see the geoJSON even in Win7/IE9 (although without styling, which wouldn't bother me)? This is weird, because it's exactly my own setup. I also tried the emulation workaround, but without success on my machine - which hints towards a local problem. I'll investigate this, but thank you very much for your help so far! –  SAnderka Feb 21 '13 at 12:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.