MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _getMapRelatedInfo

Method _getMapRelatedInfo

src/common/mapping/WebMapV3.js:465–472  ·  view source on GitHub ↗

* @private * @function WebMapV3.prototype._getMapRelatedInfo * @description 获取地图关联信息的 JSON 信息。

()

Source from the content-addressed store, hash-verified

463 * @description 获取地图关联信息的 JSON 信息。
464 */
465 _getMapRelatedInfo() {
466 const mapResourceUrl = transformUrl(
467 Object.assign({ url: `${this.options.server}web/maps/${this.mapId}` }, this.options)
468 );
469 return FetchRequest.get(mapResourceUrl, null, { withCredentials: this.options.withCredentials }).then((response) =>
470 response.json()
471 );
472 }
473
474 /**
475 * @private

Callers 1

_initLayersMethod · 0.95

Calls 2

transformUrlFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected