We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d5e021 commit 27cba57Copy full SHA for 27cba57
src/common/mapping/WebMapBase.js
@@ -391,6 +391,16 @@
391
return (this._handler && this._handler.getLayerCatalog()) || [];
392
}
393
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
+
404
/**
405
* @version 11.2.1
406
* @function WebMapBase.prototype.updateOverlayLayer
@@ -626,6 +636,7 @@
626
636
layers: typeof layerFilter === 'function' ? mapInfo.layers.filter(layerFilter) : mapInfo.layers
627
637
};
628
638
639
+ this.type = type;
629
640
this._handler.initializeMap(_mapInfo, this.map);
630
641
631
642
0 commit comments