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

Method getCollections

src/common/iServer/ImageService.js:46–51  ·  view source on GitHub ↗

* @function ImageService.prototype.getCollections * @description 返回当前影像服务中的影像集合列表(Collections)。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @returns {Promise} Promise 对象。

(callback)

Source from the content-addressed store, hash-verified

44 * @returns {Promise} Promise 对象。
45 */
46 getCollections(callback) {
47 var me = this;
48 var path = Util.convertPath('/collections');
49 var url = Util.urlPathAppend(me.url, path);
50 return this._processAsync({ url, mehtod: 'GET', callback });
51 }
52
53 /**
54 * @function ImageService.prototype.getCollectionByID

Callers 6

ImageService.jsFile · 0.45

Calls 1

_processAsyncMethod · 0.95

Tested by

no test coverage detected