MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getWKT

Method getWKT

src/mapboxgl/services/MapService.js:59–70  ·  view source on GitHub ↗

* @function MapService.prototype.getWKT * @description 获取WKT。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @returns {Promise} Promise 对象。

(callback)

Source from the content-addressed store, hash-verified

57 * @returns {Promise} Promise 对象。
58 */
59 getWKT(callback) {
60 var me = this;
61 var getMapStatusService = new CommonMapService(Util.urlPathAppend(me.url,'prjCoordSys.wkt'), {
62 proxy: me.options.proxy,
63 withCredentials: me.options.withCredentials,
64 withoutFormatSuffix: true,
65 crossOrigin: me.options.crossOrigin,
66 headers: me.options.headers,
67 projection: me.options.projection
68 });
69 return getMapStatusService.processAsync(callback);
70 }
71
72 /**
73 * @function MapService.prototype.getTilesets

Callers 3

createMapOptionsFunction · 0.45
registerCRSMethod · 0.45
setProjFunction · 0.45

Calls 1

processAsyncMethod · 0.45

Tested by

no test coverage detected