Iclient几何查询多个数据集

0 投票
版本是iclient8C ,操作:在页面上话多边形,然后同时查询出多边形内的两个或者多个图层数据,并加载出来。能实现么?
5月 15 分类:  17次浏览 | 用户: giser宇 牛刀小试 (134 分)
重新分类 5月 15 用户:布鲁斯李

1个回答

0 投票
5月 15 用户: 于浩 名扬四海 (3,073 分)
好的,我看看    谢谢
function drawGeometry1() {
            //先清除上次的显示结果
            clearStatus();
            drawPolygon1.activate();
        }
        function drawCompleted(drawGeometryArgs) {
            drawGeometryArgs.feature.style = style;
            vectorLayer.redraw();

            var queryParam[], queryByGeometryParameters, queryService;
            queryParam[0] = new SuperMap.REST.FilterParameter({ name: "BUF_500@ZhengZhouNullArea" });
            queryParam[1] = new SuperMap.REST.FilterParameter({ name: "AreaNull@ZhengZhouNullArea" });
            queryByGeometryParameters = new SuperMap.REST.QueryByGeometryParameters({
                queryParams: [queryParam],
                geometry: drawGeometryArgs.feature.geometry,
                spatialQueryMode: SuperMap.REST.SpatialQueryMode.INTERSECT
            });
            queryService = new SuperMap.REST.QueryByGeometryService(url5, {
                eventListeners: {
                    "processCompleted": processCompleted,
                    "processFailed": processFailed
                }
            });
            queryService.processAsync(queryByGeometryParameters);
        }
 

我这样写的时候,geometry: drawGeometryArgs.feature.geometry,这一行代码报错,提示Unexpected token
...