[mapguide-commits] r6250 - in trunk/Tools/Maestro: Maestro.AddIn.Local OSGeo.MapGuide.MaestroAPI/Mapping OSGeo.MapGuide.MaestroAPI/ObjectModels

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Nov 25 10:27:05 EST 2011


Author: jng
Date: 2011-11-25 07:27:04 -0800 (Fri, 25 Nov 2011)
New Revision: 6250

Modified:
   trunk/Tools/Maestro/Maestro.AddIn.Local/Maestro.AddIn.Local.csproj
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerFactory.cs
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerInterfaces.cs
Log:
More API tweaks:
 - Make RuntimeMapLayer.Parent public
 - Add a missing CreateDefaultAdvancedPlacement() API for creating IAdvancedPlacement instances

Modified: trunk/Tools/Maestro/Maestro.AddIn.Local/Maestro.AddIn.Local.csproj
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Local/Maestro.AddIn.Local.csproj	2011-11-24 14:32:43 UTC (rev 6249)
+++ trunk/Tools/Maestro/Maestro.AddIn.Local/Maestro.AddIn.Local.csproj	2011-11-25 15:27:04 UTC (rev 6250)
@@ -82,6 +82,7 @@
     <ProjectReference Include="..\Maestro.Editors\Maestro.Editors.csproj">
       <Project>{5AD2CDBA-952E-4148-98A1-31D2E0D540D5}</Project>
       <Name>Maestro.Editors</Name>
+      <Private>False</Private>
     </ProjectReference>
     <ProjectReference Include="..\Maestro.Shared.UI\Maestro.Shared.UI.csproj">
       <Project>{CFD19053-2172-41D3-8460-0FD2123A1E88}</Project>
@@ -94,6 +95,7 @@
     <ProjectReference Include="..\OSGeo.MapGuide.MaestroAPI\OSGeo.MapGuide.MaestroAPI.csproj">
       <Project>{80FA3158-8B5F-48D1-A393-0378AFE48A7E}</Project>
       <Name>OSGeo.MapGuide.MaestroAPI</Name>
+      <Private>False</Private>
     </ProjectReference>
     <ProjectReference Include="..\Thirdparty\SharpDevelop\ICSharpCode.Core\ICSharpCode.Core.csproj">
       <Project>{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}</Project>

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2011-11-24 14:32:43 UTC (rev 6249)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Mapping/RuntimeMapLayer.cs	2011-11-25 15:27:04 UTC (rev 6250)
@@ -92,7 +92,10 @@
 
         const double InfinityScale = double.MaxValue;
 
-        internal RuntimeMap Parent { get; private set; }
+        /// <summary>
+        /// Gets the <see cref="T:OSGeo.MapGuide.MaestroAPI.Mapping.RuntimeMap"/> that this layer belongs to
+        /// </summary>
+        public RuntimeMap Parent { get; private set; }
 
         internal RuntimeMapLayer(RuntimeMap parent) 
         {

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerFactory.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerFactory.cs	2011-11-24 14:32:43 UTC (rev 6249)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerFactory.cs	2011-11-25 15:27:04 UTC (rev 6250)
@@ -348,6 +348,11 @@
             return lr;
         }
 
+        public IAdvancedPlacement CreateDefaultAdvancedPlacement(double scaleLimit)
+        {
+            return new TextSymbolTypeAdvancedPlacement() { ScaleLimit = scaleLimit };
+        }
+
         public ITextSymbol CreateDefaultTextSymbol()
         {
             return new TextSymbolType()

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerInterfaces.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerInterfaces.cs	2011-11-24 14:32:43 UTC (rev 6249)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LayerInterfaces.cs	2011-11-25 15:27:04 UTC (rev 6250)
@@ -285,6 +285,13 @@
         ITextSymbol CreateDefaultTextSymbol();
 
         /// <summary>
+        /// Creates a default advanced placement setting
+        /// </summary>
+        /// <param name="limit"></param>
+        /// <returns></returns>
+        IAdvancedPlacement CreateDefaultAdvancedPlacement(double scaleLimit);
+
+        /// <summary>
         /// Creates a fill
         /// </summary>
         /// <param name="pattern"></param>



More information about the mapguide-commits mailing list