1. A concise explanation of the problem you’re experiencing.
Problems using the Austrian OGD basemap
The WMTS is described here: https://www.basemap.at/index_en.html
The capabilities area here: www.basemap.at/wmts/1.0.0/WMTSCapabilities.xml
The console in Chrome fills with errors it describes as a CORS error, but I no longer believe that’s the issue.
I wrote the support staff in Vienna, RE: the cesium map throws a CORS error when requesting
tiles from the WMTS service.
They kindly replied "wmts is only available as RESTful Service, but not as an
KeyValue-Parameter.
All successful tile responses (http 200) come with Header:
Access-Control-Allow-Origin:*
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
Here’s the GIST of the problem:
Select the Austrian OpenGovernmentBasemap in the BaseLayer picker
The tiles required to drape over the terrain all load okay.
The Console fills with errors like this:
An error occurred in “WebMapTileServiceImageryProvider”: Failed to obtain image tile X: 66 Y: 45 Level: 7
Access to Image at ‘https://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/7/45/66.png’ from origin ‘https://cesiumjs.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://cesiumjs.org’ is therefore not allowed access. The response had HTTP status code 404.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
The GIST shows what I’m trying to do. The intent is to eventually overlay GPX tracks from ski touring in Austria on top of the base map.
Is there another interface, other than “WebMapTileServiceImageryProvider”, that would be a better way to load this imagery?
4. The Cesium version you’re using, your operating system and browser.
Cesium 1.41
Windows7 Home Premium SP1, 64-bit
Chrome 63.0.3239.132 (Official Build) (64-bit)
Thanks-
-Jon (“Left Gully”)