[mapserver-commits] r10796 - trunk/mapserver/mapscript/csharp/examples

svn at osgeo.org svn at osgeo.org
Sun Dec 12 11:59:51 EST 2010


Author: tamas
Date: 2010-12-12 08:59:51 -0800 (Sun, 12 Dec 2010)
New Revision: 10796

Modified:
   trunk/mapserver/mapscript/csharp/examples/inline.cs
Log:
Modify the example to follow the new expresion syntax

Modified: trunk/mapserver/mapscript/csharp/examples/inline.cs
===================================================================
--- trunk/mapserver/mapscript/csharp/examples/inline.cs	2010-12-11 15:03:52 UTC (rev 10795)
+++ trunk/mapserver/mapscript/csharp/examples/inline.cs	2010-12-12 16:59:51 UTC (rev 10796)
@@ -61,7 +61,7 @@
       classObj classobj = new classObj(layer);
       classobj.template = "query";   // making the layer queryable
       // setting up the text based on multiple attributes
-      classobj.setText("(Shape:[attribute1] Color:[attribute2] Size:[attribute3])");
+      classobj.setText("('Shape:' + '[attribute1]' + ' Color:' + '[attribute2]' + ' Size:' + '[attribute3]')");
       // define the label
       classobj.label.outlinecolor = new colorObj(255, 255, 255, 0);
       classobj.label.force = mapscript.MS_TRUE;



More information about the mapserver-commits mailing list