您好,地图查询可以实现多图层查询,例如Leaflet的几何查询:
var param = new L.supermap.QueryByGeometryParameters({
queryParams: [{name: "Capitals@World.1"},
{name: "Countries@World.1"}],
geometry: polygon
});
new L.supermap
.QueryService(url)
.queryByGeometry(param).then(function (serviceResult) {
var results = serviceResult.result.recordsets;
for(var i = 0; i < results.length; i++){
resultLayer = L.geoJSON(results[i].features).addTo(map);
}
});