【解决办法】【注意】目前只支持3857投影,全球剖分,且原点在3857投影左上角的栅格瓦片。发布服务需要选择WMTS1.0.0
参考如下代码:
//加载WMTS
mvtMap = scene.addVectorTilesMap({
canvasWidth: 1024,
name: 'testMVT',
viewer: viewer,
lineAntialiasing: false
});
mvtMap.addSource('mian', {
type: "raster", //wmts
url: "http://localhost:8090/iserver/services/map-ugcv5-China3857/wmts100"
})
mvtMap.addLayer({
id: 'mian-layer',
type: 'raster', //wmts
source: "mian"
})