[mapserver-commits] r8760 - trunk/docs/tutorial

svn at osgeo.org svn at osgeo.org
Tue Mar 10 09:39:48 EDT 2009


Author: jmckenna
Date: 2009-03-10 09:39:48 -0400 (Tue, 10 Mar 2009)
New Revision: 8760

Modified:
   trunk/docs/tutorial/section2.txt
Log:
add styling

Modified: trunk/docs/tutorial/section2.txt
===================================================================
--- trunk/docs/tutorial/section2.txt	2009-03-10 13:39:48 UTC (rev 8759)
+++ trunk/docs/tutorial/section2.txt	2009-03-10 13:39:48 UTC (rev 8760)
@@ -9,6 +9,9 @@
 of (or the information in) the map. To accomplish this interactivity, we use the 
 MapServer HTML templates.
 
+HTML Templates
+--------------
+
 A MapServer HTML template is essentially an HTML file with a few MapServer specific tags.
 These tags are the MapServer CGI variables and are enclosed in square brackets "[]". 
 When the MapServer CGI program processes an application, it first parses the query string 
@@ -20,6 +23,9 @@
 on a web browser, there won't be any maps rendered and you will instead get blank 
 images and other junk.
 
+Variables
+#########
+
 MapServer provides several variables for web mapping: the "img" variable which you've 
 seen in Example 1.9 is but one example. There area few core CGI variables originally 
 designed as part of the mapping interface but practically all the mapfile parameters
@@ -32,19 +38,22 @@
 program processes our HTML template, it will replace every instance of he "[root]" tag 
 with "/tutorial". You will see this in action for each of the following examples.
 
+Examples
+--------
+
 So, let's build an interactive interface for our application...
 
 - Users of a web mapping application should be able to pan and zoom on the map:
-  `Example 2.1 - Pan and Zoom Controls <http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-1.html>`_  
+  `Example 2.1 - Pan and Zoom Controls <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-1.html>`_  
 
 - They also should be able to turn on and off layers on a map:
-  `Example 2.2 - Layer Control <http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-2.html>`_  
+  `Example 2.2 - Layer Control <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-2.html>`_  
 
 - A map should always include a scalebar.
-  `Example 2.3 - Adding a Scalebar <http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-3.html>`_  
+  `Example 2.3 - Adding a Scalebar <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-3.html>`_  
 
 - If users are to navigate through the map, a reference map should be provided:
-  `Example 2.4 - Adding a Reference Map <http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-4.html>`_  
+  `Example 2.4 - Adding a Reference Map <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-4.html>`_  
 
 - The map should include a legend.
-  `Example 2.5- Adding a Legend <http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-5.html>`_  
\ No newline at end of file
+  `Example 2.5- Adding a Legend <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-5.html>`_  
\ No newline at end of file



More information about the mapserver-commits mailing list