* @function ChartService.prototype.queryChart * @description 查询海图服务。 * @param {ChartQueryParameters} params - 海图查询所需参数类。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @param {DataFormat} resultFormat - 返回结果类型。 * @returns {Promise} Promise 对象。
(params, callback, resultFormat)
| 61 | * @returns {Promise} Promise 对象。 |
| 62 | */ |
| 63 | queryChart(params, callback, resultFormat) { |
| 64 | var me = this, |
| 65 | param = params, |
| 66 | format = me._processFormat(resultFormat); |
| 67 | var chartQueryService = new ChartQueryService(me.url, { |
| 68 | proxy: me.options.proxy, |
| 69 | withCredentials: me.options.withCredentials, |
| 70 | crossOrigin: me.options.crossOrigin, |
| 71 | headers: me.options.headers, |
| 72 | format: format, |
| 73 | fieldNameFormatter: me.options.fieldNameFormatter, |
| 74 | parseProperties: me.options.parseProperties |
| 75 | }); |
| 76 | |
| 77 | return chartQueryService.processAsync(param, callback); |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * @function ChartService.prototype.getChartFeatureInfo |
no test coverage detected