L.kqmap.services.FeatureUpdate(options, function_good, function_error){Promise.<TResult>}
leaflet/services/FeatureUpdate.js, line 21
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
要素更新的配置参数
|
||||||||||||||||||
function_good |
function |
查询成功后执行的函数 |
||||||||||||||||||
function_error |
function |
查询失败后执行的函数 |
Returns:
Type | Description |
---|---|
Promise.<TResult> |
Example
var good_func = (response) => {}
var error_func = (error) => {}
var options = {};
options.url = url;
options.layerId = 3;
options.data = "{" + "'where': " + "'" + sqlwhere + "', 'type':'Feature','ID':'Feature1','geometry':{'type':'Polygon','coordinates':[[[114.23373235,30.60121859],[114.21529153,30.58753669],[114.23194775,30.56969073],[114.25128088,30.58694182],[114.23373235,30.60121859]]]},'properties':{'GEOMETRY':'','XZBM':'','FHDM':'','QSRQ':'','ZZRQ':'','BSM':'','YSDM':'','XZQDM':'','XZQMC':'','KZMJ':'','JSMJ':'','MSSM':'','BGRQ':'','KANQDB_LENGTH':'','KANQDB_AREA':''}}"
options.geoSRS = 'EPSG:4326';
options.outSRS = 'EPSG:4326';
options.version = '2.0';
var query = new L.kqmap.services.FeatureUpdate(options);
query.queryAsync(good_func, error_func);
Extends
Methods
-
inherited queryAsync(func_good(), func_error())
leaflet/services/QueryBase.js, line 48 -
查询请求,由子类实例化后调用。
Name Type Description func_good()
function 查询成功后处理函数。
func_error()
function 查询错误后处理函数。