当需要控制图层的可见性时,可以使用
IMapDescription mapdescription = webMap.MapDescription;
webMap.ManageLifetime(mapdescription);
ILayerDescriptions layerdec = mapdescription.LayerDescriptions;
for(int i=0;i < mapdescription.LayerDescriptions.Count; i++)
{
ILayerDescription onelayerdesc = layerdec.get_Element(i);
onelayerdesc.Visible = true;
}
posted on 2007-08-16 11:11
JavaPoint 阅读(2359)
评论(5) 编辑 收藏 所属分类:
ArcGis