Class: LegendQuery

LegendQuery

图例查询类

L.kqmap.services.LegendQuery(options, onsuccess, onfailed){Promise.<TResult>}

leaflet/services/LegendQuery.js, line 18
Name Type Description
options Object

图例查询的配置参数

Name Type Description
url String

服务器的url地址

layerId String

图例查询的图层ID

bbox String

进行图例查询的图层范围

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.layerId = 2;
options.bbox = '';
var query = new L.kqmap.services.LegendQuery(options);
query.queryAsync(onsuccess, onfailed);

Extends

Methods

inherited queryAsync(onsuccess(), onfailed())

leaflet/services/QueryBase.js, line 48

查询请求,由子类实例化后调用。

Name Type Description
onsuccess() function

查询成功后处理函数。

onfailed() function

查询错误后处理函数。