SuperMap iClient 查询成功后如何传递参数?

时间:2023-03-09 07:34:29
SuperMap  iClient  查询成功后如何传递参数?

一、iClient API文档中的接口描述

SuperMap  iClient  查询成功后如何传递参数?

二、范例

//定义一个this对象

this.param = new SuperMap.LonLat(point.x, point.y);

queryService = new SuperMap.REST.QueryByGeometryService(queryurl, {
eventListeners : {
"processCompleted" : SuperMap.Function.bind(
pointQueryprocessCompleted, this),
"processFailed" : processFailed
}
});
queryService.processAsync(queryByGeometryParameters);

//在pointQueryprocessCompleted函数中获取传递的参数

var lonlat = this.param;