[mapserver-commits] r13130 - trunk/docs/en/cgi

svn at osgeo.org svn at osgeo.org
Thu Feb 9 04:43:14 EST 2012


Author: havatv
Date: 2012-02-09 01:43:14 -0800 (Thu, 09 Feb 2012)
New Revision: 13130

Modified:
   trunk/docs/en/cgi/openlayers.txt
Log:
Did some formatting - lines longer than 80, overfull PDF lines (#3947) and some other minor edits - openlayers.

Modified: trunk/docs/en/cgi/openlayers.txt
===================================================================
--- trunk/docs/en/cgi/openlayers.txt	2012-02-09 01:49:06 UTC (rev 13129)
+++ trunk/docs/en/cgi/openlayers.txt	2012-02-09 09:43:14 UTC (rev 13130)
@@ -7,13 +7,15 @@
  MapServer OpenLayers Viewer
 *****************************************************************************
 
-MapServer provides a simple, built-in method for testing a mapfile using OpenLayers.
-This feature is for testing/development purposes only, and not for production or deploying
-full-featured sites.  You can preview, test, and navigate a mapfile by accessing a special
-url which will return a built-in OpenLayers template.
+MapServer provides a simple, built-in method for testing a mapfile
+using OpenLayers.  This feature is for testing/development purposes
+only, and not for production or deploying full-featured sites.  You
+can preview, test, and navigate a mapfile by accessing a special url
+which will return a built-in OpenLayers template.
 
-.. note: This feature was discussed in `rfc 63 <http://mapserver.org/development/rfc/ms-rfc-63.html>`_
-    and in this ticket http://trac.osgeo.org/mapserver/ticket/3549
+.. note:: This feature was discussed in
+    `rfc 63 <http://mapserver.org/development/rfc/ms-rfc-63.html>`_
+    and in the ticket http://trac.osgeo.org/mapserver/ticket/3549
 
 
 Using the OpenLayers viewer
@@ -23,24 +25,26 @@
 Opening the OpenLayers viewer in your browser
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Lets assume you are running mapserver  on your local machine, and you
-have the Itasca demo setup, a basic url would be::
+Assuming you are running mapserver on your local machine, and you have
+the Itasca demo setup, a basic url would be (split into two lines for
+readability)::
 
-    http://localhost/cgi-bin/mapserv?mode=browse&template=openlayers&layer=lakespy2&layer=dlgstln2&map=/var/www/workshop/itasca.map
+    http://localhost/cgi-bin/mapserv?mode=browse&template=openlayers
+         &layer=lakespy2&layer=dlgstln2&map=/var/www/workshop/itasca.map
 
 Here is a quick breakdown of that url:
 
 * Basic Parameters for activating the OpenLayers browser::
 
-    ?mode=browse
-    &template=openlayers
+    template=openlayers
+    mode=browse
 
 
 * Basic Map / Layer Parameters::
 
-    &map=/var/www/workshop/itasca.map
-    &layer=lakespy2
-    &layer=dlgstln2
+    map=/var/www/workshop/itasca.map
+    layer=lakespy2
+    layer=dlgstln2
 
 **That's it!**
 
@@ -54,35 +58,39 @@
 Opening the OpenLayers viewer in the form of a WMS request
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-This feature is useful when debugging WMS requests.  You can write one of these by hand,
-or copy the URL for a WMS tile.  Running the following should give you a simple OpenLayers
-demo around the BBOX::
+This feature is useful when debugging WMS requests.  You can write one
+of these by hand, or copy the URL for a WMS tile.  Running the
+following should give you a simple OpenLayers demo around the BBOX
+(split into several lines for readability)::
 
-    http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map&LAYERS=lakespy2&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers&BBOX=429956.19803725,5231780.0814818,444078.32296225,5245902.2064068&WIDTH=512&HEIGHT=512&SRS=EPSG:26915
+    http://localhost/cgi-bin/mapserv?map=/var/www/workshop/itasca.map
+         &LAYERS=lakespy2&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap
+         &FORMAT=application/openlayers&WIDTH=512&HEIGHT=512&SRS=EPSG:26915
+         &BBOX=429956.19803725,5231780.0814818,444078.32296225,5245902.2064068
 
 
 Here is a quick breakdown of the interesting parts of that URL:
 
 * Special Parameter for activating the OpenLayers viewer::
 
-    &FORMAT=application/openlayers
+    FORMAT=application/openlayers
 
 * Basic MapServer Parameters::
 
-    ?map=/var/www/workshop/itasca.map
+    map=/var/www/workshop/itasca.map
 
 * Basic WMS parameters::
 
-    #Our Bounding Box, Projection, and Layers
-    &BBOX=429956.19803725,5231780.0814818,444078.32296225,5245902.2064068
-    &SRS=EPSG:26915
-    &LAYERS=lakespy2
+    #Layers, our bounding box and projection
+    LAYERS=lakespy2
+    BBOX=429956.19803725,5231780.0814818,444078.32296225,5245902.2064068
+    SRS=EPSG:26915
 
     #Version and other WMS request params
-    &VERSION=1.1.1
-    &TRANSPARENT=true
-    &SERVICE=WMS
-    &REQUEST=GetMap
-    &WIDTH=512
-    &HEIGHT=512
+    SERVICE=WMS
+    VERSION=1.1.1
+    REQUEST=GetMap
+    WIDTH=512
+    HEIGHT=512
+    TRANSPARENT=true
 



More information about the mapserver-commits mailing list