MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / queryChart

Method queryChart

src/common/iServer/ChartService.js:63–78  ·  view source on GitHub ↗

* @function ChartService.prototype.queryChart * @description 查询海图服务。 * @param {ChartQueryParameters} params - 海图查询所需参数类。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @param {DataFormat} resultFormat - 返回结果类型。 * @returns {Promise} Promise 对象。

(params, callback, resultFormat)

Source from the content-addressed store, hash-verified

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

Callers 5

ChartService.jsFile · 0.45

Calls 2

processAsyncMethod · 0.95
_processFormatMethod · 0.45

Tested by

no test coverage detected