[mapserver-commits] r10078 - branches/branch-5-6/docs/en/tutorial
svn at osgeo.org
svn at osgeo.org
Thu Apr 8 08:49:31 EDT 2010
Author: jmckenna
Date: 2010-04-08 08:49:31 -0400 (Thu, 08 Apr 2010)
New Revision: 10078
Removed:
branches/branch-5-6/docs/en/tutorial/example1-9.html
Modified:
branches/branch-5-6/docs/en/tutorial/example1-8.txt
branches/branch-5-6/docs/en/tutorial/section1.txt
Log:
add pointer to example 1-9 (ticket:3263)
Modified: branches/branch-5-6/docs/en/tutorial/example1-8.txt
===================================================================
--- branches/branch-5-6/docs/en/tutorial/example1-8.txt 2010-04-08 12:44:05 UTC (rev 10077)
+++ branches/branch-5-6/docs/en/tutorial/example1-8.txt 2010-04-08 12:49:31 UTC (rev 10078)
@@ -34,6 +34,6 @@
----
-:ref:`Back to Example 1.7 <example1-7>` | :ref:`Proceed to Example 1.9 <example1-9>`
+:ref:`Back to Example 1.7 <example1-7>` | `Proceed to Example 1.9 <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis>`_
----
\ No newline at end of file
Deleted: branches/branch-5-6/docs/en/tutorial/example1-9.html
===================================================================
--- branches/branch-5-6/docs/en/tutorial/example1-9.html 2010-04-08 12:44:05 UTC (rev 10077)
+++ branches/branch-5-6/docs/en/tutorial/example1-9.html 2010-04-08 12:49:31 UTC (rev 10078)
@@ -1,131 +0,0 @@
-<html>
- <head>
- <title>MapServer 5.x Tutorial</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <link type="text/css" rel="stylesheet" href="/tutorial/ms35.css" />
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <table align="center" width="680" border="0">
- <tr>
- <td>
- <h3 align="center">
- Example 1.9: Interactive Maps and the Browse Mode
- </h3>
- <div align="center">
- <img border="1" src="/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=states_label&layer=modis&mode=map" />
- </div>
- <p align="left">The map above was created in "map" mode. It is
- a static map (it doesn't change when you click on it).
- </p>
-
- <!-- START OF MAPSERVER FORM -->
- <form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe">
- <!-- HIDDEN MAPSERVER CGI VARIABLES -->
- <input type="hidden" name="map" value="[map]">
- <input type="hidden" name="imgext" value="[mapext]">
- <input type="hidden" name="imgxy" value="[center]">
- <input type="hidden" name="zoom" value="0">
- <input type="hidden" name="layer" value="modis">
- <input type="hidden" name="layer" value="states">
- <input type="hidden" name="mode" value="browse">
- <div align="center">
- <table border="1" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP -->
- <input type="image" name="img" src="[img]"
- width="400" height="300">
- </td>
- </tr>
- </table>
- </div>
- </form>
- <!-- END OF MAPSERVER FORM -->
-
- <p>This dynamic map is being generated in "browse" mode. Click
- on any point on the map and see what happens.
- </p>
- <p>Both of these maps use the same mapfile definitions. The difference
- is that the second map (the dynamically created one) relies on HTML
- form for interactivity. If you look at how this page is linked from
- the previous page, you'll see that it isn't the same as the previous
- examples. This page is what's called, in MapServer terms, an HTML
- template. You will learn more about HTML templates in section 2.
- </p>
- <hr>
- <p>have a look at the "form" block within this page (right
- click on your browser and select "view source" or something
- similar):
- </p>
- <pre>
- <!-- START OF MAPSERVER FORM -->
- <form name="mapserv" method="GET" action="/cgi-bin/mapserv.exe">
- <!-- HIDDEN MAPSERVER CGI VARIABLES -->
- <input type="hidden" name="map" value="[map]">
- <input type="hidden" name="imgext" value="[mapext]">
- <input type="hidden" name="imgxy" value="199.5 149.5">
- <input type="hidden" name="zoom" value="1">
- <input type="hidden" name="mode" value="browse">
-
- <div align="center">
- <table border="1" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <!-- THE INTERACTIVE, DYNAMICALLY CREATED MAP --
- <input type="image" name="img" src="[img]"
- width="400" height="300">
- </td>
- </tr>
- </table>
- </div>
- </form></pre>
- <p>This block executes the MapServer CGI program
- ("/cgi-bin/mapserv.exe") each time a user clicks on the map.
- The map is actually another form "input", represented here by
- the line:</p>
- <pre><input type="image" name="img" src="[img]" width="400" height="300"></pre>
- <p>The items in square brackets ([map], [mapext], and
- [img]) are what's known as MapServer tags--these are MapServer
- CGI variables and they get replaced by the MapServer CGI program when it
- reloads. The tag [map] is a placeholder for the mapfile path
- so it's replaced with "[map]" when MapServer runs. The tag
- [mapext] is replaced with the current map extent,
- "[mapext]", and the [img] tag is replaced with the
- path to the image the MapServer CGI program creates, "[img]". Go ahead check the IMAGEPATH (/ms4w/tmp/) for the existence of this image.</p>
-
- <p>The hidden variable "mode" with the value "browse"
- tells the CGI program that it needs to create and dump an image in the
- "tmp" directory. This image is then referenced as [img] and
- this is what you see on your browser.</p>
- <hr>
- <p align="left">Now, have a look at the mapfile:<br>
-
- <iframe width="100%" src="/tutorial/example1-9.map"></iframe></p>
-
- <hr>
- <p>There's really only one thing that's been added to the mapfile:</p>
- <p>TEMPLATE 'example1-9.html'<br>
- This tells MapServer to use the page "example1-9.html" as a
- template file. MapServer will process this file and replace the tags it
- encounters before sending it to the web browser. This is how the next
- two sections in this tutorial works.</p>
- <hr>
- <p>This marks the end of Section 1. I hope you leave this section with enough
- knowledge on how things are set in a MapServer MapFile. I can't stress
- enough the importance of keeping the <a href="http://mapserver.gis.umn.edu/doc/cgi-reference.html">MapServer
- MapFile Reference</a> open as you create your own mapfile and application.
- Without it, I wouldn't have gone very far with this tutorial.. For a hierarchical
- view of the mapfile objects and keywords, please have a look at the <a href="http://vega.unm.edu/mapserver_workshop/reference/mapfile-reference-table.html">reference
- page</a> from Earth Data Analysis Center (EDAC) at the University of New
- Mexico.</p>
- <hr>
- <p class="Small" align="center"><a href="/tutorial/example1-8.html">Back
- to Example 1.8</a> | <a href="/tutorial/section1.html">Back to
- Section 1</a> | <a href="/tutorial/sections.html">Back to the
- Sections Page</a> | <a href="/tutorial/section2.html">Proceed
- to Section 2</a></p>
- </td>
-</tr>
-</table>
-</body>
-</html>
Modified: branches/branch-5-6/docs/en/tutorial/section1.txt
===================================================================
--- branches/branch-5-6/docs/en/tutorial/section1.txt 2010-04-08 12:44:05 UTC (rev 10077)
+++ branches/branch-5-6/docs/en/tutorial/section1.txt 2010-04-08 12:49:31 UTC (rev 10078)
@@ -28,7 +28,7 @@
- :ref:`Example 1.8 - A different output format <example1-8>`
- MapServer not only generates static maps, it can also create interactive maps...
- - :ref:`Example 1.9 - The difference between map and browse mode <example1-9>`
+ - `Example 1.9 - The difference between map and browse mode <http://demo.mapserver.org/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis>`_
----
More information about the mapserver-commits
mailing list