L.kqmap.services.SummaryAnalysis(options, onsuccess, onfailed){Promise.<TResult>}
leaflet/services/SummaryAnalysis.js, line 28
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
汇总分析的配置参数
|
||||||||||||||||||||||||||||||||||||||||||
onsuccess |
function |
查询成功后执行的函数 |
||||||||||||||||||||||||||||||||||||||||||
onfailed |
function |
查询失败后执行的函数 |
Returns:
Type | Description |
---|---|
Promise.<TResult> |
Example
var onsuccess = (response) => {}
var onfailed = (error) => {}
var options = {}
options.url = service_ip + "/KQGis/rest/services/china3857";
options.reqCount = 20;
options.geoSRS = 'EPSG:4326';
options.geometry = '{}';
options.layerId = 2;
options.where = 'OBJECTID > 8 AND OBJECTID < 20';
options.geoSRS = 'EPSG:3857';
options.groupfields = 'OBJECTID';
options.summaryfields = '$area$';
options.summarytypes = 'sum';
options.areaSRS = 'EPSG:4326';
options.isOverlap = true;
var query = new L.kqmap.services.SummaryAnalysis(options);
query.queryAsync(onsuccess, onfailed);
Extends
Methods
-
inherited queryAsync(onsuccess(), onfailed())
leaflet/services/QueryBase.js, line 48 -
查询请求,由子类实例化后调用。
Name Type Description onsuccess()
function 查询成功后处理函数。
onfailed()
function 查询错误后处理函数。