iclient for openlayers地图服务sql查询多个图层时怎么将结果放到一个source里面?现在source只能加一个features.目前代码如下:
var param = new SuperMap.QueryBySQLParameters({
queryParams: [{
name: "SS1",
},{
name: "SS2",
}]
});
new ol.supermap.QueryService(url).queryBySQL(param, function (serviceResult) {
var features1= (new ol.format.GeoJSON()).readFeatures(serviceResult.result.recordsets[0].features);
var features2= (new ol.format.GeoJSON()).readFeatures(serviceResult.result.recordsets[1].features);
var vectorSource = new ol.source.Vector({
features:features1,
wrapX: false
});