private ILayerObjectBase GetLayerObject(GeoDo.RSS.Core.DrawEngine.ILayerGroup layerGroup)
        {
            ILayerObjecGroup g = new LayerObjectGroup(layerGroup.Alias ?? layerGroup.Name);

            if (layerGroup.Layers == null || layerGroup.Layers.Count == 0)
            {
                return(g);
            }
            GetLayerObjects(layerGroup, g);
            return(null);
        }
 private void GetLayerObjects(GeoDo.RSS.Core.DrawEngine.ILayerGroup layerGroup, ILayerObjecGroup g)
 {
     foreach (GeoDo.RSS.Core.DrawEngine.ILayer lyr in layerGroup.Layers)
     {
         ILayerObjectBase obj = GetLayerObjects(lyr);
         if (obj != null)
         {
             g.Children.Add(obj);
         }
         if (lyr is ILayerGroup)
         {
             GetLayerObjects(lyr as ILayerGroup, obj as ILayerObjecGroup);
         }
     }
 }