There's obviously something about these VectorTileLayers, that I just don't get...
In IE (I'm using IE 11), if I point to this URL:
http://bl.ocks.org/tsamaya/raw/f5b2405395522cd0cc65/b194ba0d4f2102777173b32c213772d2f785aebb/
The map and VectorTileLayer loads up and displays fine.
If I take the exact same HTML code (from "View source") and save it to a file on my server, when I try to load the HTML, I get a "layer not supported" error in the debugger because I set it to break on all exceptions. No message in the console; the map and vector layer just don't display.
I thought perhaps there was some cross-domain thing going on because the same HTML will work in Chrome and Firefox so I downloaded the JSON that the page references and saved it on my server as well. Still get the layer not supported error.
Is it possible there's a timing error in loading the modules that is exacerbated in IE with it's script loading mechanism somehow?
Obviously, this is just an example of a problem I'm having in my own application, but unless I can figure this out, we're not going to be able to use these VectorTileLayers in our apps, not matter how promising they might be.
Cheers,
jtm
Solved! Go to Solution.
Joanne,
I downloaded the code and hosted locally on my machine and had no issue using the page in IE Version 11.0.9600.18499
Is your IE running in compatibility mode?
Joanne,
I downloaded the code and hosted locally on my machine and had no issue using the page in IE Version 11.0.9600.18499
Is your IE running in compatibility mode?
It's been a while since I've been looking at that; and I remember there used to be a "Compatibility view" under Options but I don't see it there now in IE 11. If I check the Compatibility view settings, there isn't anything listed.
Another thing I don't see is the Compatibility view icon near the address field. The same is true whether I'm looking at the page that works and my page that doesn't.
So, long story short...I don't know. I don't think so; but it's entirely possible.
Ah, I found it in the debugger. Yes, it is. So, I have to shut off that setting on the Apache server...it must be coming from the server.
And, in the debugger, I am able to tell it to use IE 11 (or Edge) rather than 10 (which is what was set). The VectorTileLayer displays now.
Okay, thank you, Robert. That gives me something to go on.
Joanne,
Just add this meta tag to the html:
<meta http-equiv="X-UA-Compatible" content="IE=edge">