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); } }
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)); } }
private ILayerObjectBase GetLayerObject(GeoDo.RSS.Core.DrawEngine.ILayer layer) { ILayerObject obj = new LayerObject(layer.Alias ?? layer.Name, layer); return(obj); }