Hello Cesium team,
I’m trying to load an OpenStreetMap WMTS layer in Cesium for Unreal using the UCesiumWebMapTileServiceRasterOverlay
component.
I am using the following WMTS capabilities URL:
https://osmlab.github.io/wmts-osm/WMTSCapabilities.xml
This URL works correctly in QGIS, and the WMTS service appears valid and functional. However, when I attempt to use this URL with CesiumWebMapTileServiceRasterOverlay
in Unreal, nothing is displayed.
Any help or guidance would be greatly appreciated!
Thanks
Hi @bingrifuyue,
Try using the base URL (https://osmlab.github.io/wmts-osm/
) rather then the GetCapabilities URL. I’m not certain that will work, but it’s the first thing to try.
Hi Kevin,
I followed your suggestions, but unfortunately it’s still not working.
Please let me know if there’s anything else I can try.
Best regards
Please share the error message in the output log, as that may give us a good hint about what to try next.
@bingrifuyue
That site just serves the capabilities file - which to my knowledge, Cesium doesn’t support this layer of indirection. It requires direct URLs, either in KVP or RESTful form.
Using https://osmlab.github.io/wmts-osm
won’t work, as you found. Cesium would try to get tiles from it and it’d be saying, “Hang on, I don’t have 'em - I’m just telling you where to get them from.”
I just manually grabbed the RESTful URL out of the Capabilities file at that site: https://a.tile.openstreetmap.org/{TileMatrix}/{TileCol}/{TileRow}.png
and used it in the UCesiumWebMapTileServiceRasterOverlay component, and the OSM overlay rendered fine.