[mapserver-commits] r8935 - trunk/mapserver_demos/itasca/templates

svn at osgeo.org svn at osgeo.org
Wed Apr 22 00:22:50 EDT 2009


Author: sdlime
Date: 2009-04-22 00:22:50 -0400 (Wed, 22 Apr 2009)
New Revision: 8935

Added:
   trunk/mapserver_demos/itasca/templates/browse.html
Removed:
   trunk/mapserver_demos/itasca/templates/demo.html
Log:
Renamed demo.html to browse.html.

Added: trunk/mapserver_demos/itasca/templates/browse.html
===================================================================
--- trunk/mapserver_demos/itasca/templates/browse.html	                        (rev 0)
+++ trunk/mapserver_demos/itasca/templates/browse.html	2009-04-22 04:22:50 UTC (rev 8935)
@@ -0,0 +1,133 @@
+<!-- MapServer Template -->
+<html>
+<head>
+  <title>MapServer Demo Interface</title>
+
+<script language="javascript">
+  var pansize = 0.80;
+
+  function pan(direction) {    
+    if(direction == 'n') {
+      x = ([mapwidth]-1)/2.0;
+      y = 0 - ([mapheight] * pansize)/2.0;
+    } else if(direction == 'nw') {
+      x = 0 - ([mapwidth] * pansize)/2.0;
+      y = 0 - ([mapheight] * pansize)/2.0;
+    } else if(direction == 'ne') {
+      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
+      y = 0 - ([mapheight] * pansize)/2.0;
+    } else if(direction == 's') {
+      x = ([mapwidth]-1)/2.0;
+      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
+    } else if(direction == 'sw') {
+      x = 0 - ([mapwidth] * pansize)/2.0;
+      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
+    } else if(direction == 'se') {
+      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
+      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
+    } else if(direction == 'e') {
+      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
+      y = ([mapheight]-1)/2.0;
+    } else if(direction == 'w') {
+      x = 0 - ([mapwidth] * pansize)/2.0;
+      y = ([mapheight]-1)/2.0;
+    }
+
+    document.mapserv.zoomdir[1].checked = true; // force pan
+    document.mapserv.imgxy.value = x + " " + y;
+    document.mapserv.submit();
+  }
+</script>
+
+</head>
+<body bgcolor=#FFFFFF>
+
+<center><h1>MapServer Demo Interface</h1></center>
+<hr>
+<form method=GET action="[program]" name="mapserv">
+
+<center>
+<table border=0 cellspacing=0 cellpadding=4>
+<tr>
+<td valign="top" align=center>
+  <TABLE width="390" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#666666">
+    <TR>
+      <TD align="right" width="18"><A href="javascript:pan('nw')"><IMG src="[root]/graphics/nw.gif" width="18" height="18" border="0" alt="pan northwest"></A></TD>
+      <TD align="center"><A href="javascript:pan('n')"><IMG src="[root]/graphics/n.gif" width="23" height="18" border="0" alt="pan north"></A></TD>
+      <TD align="left" width="18"><A href="javascript:pan('ne')"><IMG src="[root]/graphics/ne.gif" width="18" height="18" border="0" alt="pan northeast"></A></TD>
+    </TR>
+    <TR>
+      <TD align="right" width="18"><A href="javascript:pan('w')"><IMG src="[root]/graphics/w.gif" width="18" height="23" border="0" alt="pan west"></A></TD>
+      <TD align="center"><INPUT type="image" name="img" src="[img]" width="[mapwidth]" height="[mapheight]" border="0" alt="this is the map"></TD>
+      <TD align="left" width="18"><A href="javascript:pan('e')"><IMG src="[root]/graphics/e.gif" width="18" height="23" border="0" alt="pan east"></A></TD>
+    </TR>
+    <TR>
+      <TD align="right" width="18"><A href="javascript:pan('sw')"><IMG src="[root]/graphics/sw.gif" width="18" height="18" border="0" alt="pan southwest"></A></TD>
+      <TD align="center"><A href="javascript:pan('s')"><IMG src="[root]/graphics/s.gif" width="23" height="18" border="0" alt="pan south"></A></TD>
+      <TD align="left" width="18"><A href="javascript:pan('se')"><IMG src="[root]/graphics/se.gif" width="18" height="18" border="0" alt="pan southeast"></A></TD>
+    </TR>
+    <TR><TD bgcolor="#666666" colspan="3">      
+      <IMG align="right" title="scalebar (km)" alt="scalebar (km)" src="[program]?map=[map]&mapext=[minx]+[miny]+[maxx]+[maxy]&map_scalebar_units=kilometers&mode=scalebar">
+      <IMG title="scalebar (mi)" alt="scalebar (mi)" src="[scalebar]">
+    </TD></TR>
+  </TABLE>  
+</td>
+<td valign="top" bgcolor=#ffffff>
+  <table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff">
+    <tr><td>
+      <center><input type="submit" value="Refresh/Query"></center>
+      <p>
+
+      <input type="radio" name="mode" value="browse" checked> <b>Browse map</b><br>
+      <input type="radio" name="mode" value="query"> <b>Query feature</b><br>
+      <input type="radio" name="mode" value="nquery"> <b>Query multiple features</b>
+
+      <hr>
+
+      <p>
+      <b>Select Layers to Display: </b><br>
+      <select multiple name="layer" size=3>
+        <option value="airports" [airports_select]> Airports
+        <option value="cities" [cities_select]> Cities
+        <option value="lakespy2" [lakespy2_select]> Lakes & Rivers
+        <option value="dlgstln2" [dlgstln2_select]> Streams
+        <option value="roads" [roads_select]> Roads
+        <option value="twprgpy3" [twprgpy3_select]> Townships
+        <option value="drgs" [drgs_select]> USGS 1:250,000 Quads
+      </select>
+
+      <p>
+      Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]> 
+      Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]>
+      Zoom Out <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]>
+      <p>
+      Zoom Size <input type=text name=zoomsize size=4 value=[zoomsize]>
+      <p>
+
+      <font size=+1><b>Legend</b></font><br><hr>
+      <img src="[legend]"><hr>
+
+      <p>
+      <center><INPUT NAME="ref" TYPE="image" SRC="[ref]" border="0"></center>
+    </td></tr></table>
+
+  </td></tr>
+</table>
+</center>
+
+<input type="hidden" name="imgxy" value="[center]">
+<input type="hidden" name="imgext" value="[mapext]">
+<input type="hidden" name="map" value="[map]">
+<input type="hidden" name="root" value="[root]">
+<input type="hidden" name="savequery" value="true">
+
+<input type="hidden" name="program" value="[program]">
+<input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
+<input type="hidden" name="map_web_imageurl" value="[map_web_imageurl]">
+
+</form>
+
+<p><hr><p>
+
+</body></html>
+

Deleted: trunk/mapserver_demos/itasca/templates/demo.html
===================================================================
--- trunk/mapserver_demos/itasca/templates/demo.html	2009-04-22 04:20:42 UTC (rev 8934)
+++ trunk/mapserver_demos/itasca/templates/demo.html	2009-04-22 04:22:50 UTC (rev 8935)
@@ -1,132 +0,0 @@
-<html>
-<head>
-  <title>MapServer Demo Interface</title>
-
-<script language="javascript">
-  var pansize = 0.80;
-
-  function pan(direction) {    
-    if(direction == 'n') {
-      x = ([mapwidth]-1)/2.0;
-      y = 0 - ([mapheight] * pansize)/2.0;
-    } else if(direction == 'nw') {
-      x = 0 - ([mapwidth] * pansize)/2.0;
-      y = 0 - ([mapheight] * pansize)/2.0;
-    } else if(direction == 'ne') {
-      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
-      y = 0 - ([mapheight] * pansize)/2.0;
-    } else if(direction == 's') {
-      x = ([mapwidth]-1)/2.0;
-      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
-    } else if(direction == 'sw') {
-      x = 0 - ([mapwidth] * pansize)/2.0;
-      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
-    } else if(direction == 'se') {
-      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
-      y = ([mapheight]-1) + ([mapheight] * pansize)/2.0;
-    } else if(direction == 'e') {
-      x = ([mapwidth]-1) + ([mapwidth] * pansize)/2.0;
-      y = ([mapheight]-1)/2.0;
-    } else if(direction == 'w') {
-      x = 0 - ([mapwidth] * pansize)/2.0;
-      y = ([mapheight]-1)/2.0;
-    }
-
-    document.mapserv.zoomdir[1].checked = true; // force pan
-    document.mapserv.imgxy.value = x + " " + y;
-    document.mapserv.submit();
-  }
-</script>
-
-</head>
-<body bgcolor=#FFFFFF>
-
-<center><h1>MapServer Demo Interface</h1></center>
-<hr>
-<form method=GET action="[program]" name="mapserv">
-
-<center>
-<table border=0 cellspacing=0 cellpadding=4>
-<tr>
-<td valign="top" align=center>
-  <TABLE width="390" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#666666">
-    <TR>
-      <TD align="right" width="18"><A href="javascript:pan('nw')"><IMG src="[root]/graphics/nw.gif" width="18" height="18" border="0" alt="pan northwest"></A></TD>
-      <TD align="center"><A href="javascript:pan('n')"><IMG src="[root]/graphics/n.gif" width="23" height="18" border="0" alt="pan north"></A></TD>
-      <TD align="left" width="18"><A href="javascript:pan('ne')"><IMG src="[root]/graphics/ne.gif" width="18" height="18" border="0" alt="pan northeast"></A></TD>
-    </TR>
-    <TR>
-      <TD align="right" width="18"><A href="javascript:pan('w')"><IMG src="[root]/graphics/w.gif" width="18" height="23" border="0" alt="pan west"></A></TD>
-      <TD align="center"><INPUT type="image" name="img" src="[img]" width="[mapwidth]" height="[mapheight]" border="0" alt="this is the map"></TD>
-      <TD align="left" width="18"><A href="javascript:pan('e')"><IMG src="[root]/graphics/e.gif" width="18" height="23" border="0" alt="pan east"></A></TD>
-    </TR>
-    <TR>
-      <TD align="right" width="18"><A href="javascript:pan('sw')"><IMG src="[root]/graphics/sw.gif" width="18" height="18" border="0" alt="pan southwest"></A></TD>
-      <TD align="center"><A href="javascript:pan('s')"><IMG src="[root]/graphics/s.gif" width="23" height="18" border="0" alt="pan south"></A></TD>
-      <TD align="left" width="18"><A href="javascript:pan('se')"><IMG src="[root]/graphics/se.gif" width="18" height="18" border="0" alt="pan southeast"></A></TD>
-    </TR>
-    <TR><TD bgcolor="#666666" colspan="3">      
-      <IMG align="right" title="scalebar (km)" alt="scalebar (km)" src="[program]?map=[map]&mapext=[minx]+[miny]+[maxx]+[maxy]&map_scalebar_units=kilometers&mode=scalebar">
-      <IMG title="scalebar (mi)" alt="scalebar (mi)" src="[scalebar]">
-    </TD></TR>
-  </TABLE>  
-</td>
-<td valign="top" bgcolor=#ffffff>
-  <table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff">
-    <tr><td>
-      <center><input type="submit" value="Refresh/Query"></center>
-      <p>
-
-      <input type="radio" name="mode" value="browse" checked> <b>Browse map</b><br>
-      <input type="radio" name="mode" value="query"> <b>Query feature</b><br>
-      <input type="radio" name="mode" value="nquery"> <b>Query multiple features</b>
-
-      <hr>
-
-      <p>
-      <b>Select Layers to Display: </b><br>
-      <select multiple name="layer" size=3>
-        <option value="airports" [airports_select]> Airports
-        <option value="cities" [cities_select]> Cities
-        <option value="lakespy2" [lakespy2_select]> Lakes & Rivers
-        <option value="dlgstln2" [dlgstln2_select]> Streams
-        <option value="roads" [roads_select]> Roads
-        <option value="twprgpy3" [twprgpy3_select]> Townships
-        <option value="drgs" [drgs_select]> USGS 1:250,000 Quads
-      </select>
-
-      <p>
-      Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]> 
-      Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]>
-      Zoom Out <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]>
-      <p>
-      Zoom Size <input type=text name=zoomsize size=4 value=[zoomsize]>
-      <p>
-
-      <font size=+1><b>Legend</b></font><br><hr>
-      <img src="[legend]"><hr>
-
-      <p>
-      <center><INPUT NAME="ref" TYPE="image" SRC="[ref]" border="0"></center>
-    </td></tr></table>
-
-  </td></tr>
-</table>
-</center>
-
-<input type="hidden" name="imgxy" value="[center]">
-<input type="hidden" name="imgext" value="[mapext]">
-<input type="hidden" name="map" value="[map]">
-<input type="hidden" name="root" value="[root]">
-<input type="hidden" name="savequery" value="true">
-
-<input type="hidden" name="program" value="[program]">
-<input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
-<input type="hidden" name="map_web_imageurl" value="[map_web_imageurl]">
-
-</form>
-
-<p><hr><p>
-
-</body></html>
-



More information about the mapserver-commits mailing list