[mapguide-commits] r6284 - in trunk/Tools/Maestro: OSGeo.MapGuide.MaestroAPI/Mapping SDK/SamplesWeb/SamplesWeb/Tasks

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 5 08:07:16 EST 2011


Author: jng
Date: 2011-12-05 05:07:16 -0800 (Mon, 05 Dec 2011)
New Revision: 6284

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
   trunk/Tools/Maestro/SDK/SamplesWeb/SamplesWeb/Tasks/ModifyParcelsFilter.aspx.cs
Log:
Fix HasTooltips property not being properly initialized. SDK layer filter modification sample has also been updated to copy the legend label from the original laye

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2011-12-02 18:28:12 UTC (rev 6283)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2011-12-05 13:07:16 UTC (rev 6284)
@@ -126,6 +126,7 @@
                 this.FeatureSourceID = vl.ResourceId;
                 this.Filter = vl.Filter;
                 InitIdentityProperties(vl);
+                this.HasTooltips = !string.IsNullOrEmpty(vl.ToolTip);
             }
             else if (ldf.SubLayer.LayerType == LayerType.Raster)
             {

Modified: trunk/Tools/Maestro/SDK/SamplesWeb/SamplesWeb/Tasks/ModifyParcelsFilter.aspx.cs
===================================================================
--- trunk/Tools/Maestro/SDK/SamplesWeb/SamplesWeb/Tasks/ModifyParcelsFilter.aspx.cs	2011-12-02 18:28:12 UTC (rev 6283)
+++ trunk/Tools/Maestro/SDK/SamplesWeb/SamplesWeb/Tasks/ModifyParcelsFilter.aspx.cs	2011-12-05 13:07:16 UTC (rev 6284)
@@ -83,6 +83,7 @@
                 RuntimeMapLayer replace = new RuntimeMapLayer(rtMap, ldf);
                 replace.ExpandInLegend = layer.ExpandInLegend;
                 replace.Group = layer.Group;
+                replace.LegendLabel = layer.LegendLabel;
                 replace.Name = layer.Name;
                 replace.Selectable = layer.Selectable;
                 replace.ShowInLegend = layer.ShowInLegend;



More information about the mapguide-commits mailing list