[mapserver-commits] r12721 - trunk/docs/en/mapfile

svn at osgeo.org svn at osgeo.org
Sat Oct 29 16:00:25 EDT 2011


Author: havatv
Date: 2011-10-29 13:00:25 -0700 (Sat, 29 Oct 2011)
New Revision: 12721

Modified:
   trunk/docs/en/mapfile/symbol.txt
Log:
Added documentation of the new parameter ANCHORPOINT to the symbol document (#4066)

Modified: trunk/docs/en/mapfile/symbol.txt
===================================================================
--- trunk/docs/en/mapfile/symbol.txt	2011-10-29 12:44:02 UTC (rev 12720)
+++ trunk/docs/en/mapfile/symbol.txt	2011-10-29 20:00:25 UTC (rev 12721)
@@ -31,6 +31,32 @@
 
 
 .. index::
+    pair: ANCHORPOINT; SYMBOL
+    
+ANCHORPOINT [x] [y]
+    Used to specify the location (within the symbol) that is to be
+    used as an anchorpoint when rotating the symbol and placing the
+    symbol on a map.  Default is **0.5 0.5** (corresponding to the
+    center of the symbol).
+
+      `x`: A double in the range [0,1] that specifies the location
+      within the symbol along the x axis.  0 specifies the left edge
+      of the symbol, 1 specifies the right edge of the symbol.  0.5
+      specifies the center of the symbol (in the x direction).
+
+      `y`: A double in the range [0,1] that specifies the location
+      within the symbol along the y axis.  0 specifies the top edge of
+      the symbol, 1 specifies the lower edge of the symbol.  0.5
+      specifies the center of the symbol (in the y direction).
+
+    `ANCHORPOINT` can be used with `SYMBOL`\s of `TYPE` `ellipse`,
+    `pixmap`, `truetype` and `vector`.  To ensure proper behaviour for
+    vector symbols, the left and top edges of the bounding box of the
+    symbol should be at 0.
+
+    .. versionadded:: 6.2
+
+.. index::
     pair: ANTIALIAS; SYMBOL
     
 ANTIALIAS [true|false]



More information about the mapserver-commits mailing list