[mapguide-commits] r6377 - in trunk/MgDev/Doc/samples/dotnetsamples: . common modifying_maps_and_layers viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Dec 29 05:44:46 EST 2011


Author: jng
Date: 2011-12-29 02:44:45 -0800 (Thu, 29 Dec 2011)
New Revision: 6377

Added:
   trunk/MgDev/Doc/samples/dotnetsamples/common/viewresourcecontent.aspx
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/arearule.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/areatypestyle.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/layerdefinition.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linerule.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linetypestyle.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/marksymbol.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointrule.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointtypestyle.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/scalerange.templ
   trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/textsymbol.templ
Modified:
   trunk/MgDev/Doc/samples/dotnetsamples/common/mapinfo.aspx
   trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/create_new_point_layer_definition.aspx
   trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/layer_functions.aspx
Log:
Dev Guide: Fix modify maps and layers examples (.net)

Modified: trunk/MgDev/Doc/samples/dotnetsamples/common/mapinfo.aspx
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/common/mapinfo.aspx	2011-12-29 09:30:11 UTC (rev 6376)
+++ trunk/MgDev/Doc/samples/dotnetsamples/common/mapinfo.aspx	2011-12-29 10:44:45 UTC (rev 6377)
@@ -82,6 +82,7 @@
                 <th>Layer Type</th>
                 <th>Layer Definition</th>
                 <th>Feature Source Id</th>
+                <th>Object Id</th>
                 <th>Needs Refresh</th>
             </tr>
             <% 
@@ -98,8 +99,9 @@
                 <td><%= layer.IsVisible() %></td>
                 <td><%= layer.GetExpandInLegend() %></td>
                 <td><%= layer.GetLayerType() %></td>
-                <td><%= layer.GetLayerDefinition().ToString() %></td>
-                <td><%= layer.GetFeatureSourceId() %></td>
+                <td><a target="_blank" href="viewresourcecontent.aspx?SESSION=<%= sessionId %>&RESOURCEID=<%= layer.GetLayerDefinition().ToString() %>"><%= layer.GetLayerDefinition().ToString() %></a></td>
+                <td><a target="_blank" href="viewresourcecontent.aspx?SESSION=<%= sessionId %>&RESOURCEID=<%= layer.GetFeatureSourceId() %>"><%= layer.GetLayerDefinition().ToString() %></a></td>
+                <td><%= layer.GetObjectId() %></td>
                 <td><%= layer.NeedsRefresh() %></td>
             </tr>
             <% } %>

Added: trunk/MgDev/Doc/samples/dotnetsamples/common/viewresourcecontent.aspx
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/common/viewresourcecontent.aspx	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/common/viewresourcecontent.aspx	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,46 @@
+<%--
+  Copyright (C) 2004-2011 by Autodesk, Inc.
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of version 2.1 of the GNU Lesser
+  General Public License as published by the Free Software Foundation.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+--%>
+<%@ Page language="c#" %>
+<%@ Import Namespace="System" %>
+<%@ Import Namespace="System.Xml" %>
+<%@ Import Namespace="OSGeo.MapGuide" %>
+<!-- #Include File="common.aspx" -->
+<script runat="server">
+String sessionId;
+MgResourceIdentifier resourceId;
+</script>
+<html>
+<head></head>
+<body>
+<pre>
+<%
+    //---------------------------------------------------//
+    // Initialize
+    MapGuideApi.MgInitializeWebTier(Constants.WebConfigPath);
+    sessionId = Request.Params["SESSION"];
+    resourceId = new MgResourceIdentifier(Request.Params["RESOURCEID"]);
+    MgUserInformation userInfo = new MgUserInformation(sessionId);
+    MgSiteConnection siteConnection = new MgSiteConnection();
+    siteConnection.Open(userInfo);
+    
+    MgResourceService resSvc = (MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);
+    MgByteReader content = resSvc.GetResourceContent(resourceId);
+    
+    Response.Write(HttpUtility.HtmlEncode(content.ToString()));
+%>
+</pre>
+</body>
+</html>

Modified: trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/create_new_point_layer_definition.aspx
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/create_new_point_layer_definition.aspx	2011-12-29 09:30:11 UTC (rev 6376)
+++ trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/create_new_point_layer_definition.aspx	2011-12-29 10:44:45 UTC (rev 6377)
@@ -18,7 +18,7 @@
 <%@ Import Namespace="System" %>
 <%@ Import Namespace="System.Xml" %>
 <%@ Import Namespace="OSGeo.MapGuide" %>
-<!-- #Include File="layer_functions.aspx" -->
+<!-- #Include File="layer_functions.aspx" -->z
 <script runat="server">
 String sessionId;
 String mapName;
@@ -91,39 +91,43 @@
 	classDefinition.SetDescription("Feature class with point data.");
 	classDefinition.SetDefaultGeometryPropertyName("GEOM");
 
+    MgPropertyDefinitionCollection idProps = classDefinition.GetIdentityProperties();
+    MgPropertyDefinitionCollection clsProps = classDefinition.GetProperties();
+    
 	// Create an identify property
 	MgDataPropertyDefinition identityProperty = new MgDataPropertyDefinition("KEY");
 	identityProperty.SetDataType(MgPropertyType.Int32);
 	identityProperty.SetAutoGeneration(true);
 	identityProperty.SetReadOnly(true);
 	// Add the identity property to the class definition
-	classDefinition.GetIdentityProperties().Add(identityProperty);
-	classDefinition.GetProperties().Add(identityProperty);
+    clsProps.Add(identityProperty);
+    idProps.Add(identityProperty);
 
 	// Create a name property
 	MgDataPropertyDefinition nameProperty = new MgDataPropertyDefinition("NAME");
 	nameProperty.SetDataType(MgPropertyType.String);
 	// Add the name property to the class definition
-	classDefinition.GetProperties().Add(nameProperty);
+    clsProps.Add(nameProperty);
 
 	// Create a geometry property
 	MgGeometricPropertyDefinition geometryProperty = new MgGeometricPropertyDefinition("GEOM");
 	geometryProperty.SetGeometryTypes(MgFeatureGeometricType.Point);
 	// Add the geometry property to the class definition
-	classDefinition.GetProperties().Add(geometryProperty);
+    clsProps.Add(geometryProperty);
 
 	// Create a feature schema
 	MgFeatureSchema featureSchema = new MgFeatureSchema("PointSchema", "Point schema");
+    MgClassDefinitionCollection classes = featureSchema.GetClasses();
 	// Add the feature schema to the class definition
-	featureSchema.GetClasses().Add(classDefinition);
+    classes.Add(classDefinition);
 
 	// Create the feature source
 	String featureSourceName = "Library://Samples/DevGuide/Data/points.FeatureSource";
 	MgResourceIdentifier resourceIdentifier = new MgResourceIdentifier(featureSourceName);
 	//wkt = "LOCALCS[\"*XY-MT*\",LOCAL_DATUM[\"*X-Y*\",10000],UNIT[\"Meter\", 1],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]";
-    String wkt = map.GetMapSRS();
-	//sdfParams = new MgCreateSdfParams("ArbitraryXY", wkt, featureSchema);
+    String wkt = "GEOGCS[\"LL84\",DATUM[\"WGS84\",SPHEROID[\"WGS84\",6378137.000,298.25722293]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.01745329251994]]";
     MgCreateSdfParams sdfParams = new MgCreateSdfParams("LatLong", wkt, featureSchema);
+    sdfParams.SetFileName("points.sdf");
     featureService.CreateFeatureSource(resourceIdentifier, sdfParams);
 
 	// We need to add some data to the sdf before using it.  The spatial context

Modified: trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/layer_functions.aspx
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/layer_functions.aspx	2011-12-29 09:30:11 UTC (rev 6376)
+++ trunk/MgDev/Doc/samples/dotnetsamples/modifying_maps_and_layers/layer_functions.aspx	2011-12-29 10:44:45 UTC (rev 6377)
@@ -15,6 +15,7 @@
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 --%>
 <%@ Import Namespace="System" %>
+<%@ Import Namespace="System.Xml" %>
 <%@ Import Namespace="OSGeo.MapGuide" %>
 <!-- #Include File="../common/common.aspx" -->
 <script language="C#" runat="server">
@@ -25,19 +26,22 @@
     public static MgLayer AddLayerDefinitionToMap(XmlDocument domDocument, String layerName, String layerLegendLabel, String sessionId, MgResourceService resourceService, MgMap map)
     {
         // TODO: Should probably validate this XML content
-
         using (MemoryStream ms = new MemoryStream())
         {
             domDocument.Save(ms);
             ms.Position = 0L;
+            //Note we do this to ensure our XML content is free of any BOM characters
+            byte [] layerDefinition = ms.ToArray();
+            Encoding utf8 = Encoding.UTF8;
+            String layerDefStr = new String(utf8.GetChars(layerDefinition));
+            layerDefinition = new byte[layerDefStr.Length-1];
+            int byteCount = utf8.GetBytes(layerDefStr, 1, layerDefStr.Length-1, layerDefinition, 0);
             // Save the new layer definition to the session repository  
-            MgByteSource byteSource = new MgByteSource(ms.GetBuffer(), (int)ms.Length);
-            byteSource.SetMimeType(MgMimeType.Xml);
+            MgByteSource byteSource = new MgByteSource(layerDefinition, layerDefinition.Length);
             MgResourceIdentifier resourceID = new MgResourceIdentifier("Session:" + sessionId + "//" + layerName + ".LayerDefinition");
             resourceService.SetResource(resourceID, byteSource.GetReader(), null);
             
             MgLayer newLayer = AddLayerResourceToMap(resourceID, resourceService, layerName, layerLegendLabel, map);
-
             return newLayer;
         }
     }
@@ -105,14 +109,13 @@
     
     //Creates Area Rule
     //Parameters:
-    //foreGroundColor - color code for the foreground color
-    //legendLabel - string for the legend label
-    //filterText - filter string
-    //textSymbol - use textsymbol.templ to create it
-    public String CreateAreaRule(String legendLabel, String filterText, String foreGroundColor)
+    // legendLabel - string for the legend label
+    // filterText - filter string
+    // fillColor - fill color
+    public String CreateAreaRule(String legendLabel, String filterText, String fillColor)
     {
-        String areaRule = File.ReadAllText(Server.MapPath("../../viewerfiles/arearule.templ"));
-        areaRule = TemplateUtil.Substitute(areaRule, legendLabel, filterText, foreGroundColor);
+        String areaRule = File.ReadAllText(Server.MapPath("../viewerfiles/arearule.templ"));
+        areaRule = TemplateUtil.Substitute(areaRule, legendLabel, filterText, fillColor);
         return areaRule;
     }
 
@@ -121,7 +124,7 @@
     //areaRules - call CreateAreaRule to create area rules
     public String CreateAreaTypeStyle(String areaRules)
     {
-        String style = File.ReadAllText(Server.MapPath("../../viewerfiles/areatypestyle.templ"));
+        String style = File.ReadAllText(Server.MapPath("../viewerfiles/areatypestyle.templ"));
         style = TemplateUtil.Substitute(style, areaRules);
         return style;
     }
@@ -133,7 +136,7 @@
     //filter - filter string
     public String CreateLineRule(String legendLabel, String filter, String color)
     {
-        String lineRule = File.ReadAllText(Server.MapPath("../../viewerfiles/linerule.templ"));
+        String lineRule = File.ReadAllText(Server.MapPath("../viewerfiles/linerule.templ"));
         lineRule = TemplateUtil.Substitute(lineRule, legendLabel, filter, color);
         return lineRule;
     }
@@ -143,7 +146,7 @@
     //lineRules - call CreateLineRule to create line rules
     public String CreateLineTypeStyle(String lineRules)
     {
-        String lineStyle = File.ReadAllText(Server.MapPath("../../viewerfiles/linetypestyle.templ"));
+        String lineStyle = File.ReadAllText(Server.MapPath("../viewerfiles/linetypestyle.templ"));
         lineStyle = TemplateUtil.Substitute(lineStyle, lineRules);
         return lineStyle;
     }
@@ -157,7 +160,7 @@
     //color - color code for the symbol color
     public String CreateMarkSymbol(String resourceId, String symbolName, String width, String height, String color)
     {
-        String markSymbol = File.ReadAllText(Server.MapPath("../../viewerfiles/marksymbol.templ"));
+        String markSymbol = File.ReadAllText(Server.MapPath("../viewerfiles/marksymbol.templ"));
         markSymbol = TemplateUtil.Substitute(markSymbol, width, height, resourceId, symbolName, color);
         return markSymbol;
     }
@@ -170,7 +173,7 @@
     //foregroundColor - color code for the foreground color
     public String CreateTextSymbol(String text, String fontHeight, String foregroundColor)
     {
-        String textSymbol = File.ReadAllText(Server.MapPath("../../viewerfiles/textsymbol.templ"));
+        String textSymbol = File.ReadAllText(Server.MapPath("../viewerfiles/textsymbol.templ"));
         textSymbol = TemplateUtil.Substitute(textSymbol, fontHeight, fontHeight, text, foregroundColor);
         return textSymbol;
     }
@@ -183,7 +186,7 @@
     //label - use CreateTextSymbol to create it
     public String CreatePointRule(String legendLabel, String filter, String label, String pointSym)
     {
-        String pointRule = File.ReadAllText(Server.MapPath("../../viewerfiles/pointrule.templ"));
+        String pointRule = File.ReadAllText(Server.MapPath("../viewerfiles/pointrule.templ"));
         pointRule = TemplateUtil.Substitute(pointRule, legendLabel, filter, label, pointSym);
         return pointRule;
     }
@@ -193,7 +196,7 @@
     //pointRule - use CreatePointRule to define rules
     public String CreatePointTypeStyle(String pointRule)
     {
-        String pointTypeStyle = File.ReadAllText(Server.MapPath("../../viewerfiles/pointtypestyle.templ"));
+        String pointTypeStyle = File.ReadAllText(Server.MapPath("../viewerfiles/pointtypestyle.templ"));
         pointTypeStyle = TemplateUtil.Substitute(pointTypeStyle, pointRule);
         return pointTypeStyle;
     }
@@ -205,7 +208,7 @@
     //typeStyle - use one CreateAreaTypeStyle, CreateLineTypeStyle, or CreatePointTypeStyle
     public String CreateScaleRange(String minScale, String maxScale, String typeStyle)
     {
-        String scaleRange = File.ReadAllText(Server.MapPath("../../viewerfiles/scalerange.templ"));
+        String scaleRange = File.ReadAllText(Server.MapPath("../viewerfiles/scalerange.templ"));
         scaleRange = TemplateUtil.Substitute(scaleRange, minScale, maxScale, typeStyle);
         return scaleRange;
     }
@@ -217,7 +220,7 @@
     //featureClassRange - use CreateScaleRange to define it.
     public String CreateLayerDefinition(String resourceId, String featureClass, String geometry, String featureClassRange)
     {
-        String layerDef = File.ReadAllText(Server.MapPath("../../viewerfiles/layerdefinition.templ"));
+        String layerDef = File.ReadAllText(Server.MapPath("../viewerfiles/layerdefinition.templ"));
         layerDef = TemplateUtil.Substitute(layerDef, resourceId, featureClass, geometry, featureClassRange);
         return layerDef;
     }

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/arearule.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/arearule.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/arearule.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,18 @@
+<AreaRule>
+    <LegendLabel>%s</LegendLabel>
+    <Filter>%s</Filter>
+    <AreaSymbolization2D>
+        <Fill>
+            <FillPattern>Solid</FillPattern>
+            <ForegroundColor>%s</ForegroundColor>
+            <BackgroundColor>FF000000</BackgroundColor>
+        </Fill>
+        <Stroke>
+            <LineStyle>Solid</LineStyle>
+            <Thickness>1</Thickness>
+            <Color>FF000000</Color>
+            <Unit>Points</Unit>
+            <SizeContext>DeviceUnits</SizeContext>
+        </Stroke>
+    </AreaSymbolization2D>
+</AreaRule>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/areatypestyle.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/areatypestyle.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/areatypestyle.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1 @@
+<AreaTypeStyle>%s</AreaTypeStyle>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/layerdefinition.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/layerdefinition.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/layerdefinition.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerDefinition-1.3.0.xsd" version="1.3.0">
+  <VectorLayerDefinition>
+    <ResourceId>%s</ResourceId>
+    <FeatureName>%s</FeatureName>
+    <FeatureNameType>FeatureClass</FeatureNameType>
+    <Geometry>%s</Geometry>
+    %s
+  </VectorLayerDefinition>
+</LayerDefinition>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linerule.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linerule.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linerule.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,11 @@
+<LineRule>
+    <LegendLabel>%s</LegendLabel>
+    <Filter>%s</Filter>
+    <LineSymbolization2D>
+    <LineStyle>Solid</LineStyle>
+    <Thickness>1</Thickness>
+    <Color>%s</Color>
+    <Unit>Points</Unit>
+    <SizeContext>DeviceUnits</SizeContext>
+    </LineSymbolization2D>
+</LineRule>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linetypestyle.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linetypestyle.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/linetypestyle.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1 @@
+<LineTypeStyle>%s</LineTypeStyle>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/marksymbol.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/marksymbol.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/marksymbol.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,15 @@
+<W2D>
+    <Unit>Points</Unit>
+    <SizeContext>DeviceUnits</SizeContext>
+    <SizeX>%s</SizeX>
+    <SizeY>%s</SizeY>
+    <Rotation>0</Rotation>
+    <MaintainAspect>true</MaintainAspect>
+    <W2DSymbol>
+        <ResourceId>%s</ResourceId>
+        <LibraryItemName>%s</LibraryItemName>
+    </W2DSymbol>
+    <FillColor>%s</FillColor>
+    <LineColor>FF000000</LineColor>
+    <TextColor>FF000000</TextColor>
+</W2D>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointrule.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointrule.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointrule.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,6 @@
+<PointRule>
+    <LegendLabel>%s</LegendLabel>
+    <Filter>%s</Filter>
+    <Label>%s</Label>
+    <PointSymbolization2D>%s</PointSymbolization2D>
+</PointRule>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointtypestyle.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointtypestyle.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/pointtypestyle.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,5 @@
+<PointTypeStyle>
+    <DisplayAsText>false</DisplayAsText>
+    <AllowOverpost>false</AllowOverpost>
+    %s
+</PointTypeStyle>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/scalerange.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/scalerange.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/scalerange.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,5 @@
+<VectorScaleRange>
+    <MinScale>%s</MinScale>
+    <MaxScale>%s</MaxScale>
+    %s
+</VectorScaleRange>

Added: trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/textsymbol.templ
===================================================================
--- trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/textsymbol.templ	                        (rev 0)
+++ trunk/MgDev/Doc/samples/dotnetsamples/viewerfiles/textsymbol.templ	2011-12-29 10:44:45 UTC (rev 6377)
@@ -0,0 +1,15 @@
+<Unit>Points</Unit>
+<SizeContext>DeviceUnits</SizeContext>
+<SizeX>%s</SizeX>
+<SizeY>%s</SizeY>
+<Rotation>0</Rotation>
+<Text>%s</Text>
+<FontName>Arial</FontName>
+<ForegroundColor>%s</ForegroundColor>
+<BackgroundColor>FF000000</BackgroundColor>
+<BackgroundStyle>Transparent</BackgroundStyle>
+<HorizontalAlignment>Center</HorizontalAlignment>
+<VerticalAlignment>Baseline</VerticalAlignment>
+<Bold>false</Bold>
+<Italic>false</Italic>
+<Underlined>false</Underlined>



More information about the mapguide-commits mailing list