示例#1
0
 public void RemoveImageLayer(string name)
 {
     if (string.IsNullOrEmpty(name))
     {
         return;
     }
     GeoDo.RSS.Core.DrawEngine.ILayer lyr = canvasHost1.Canvas.LayerContainer.GetByName(name);
     if (lyr != null)
     {
         canvasHost1.Canvas.LayerContainer.Layers.Remove(lyr);
     }
 }
示例#2
0
 private ILayerObjectBase GetLayerObjects(GeoDo.RSS.Core.DrawEngine.ILayer lyr)
 {
     if (lyr is IVectorHostLayer)
     {
         return(GetLayerObject(lyr as IVectorHostLayer));
     }
     else if (lyr is GeoDo.RSS.Core.DrawEngine.ILayerGroup)
     {
         return(GetLayerObject(lyr as GeoDo.RSS.Core.DrawEngine.ILayerGroup));
     }
     else
     {
         return(GetLayerObject(lyr as GeoDo.RSS.Core.DrawEngine.ILayer));
     }
 }
示例#3
0
        private ILayerObjectBase GetLayerObject(GeoDo.RSS.Core.DrawEngine.ILayer layer)
        {
            ILayerObject obj = new LayerObject(layer.Alias ?? layer.Name, layer);

            return(obj);
        }