[mapguide-commits] r6248 - in
trunk/Tools/Maestro/Maestro.AddIn.Local: Properties UI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Nov 23 09:56:48 EST 2011
Author: jng
Date: 2011-11-23 06:56:48 -0800 (Wed, 23 Nov 2011)
New Revision: 6248
Modified:
trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.Designer.cs
trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.resx
trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.Designer.cs
trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.cs
Log:
Render local previews of maps with tiled layers as though those layers were regular layers, which is better than seeing nothing. Update the warning message to reflect this.
Modified: trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.Designer.cs 2011-11-23 14:42:07 UTC (rev 6247)
+++ trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.Designer.cs 2011-11-23 14:56:48 UTC (rev 6248)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4959
+// Runtime Version:2.0.50727.5448
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -150,5 +150,14 @@
return ((System.Drawing.Bitmap)(obj));
}
}
+
+ /// <summary>
+ /// Looks up a localized string similar to WARNING: The Map Preview does not yet support rendering of tiled layers. Such layers will be rendered as normal layers for the purpose of this preview.
+ /// </summary>
+ internal static string TiledLayerSupportWarning {
+ get {
+ return ResourceManager.GetString("TiledLayerSupportWarning", resourceCulture);
+ }
+ }
}
}
Modified: trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.resx
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.resx 2011-11-23 14:42:07 UTC (rev 6247)
+++ trunk/Tools/Maestro/Maestro.AddIn.Local/Properties/Resources.resx 2011-11-23 14:56:48 UTC (rev 6248)
@@ -157,4 +157,7 @@
<data name="arrow-045" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\arrow-045.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="TiledLayerSupportWarning" xml:space="preserve">
+ <value>WARNING: The Map Preview does not yet support rendering of tiled layers. Such layers will be rendered as normal layers for the purpose of this preview</value>
+ </data>
</root>
\ No newline at end of file
Modified: trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.Designer.cs 2011-11-23 14:42:07 UTC (rev 6247)
+++ trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.Designer.cs 2011-11-23 14:56:48 UTC (rev 6248)
@@ -131,6 +131,8 @@
// legend
//
this.legend.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.legend.GroupContextMenu = null;
+ this.legend.LayerContextMenu = null;
this.legend.Location = new System.Drawing.Point(0, 0);
this.legend.Name = "legend";
this.legend.Size = new System.Drawing.Size(224, 223);
@@ -146,12 +148,12 @@
//
// viewer
//
- this.viewer.ActiveTool = OSGeo.MapGuide.Viewer.MapActiveTool.None;
+ this.viewer.ConvertTiledGroupsToNonTiled = true;
this.viewer.Cursor = System.Windows.Forms.Cursors.Default;
this.viewer.Dock = System.Windows.Forms.DockStyle.Fill;
- this.viewer.FeatureTooltipsEnabled = false;
this.viewer.Location = new System.Drawing.Point(0, 0);
this.viewer.Name = "viewer";
+ this.viewer.SelectionColor = System.Drawing.Color.Blue;
this.viewer.Size = new System.Drawing.Size(446, 440);
this.viewer.TabIndex = 0;
this.viewer.Text = "mgMapViewer1";
Modified: trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.cs 2011-11-23 14:42:07 UTC (rev 6247)
+++ trunk/Tools/Maestro/Maestro.AddIn.Local/UI/MapPreviewWindow.cs 2011-11-23 14:56:48 UTC (rev 6248)
@@ -61,7 +61,7 @@
var grp = groups.GetItem(i);
if (grp.LayerGroupType == MgLayerGroupType.BaseMap)
{
- MessageBox.Show("WARNING: The Map Preview does not yet support previews of maps with tiled layers. You will only see un-tiled ones");
+ MessageBox.Show(Properties.Resources.TiledLayerSupportWarning);
break;
}
}
More information about the mapguide-commits
mailing list