From ed68799815844e630d377fb74c040c28368da623 Mon Sep 17 00:00:00 2001 From: zhili <1243976730@qq.com> Date: Fri, 10 May 2024 23:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0loadWMTS=20Api=E8=AF=86?= =?UTF-8?q?=E5=88=ABgeoscene=E5=9C=B0=E5=9B=BE=E6=9C=8D=E5=8A=A1=E4=B8=BAa?= =?UTF-8?q?rcgis=E6=9C=8D=E5=8A=A1=E7=B1=BB=E5=9E=8B=20(#2319)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 🎸 loadWMTS 添加对geoscene服务自动识别为arcgis服务类型 * feat: 🎸 更新服务类型提示 --- src/map/spatial-reference/SpatialReference.WMTS.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/map/spatial-reference/SpatialReference.WMTS.ts b/src/map/spatial-reference/SpatialReference.WMTS.ts index ddb94f985d..dd341dfa4b 100644 --- a/src/map/spatial-reference/SpatialReference.WMTS.ts +++ b/src/map/spatial-reference/SpatialReference.WMTS.ts @@ -77,9 +77,17 @@ function getTileMatrixSet(TileMatrixSets, TileMatrixSetLink) { } function parseWMTSXML(str, requestUrl, options) { + const serviceType = ["isArcgis", "isSuperMap", "isGeoServer"]; + if (serviceType.every((key) => options[key] == null)) { + console.warn( + "Please specify the server type, such as isArcgis, isSuperMap, isGeoServer, Otherwise, the system will determine by itself" + ); + } //IE test success if (options.isArcgis == null) { - options.isArcgis = str.indexOf('arcgis') > -1; + options.isArcgis = ["arcgis", "geoscene"].some( + (key) => str.indexOf(key) > -1 + ); } if (options.isSuperMap == null) { options.isSuperMap = str.indexOf('supermap') > -1;