TdtWmtsLayer
按照 WMTS 规范 ,创建的天地图 WMTSLayer 图层。
该图层的 tileInfo 是 GetCapabilities 请求返回的信息决定的。
多个切片图层叠加时,需要保持 tileInfo 一致。
我们更建议使用 TdtWebTileLayer, 使得tileInfo 更加可控。
基础用法
SceneView
GetCapabilities 实际返回了 SupportedCRS - urn:ogc:def:crs:EPSG::900913
直接叠加在 SceneView 中, 会出现错位
在实际使用中, 需要使用 EPSG:3857. 组件内部对 SupportedCRS 直接进行了重写
TdtWmtsLayer Props
| prop | type | default | description |
|---|---|---|---|
| type | ‘img_c’|‘vec_c’|‘ter_c’|‘img_w’|‘vec_w’|‘ter_w’| ‘cia_c’|‘cva_c’|‘cta_c’|‘cia_w’|‘cva_w’|‘cta_w’ | ‘img_c’ | |
| token | String | ‘f0175927031c1e12cb804b0c3b8cce4d’ |