# WMTSImageryProvider
添加 wmts 图层
let promise = GeowayGlobe.WMTSImageryProvider.readyForWMTSOptions({
url: "http://172.16.67.34:8066/ime-cloud/rest/img_c/wmts",
});
promise.then((wmtsOptions) => {
let wmts = new Cesium.ImageryLayer(
new Cesium.WebMapTileServiceImageryProvider(wmtsOptions)
);
viewer.imageryLayers.add(wmts);
});
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# WMTSImageryProvider options 构造属性
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
viewer | 地球实例 | Object | viewer |