[mapserver-commits] r13299 - trunk/docs/en/output

svn at osgeo.org svn at osgeo.org
Fri Mar 23 14:12:05 EDT 2012


Author: jmckenna
Date: 2012-03-23 11:12:05 -0700 (Fri, 23 Mar 2012)
New Revision: 13299

Modified:
   trunk/docs/en/output/html_legend.txt
Log:
revive very old html legend demo http://demo.mapserver.org/itasca_legend/

Modified: trunk/docs/en/output/html_legend.txt
===================================================================
--- trunk/docs/en/output/html_legend.txt	2012-03-23 11:32:08 UTC (rev 13298)
+++ trunk/docs/en/output/html_legend.txt	2012-03-23 18:12:05 UTC (rev 13299)
@@ -4,14 +4,12 @@
  HTML Legends with MapServer
 *****************************************************************************
 
-:Author:       Jeff McKenna
-:Contact:      jmckenna at gatewaygeomatics.com
-:Revision: $Revision$
-:Date: $Date$
-:Last Updated: 2006/01/09
+:Author: Jeff McKenna
+:Contact: jmckenna at gatewaygeomatics.com
+:Last Updated: 2012-03-23
 
-.. contents::
-    :depth: 2
+.. contents:: Table of Contents
+    :depth: 3
     :backlinks: top
 
 
@@ -48,7 +46,7 @@
 
 *Example 1. Sample Legend Object with the new TEMPLATE parameter*
 
-::
+.. code-block:: mapfile
 
   ...
   # LEGEND object
@@ -84,7 +82,7 @@
 
 *Example 2. [legend] tag in the main HTML template (with TEMPLATE set)*
 
-::
+.. code-block:: html
 
    ...
    <FONT SIZE=+1><B>Legend</B></FONT><BR><HR>[legend]<HR>
@@ -93,7 +91,7 @@
 
 *Example 3. [legend] tag in the main HTML template (with TEMPLATE not set)*
 
-::
+.. code-block:: html
 
    ...
    <FONT SIZE=+1><B>Legend</B></FONT><BR><HR><IMG SRC="[legend]"><HR>
@@ -105,7 +103,7 @@
 The HTML legend template file is a separate file that contains 0 or 1 of each of the 
 following tags that define blocks of HTML to use in building the legend:
 
-::
+.. code-block:: xml
 
     [leg_group_html] ... [/leg_group_html]
     [leg_layer_html <OPTIONAL PARAMS>] ... [/leg_layer_html]
@@ -120,7 +118,7 @@
 
 *Example 4. An HTML legend TEMPLATE file*
 
-::
+.. code-block:: xml
 
    [leg_group_html]
    <tr>
@@ -170,7 +168,7 @@
 
 *Example 5. HTML Legend File Using Header/Footer Blocks*
 
-::
+.. code-block:: xml
 
     [leg_header_html]
       <p><b>my header</b></p>
@@ -321,7 +319,7 @@
 e.g. the layer block below simply displays an icon of the layer's class and 
 the layer name:
 
-::
+.. code-block:: xml
    
    [leg_layer_html]
       <tr><td><img src=[leg_icon width=15 height=15]><b>[leg_layer_name]</b></td></tr>
@@ -393,7 +391,7 @@
 e.g. the class block below simply displays an icon of the layer's class 
 and the class name:
 
-::
+.. code-block:: xml
 
     [leg_class_html]
       <tr><td><img src=[leg_icon width=15 height=15]><b>[leg_class_name]</b></td></tr>
@@ -406,7 +404,7 @@
 [if] tags can be used in any of the [leg_*_html] tags above to place conditional 
 text. The syntax is:
 
-::
+.. code-block:: xml
 
    [if name=<field_to_check> oper=<eq|neq|isset|isnull> value=<to_compare_with_field>] ... [/if]                  
                     
@@ -419,7 +417,7 @@
 
 *Example 6. [if] tag can be used to maintain the state of a layer checkbox*
 
-::
+.. code-block:: xml
 
    [leg_layer_html order_metadata=legend_order opt_flag=5]
    <tr>
@@ -543,14 +541,14 @@
 Sample Site Using the HTML Legend
 =================================
 
-http://www2.dmsolutions.ca/msapps/itasca_legend/demo_init.html
+http://demo.mapserver.org/itasca_legend/
 
 This demo is based on the MapServer Itasca demo and contains several variations
 of HTML Legends, some of which are listed below:
 
 - "HTML Legend 1" - displays classes only, similar to the traditional legends:
 
-  ::
+  .. code-block:: xml
   
        [leg_class_html opt_flag=15]
           <img src=[leg_icon]> [leg_class_name]<br>
@@ -558,7 +556,7 @@
                         
 - "HTML Legend 2" - displays layer titles with HREF links and classes:
 
-  ::
+  .. code-block:: xml
   
        [leg_layer_html order_metadata=WMS_ORDER visibility_flag=15]
           <a href="[leg_layer_name]">[metadata name=WMS_TITLE]</a><BR>
@@ -571,7 +569,7 @@
 
 - "HTML Legend 3" - displays layers by group, with checkboxes to turn layers on/off:
 
-  ::
+  .. code-block:: xml
   
        [leg_group_html]
           <tr><td colspan=2><b>[leg_group_name]</b></td></tr>



More information about the mapserver-commits mailing list