* @function QueryService.prototype.queryByBounds * @description 范围查询地图服务。 * @param {QueryByBoundsParameters} params - 范围查询参数类。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。 * @re
(params, callback, resultFormat)
| 40 | * @returns {Promise} Promise 对象。 |
| 41 | */ |
| 42 | queryByBounds(params, callback, resultFormat) { |
| 43 | var me = this; |
| 44 | var queryService = new QueryByBoundsService(me.url, { |
| 45 | proxy: me.options.proxy, |
| 46 | withCredentials: me.options.withCredentials, |
| 47 | crossOrigin: me.options.crossOrigin, |
| 48 | headers: me.options.headers, |
| 49 | format: me._processFormat(resultFormat) |
| 50 | }); |
| 51 | |
| 52 | return queryService.processAsync(params, callback); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @function QueryService.prototype.queryByDistance |
no test coverage detected