Skip to content

Commit

Permalink
增加loadWMTS Api识别geoscene地图服务为arcgis服务类型 (#2319)
Browse files Browse the repository at this point in the history
* feat: 🎸 loadWMTS 添加对geoscene服务自动识别为arcgis服务类型

* feat: 🎸 更新服务类型提示
  • Loading branch information
zhouzhili authored May 10, 2024
1 parent 29cd832 commit ed68799
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/map/spatial-reference/SpatialReference.WMTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed68799

Please sign in to comment.