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

Method getProxy

src/openlayers/mapping/WebMap.js:4468–4473  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getProxy * @description 获取代理地址 * @returns {Promise } 代理地址

(type)

Source from the content-addressed store, hash-verified

4466 * @returns {Promise<T | never>} 代理地址
4467 */
4468 getProxy(type) {
4469 if (!type) {
4470 type = 'json';
4471 }
4472 return this.proxy || this.server + `apps/viewer/getUrlResource.${type}?url=`;
4473 }
4474
4475 /**
4476 * @private

Callers 5

updateFeaturesToMapMethod · 0.95
getRequestUrlMethod · 0.95
createWMSSourceMethod · 0.80
createWMTSSourceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected