[mapguide-commits] r4457 - trunk/Tools/Maestro/Maestro/ResourceEditors

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 21 16:09:36 EST 2009


Author: ksgeograf
Date: 2009-12-21 16:09:35 -0500 (Mon, 21 Dec 2009)
New Revision: 4457

Modified:
   trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs
Log:
Maestro:
Fixed issue #1207

Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs	2009-12-21 21:08:49 UTC (rev 4456)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs	2009-12-21 21:09:35 UTC (rev 4457)
@@ -1419,6 +1419,16 @@
                     maplayer.ShowInLegend = true;
                     maplayer.ExpandInLegend = true;
                     maplayer.Selectable = false; //Better for performance
+
+                    if (tabLayers.SelectedTab == tabLayerGroups && trvLayerGroups.SelectedNode != null)
+                    {
+                        if (trvLayerGroups.SelectedNode.Tag is MaestroAPI.MapLayerGroupType)
+                            maplayer.Group = (trvLayerGroups.SelectedNode.Tag as MaestroAPI.MapLayerGroupType).Name;
+                        else if (trvLayerGroups.SelectedNode.Tag is MaestroAPI.MapLayerType)
+                            maplayer.Group = (trvLayerGroups.SelectedNode.Tag as MaestroAPI.MapLayerType).Group;
+                    }
+                    
+
                     m_map.Layers.Add(maplayer);
                     
                     lastItem = maplayer;



More information about the mapguide-commits mailing list