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

Method queryBySQL

src/common/iServer/QueryService.js:84–95  ·  view source on GitHub ↗

* @function QueryService.prototype.queryBySQL * @description 地图 SQL 查询服务。 * @param {QueryBySQLParameters} params - SQL 查询参数类。 * @param {RequestCallback} [callback] - 回调函数,该参数未传时可通过返回的 promise 获取结果。 * @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。 * @ret

(params, callback, resultFormat)

Source from the content-addressed store, hash-verified

82 * @returns {Promise} Promise 对象。
83 */
84 queryBySQL(params, callback, resultFormat) {
85 var me = this;
86 var queryBySQLService = new QueryBySQLService(me.url, {
87 proxy: me.options.proxy,
88 withCredentials: me.options.withCredentials,
89 crossOrigin: me.options.crossOrigin,
90 headers: me.options.headers,
91 format: resultFormat
92 });
93
94 return queryBySQLService.processAsync(params, callback);
95 }
96
97 /**
98 * @function QueryService.prototype.queryByGeometry

Calls 1

processAsyncMethod · 0.45

Tested by

no test coverage detected