-
Couldn't load subscription status.
- Fork 341
Description
Hi,
I am trying to render a WMTS layer from URL http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx using the projection EPSG:5221 (here are the specs of the projection). The layer is correctly rendered in OpenLayers but that is not the same for Cesium. However, network requests seem to fire and respond correctly. I can actually see the tiles in the responses of the network tab.
I have put in place an example of what I am trying to achieve here:
- I have dumbed the capabilities file locally so that I can pass
tileMatrixSetandextentproperties in the source layer. - I am using
proj4to define the EPSG projection and register it with OpenLayers. - I also apply a transformation between 4326 and 3857 projections.
After some debugging I came to the conclusion that the tileLayerToImageryLayer function returns null because the 5221 projection fails to pass the isCesiumProjection function here.
Alternatively, I tried to add an if statement so that I can check whether the source is of type WMTS, before the check here and create the provider inside my statement. In this scenario, Cesium reported logs in the console that it could not find tile coordinates.
I have searched through the repository about similar problems and I think that Cesium cannot handle custom projections but I am not 100% sure. I would appreciate it if you could help me.
Thanks!