var provider = new Cesium.WebMapTileServiceImageryProvider({
url: `http://192.168.2.30:6080/arcgis/rest/services/xfmap84/MapServer/WMTS/tile/1.0.0/xfmap84/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png`,
layer: "xfmap84",
style: "default",
tileMatrixSetID: "default",
format: "image/png",
tilingScheme: new Cesium.GeographicTilingScheme({
rectangle: Cesium.Rectangle.fromDegrees(-400, -400, 400, 400),
numberOfLevelZeroTilesX: 4,
numberOfLevelZeroTilesY: 2,
// rectangleSouthwestInMeters: new Cesium.Cartesian2(-400, 400),
}),
maximumLevel: 16,
tileWidth: "512",
tileHeight: "512",
tileMatrixLabels: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
], // 对应2.4中的tileMatrix Identifier属性
});
一直报错404 对应的图层搜索路径不正确
你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答
本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。
因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。