# WMTS failed to load imagery

**URL:** <https://community.cesium.com/t/wmts-failed-to-load-imagery/29754>\
**Category:** Cesium for Unreal\
**Created:** [February 6, 2024, 8:29am UTC](https://community.cesium.com/t/wmts-failed-to-load-imagery/29754 "2024-02-06T08:29:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pjiang9](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/pjiang9/32/27419_2.png) [@pjiang9](https://community.cesium.com/u/pjiang9)\
**Post date:** [February 7, 2024, 8:12am UTC](https://community.cesium.com/t/wmts-failed-to-load-imagery/29754/3 "2024-02-07T08:12:56Z")

</div>

Hi, Kevin,  
Thanks for the reply.  
The ‘GetCapabilities’ service returned by the server as follows.

 ![image](https://global.discourse-cdn.com/cesium/original/3X/2/5/25dd22586bd93517c93f915d119eea64b732d301.png)

And I put in the such url in my browser as"[http://t0.tianditu.gov.cn/img\_c/wmts?tk=mytoken&request=GetTile&version=1.0.0&service=WMTS&format=tiles&layer=img&style=default&tilematrixset=c&tilematrix=1&tilerow=0&tilecol=0](http://t0.tianditu.gov.cn/img_c/wmts?tk=mytoken&request=GetTile&version=1.0.0&service=WMTS&format=tiles&layer=img&style=default&tilematrixset=c&tilematrix=1&tilerow=0&tilecol=0)", I get the result.

 ![image](https://global.discourse-cdn.com/cesium/original/3X/e/e/ee5b661e562e5f3e7da991e11ab5cf812ed240b5.jpeg)

why CesiumWebMapTileServiceRasterOverlay can not load the RasterOverlay? I still think the problem is the tk. My server requires the url to be " [http://t0.tianditu.gov.cn/img\_c/wmts?tk=mytoken](http://t0.tianditu.gov.cn/img_c/wmts?tk=mytoken)". Yet the CesiumWebMapTileServiceRasterOverlay has no place to hold the tk. The CesiumWebMapTileServiceRasterOverlay just adds another ‘’?" behind the url，and it might cause the problem. Would it be reasonable to add a variable member such as “tk” to wmtsOptions in the source code?

---

_[View the full topic](https://community.cesium.com/t/wmts-failed-to-load-imagery/29754)._
