Skip to content

Commit

Permalink
支持自定义地形服务图层列表管理
Browse files Browse the repository at this point in the history
  • Loading branch information
supermap123 committed Aug 22, 2023
1 parent 9df0d55 commit 8e63262
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SuperMap iEarth/src/store/layerStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,11 @@ export const useLayerStore = defineStore({
return GlobalLang.stkTerrain;
} else {
if (baseUrl.indexOf('supermapol.com') != -1) {
return baseUrl.split('realspace/services/')[1].split('/rest/realspace')[0]
} else {
return baseUrl.split('realspace/services/')[1].split('/rest/realspace')[0];
} else if (baseUrl.indexOf('iserver/services') != -1) {
return baseUrl.split('iserver/services/')[1].split('/rest/realspace')[0];
}
else {
// return '未命名地形';
return 'invisible';
}
Expand All @@ -601,7 +604,7 @@ export const useLayerStore = defineStore({
// return '无地形';
return 'invisible';
}
},
},

// 更新已勾选选项
updateSelectedOption(selectedOption:any){
Expand Down

0 comments on commit 8e63262

Please sign in to comment.