发布的数据集想按条件一次查询两个数据集的数据显示,不知道怎么弄,大神有咩有实例参考一下。我参考https://blog.csdn.net/supermapsupport/article/details/54311880里面的地图查询查不出来,不知道为啥?下面是我的代码,
function mapQueryForRegs(code) {
var queryParam=[], queryBySQLParams, queryBySQLService;
queryParam[0] = new SuperMap.REST.FilterParameter({
name: "市级区划@tbcs",
attributeFilter: "CODE=620100"
});
queryParam[1] = new SuperMap.REST.FilterParameter({
name: "县级区划@tbcs",
attributeFilter: "PAC=620102"
});
queryBySQLParams = new SuperMap.REST.QueryBySQLParameters({
queryParams: [queryParam]
});
queryBySQLService = new SuperMap.REST.QueryBySQLService($.Map.config.baseLayer, {
eventListeners: {"processCompleted": processCompleted, "processFailed": processFailed}
});
queryBySQLService.processAsync(queryBySQLParams);
}