Skip to content

Commit 27cba57

Browse files
committed
[add]新增获取webmap类型的方法
1 parent 0d5e021 commit 27cba57

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/common/mapping/WebMapBase.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,16 @@
391391
return (this._handler && this._handler.getLayerCatalog()) || [];
392392
}
393393

394+
/**
395+
* @version 11.3.0
396+
* @function WebMapBase.prototype.getWebMapType
397+
* @description 获取地图类型。
398+
* @returns {String} 地图类型。
399+
*/
400+
getWebMapType() {
401+
return this.type;
402+
}
403+
394404
/**
395405
* @version 11.2.1
396406
* @function WebMapBase.prototype.updateOverlayLayer
@@ -626,6 +636,7 @@
626636
layers: typeof layerFilter === 'function' ? mapInfo.layers.filter(layerFilter) : mapInfo.layers
627637
};
628638
}
639+
this.type = type;
629640
this._handler.initializeMap(_mapInfo, this.map);
630641
}
631642

0 commit comments

Comments
 (0)