SuperMap iClient 查询成功后如何传递参数?
SuperMap iClient 查询成功后如何传递参数?
一、iClient API文档中的接口描述
二、范例
//定义一个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;