想进行多个图层的属性查询,调用的是SuperMap.REST.QueryBySQLService,参考了官方CSDN上的代码,但一直报查询失败,请问现在不能这么用了吗?
这个是官方CSDN上的代码
var queryParam = [], queryBySQLParams, queryBySQLService;
queryParam[0] = new SuperMap.REST.FilterParameter({
name: "Countries@World.1",
attributeFilter: "Pop_1994>1000000000 and SmArea>900"
});
queryParam[1] = new SuperMap.REST.FilterParameter({
name: "Captials@World.1",
attributeFilter: "Pop_1994>1000000000 and SmArea>900"
});
queryBySQLParams = new SuperMap.REST.QueryBySQLParameters({
queryParams: [queryParam]
});
queryBySQLService = new SuperMap.REST.QueryBySQLService(url, {
eventListeners: {"processCompleted": processCompleted, "processFailed": processFailed}});
queryBySQLService.processAsync(queryBySQLParams);