L.kqmap.services.Projection(options, good_func, error_func)
leaflet/services/Projection.js, line 23
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
配置参数
|
|||||||||||||||
good_func |
function |
转换成功后的回调函数 |
|||||||||||||||
error_func |
function |
转换失败后的回调函数 |
Example
var good_func = (response) => {}
var error_func = (error) => {}
var options = {}
var geometry = {
"type": "Polygon",
"coordinates": coordinates,
};
options.url = service_ip + "/KQGis/rest/services";
options.geometry = geometry;
options.geoSRS = 'EPSG:4326';
options.outSRS = 'EPSG:3857';
var projection = L.kqmap.services.Projection(options);
projection.queryAsync(good_func, error_func);