使用产品:iserver 10i
数据类型:sqlserver2012数据库型
下面的代码是单个搜索对象去查被搜索图层,classes中可以直接通过搜索图层查被搜索图层的方法吗?
let queryParam, queryGeometryParameters, queryService;
queryParam = new SuperMap.REST.FilterParameter({name: name});
queryGeometryParameters = new SuperMap.REST.QueryByGeometryParameters({
queryParams: [queryParam],
geometry: geometry,
spatialQueryMode: SuperMap.REST.SpatialQueryMode.INTERSECT
});
queryService = new SuperMap.REST.QueryByGeometryService(url, {
eventListeners: {
"processCompleted": processCompleted,
"processFailed": processFailed
}
});
queryService.processAsync(queryGeometryParameters);