在iServer上添加了WMTS服务后尝试在Classic的地图里添加
layer = new SuperMap.Layer.WMTS({
name: "WMTS_Map",
url: url,
layer: "WMTS_Map",
style: "default",
matrixSet: "GlobalCRS84Scale_WMTS_Map",
format: "image/png",
resolutions: resolutions,
matrixIds: matrixIds,
opacity: 1,
requestEncoding: "KVP"
});
但读取地图时会报400的错误,点开后显示的内容如下:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ExceptionReport xmlns="
http://www.opengis.net/ows/1.1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema" version="1.1.0">
<Exception exceptionCode="TileOutOfRange" locator="tileRow">
<ExceptionText>The tile requested by WMTS does not exist. The matrix set corresponding to the tile is GlobalCRS84Scale_WMTS_Map; the corresponding matrix is 2; the corresponding row number is 2; and the corresponding column number is 311184</ExceptionText>
</Exception>
<Exception exceptionCode="InvalidParameterValue" locator="tileRow">
<ExceptionText>In WMTS service request, tileRow parameter is illegal</ExceptionText></Exception>
</ExceptionReport>
请问应该如何添加。目前使用的是EPSG:3857的地图