* @private * @function WebMap.prototype.getService * @description 获取当前数据发布的服务中的某种类型服务 * @param {Array. } services 服务集合 * @param {string} type 服务类型,RESTDATA, RESTMAP * @returns {Object} 服务
(services, type)
| 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 |