[mapguide-commits] r6508 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Feb 13 09:21:31 EST 2012


Author: jng
Date: 2012-02-13 06:21:31 -0800 (Mon, 13 Feb 2012)
New Revision: 6508

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/MapDefinition.cs
Log:
#1941: Add new layers to the top of the draw order in the Map Definition

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/MapDefinition.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/MapDefinition.cs	2012-02-13 14:07:27 UTC (rev 6507)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/MapDefinition.cs	2012-02-13 14:21:31 UTC (rev 6508)
@@ -284,7 +284,7 @@
             //TODO: Throw exception if adding to non-existent group?
             layer.Group = string.IsNullOrEmpty(groupName) ? string.Empty : groupName;
             
-            this.MapLayer.Add(layer);
+            this.MapLayer.Insert(0, layer);
             OnPropertyChanged("MapLayer");
 
             if (this.MapLayer.Count == 1) //First one



More information about the mapguide-commits mailing list