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

Method getService

src/openlayers/mapping/WebMap.js:4833–4838  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getService * @description 获取当前数据发布的服务中的某种类型服务 * @param {Array. } services 服务集合 * @param {string} type 服务类型,RESTDATA, RESTMAP * @returns {Object} 服务

(services, type)

Source from the content-addressed store, hash-verified

4831 * @returns {Object} 服务
4832 */
4833 getService(services, type) {
4834 let service = services.filter((info) => {
4835 return info && info.serviceType === type;
4836 });
4837 return service[0];
4838 }
4839
4840 /**
4841 * @private

Callers 1

addLayersMethod · 0.80

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected