【解决办法】通过临时图层设置过滤条件控制动态出图的单值专题图单值显示,核心代码如下:
var layerStatus = new SuperMap.LayerStatus({
layerName:"continent_T@World",
isVisible:true,
displayFilter:"SmID =1"
});
var layerStatusParameters=new SuperMap.SetLayerStatusParameters({
layerStatusList:[layerStatus]
});
new ol.supermap.LayerInfoService(url).setLayerStatus(layerStatusParameters,(e)=>{
var tempLayerID = e.result.newResourceID;})