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

Method getRequestUrl

src/openlayers/mapping/WebMap.js:4440–4445  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getRootUrl * @description 获取请求地址。 * @param {string} url 请求的地址。 * @param {boolean | undefined} proxy 是否带上代理。 * @returns {Promise } 请求地址。

(url, proxy)

Source from the content-addressed store, hash-verified

4438 * @returns {Promise<T | never>} 请求地址。
4439 */
4440 getRequestUrl(url, proxy) {
4441 url = this.formatUrlWithCredential(url);
4442 return this.isAddProxy(url, proxy) ?
4443 `${this.getProxy()}${encodeURIComponent(url)}`:
4444 url
4445 }
4446
4447 /**
4448 * @description 给 URL 带上凭证密钥。

Callers 15

getWMTSUrlMethod · 0.95
getDatasourcesMethod · 0.95
getDataServiceMethod · 0.95
getMapLayerExtentMethod · 0.95
getMapboxStyleMethod · 0.95
isSupportWebpMethod · 0.95
getMapInfoMethod · 0.80
handleCRSMethod · 0.80
createSpecLayerMethod · 0.80

Calls 3

isAddProxyMethod · 0.95
getProxyMethod · 0.95

Tested by

no test coverage detected