[mapserver-commits] r8932 - in trunk/mapserver_demos/itasca: .
templates
svn at osgeo.org
svn at osgeo.org
Wed Apr 22 00:11:04 EDT 2009
Author: sdlime
Date: 2009-04-22 00:11:04 -0400 (Wed, 22 Apr 2009)
New Revision: 8932
Added:
trunk/mapserver_demos/itasca/templates/demo.html
trunk/mapserver_demos/itasca/templates/demo_footer.html
trunk/mapserver_demos/itasca/templates/demo_header.html
Removed:
trunk/mapserver_demos/itasca/demo.html
trunk/mapserver_demos/itasca/demo_footer.html
trunk/mapserver_demos/itasca/demo_header.html
Log:
More reorganization...
Deleted: trunk/mapserver_demos/itasca/demo.html
===================================================================
--- trunk/mapserver_demos/itasca/demo.html 2009-04-22 03:50:34 UTC (rev 8931)
+++ trunk/mapserver_demos/itasca/demo.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -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>
-
Deleted: trunk/mapserver_demos/itasca/demo_footer.html
===================================================================
--- trunk/mapserver_demos/itasca/demo_footer.html 2009-04-22 03:50:34 UTC (rev 8931)
+++ trunk/mapserver_demos/itasca/demo_footer.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -1,23 +0,0 @@
-
- <font size=+1 face=arial,helvetica><b>Query Map Examples</b></font>
- <p>
-
- <table cellpadding="3" cellspacing="0" border="0">
- <tr><td><img border="2" src="[img]"></td>
- <td><img border="2" src="[program]?map=[map]&queryfile=[map_web_imagepath]DEMO[id].qy[get_layers]&mode=map&size=200+200"></td></tr>
- <tr><th align="center">standard querymap</th>
- <th align="center">cached query</th></tr>
- </table>
-
- <script language="javascript">
- var regex = /WMS_SERVER/;
- var layers = "[layers]";
- var bbox = "[imgext]";
-
- if(regex.test("[version]"))
- document.write("<p><a href=\"[program]?map=[map]&REQUEST=GetFeatureInfo&query_layers=" + layers.replace(/ /g, ',') + "&VERSION=1.1.0&x=[img.x]&y=[img.y]&INFO_FORMAT=gml&bbox=" + bbox.replace(/ /g, ',') + "\">download GML version</a></p>\n")
-
- </script>
-
- </body>
-</html>
Deleted: trunk/mapserver_demos/itasca/demo_header.html
===================================================================
--- trunk/mapserver_demos/itasca/demo_header.html 2009-04-22 03:50:34 UTC (rev 8931)
+++ trunk/mapserver_demos/itasca/demo_header.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -1,9 +0,0 @@
-<html>
-<head>
- <title>MapServer Demo Interface</title>
-</head>
-<body bgcolor=#FFFFFF>
-
-<b>SEARCH WINDOW</b>: [mapext]<br>
-<b>QUERY POINT</b>: ([img.x], [img.y]) image coordinates or ([mapx], [mapy]) map coordinates<br>
-<b>QUERY METRICS</b>: number of layers with results=[nl], total number of results=[nr]<br><br>
Added: trunk/mapserver_demos/itasca/templates/demo.html
===================================================================
--- trunk/mapserver_demos/itasca/templates/demo.html (rev 0)
+++ trunk/mapserver_demos/itasca/templates/demo.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -0,0 +1,132 @@
+<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>
+
Added: trunk/mapserver_demos/itasca/templates/demo_footer.html
===================================================================
--- trunk/mapserver_demos/itasca/templates/demo_footer.html (rev 0)
+++ trunk/mapserver_demos/itasca/templates/demo_footer.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -0,0 +1,23 @@
+
+ <font size=+1 face=arial,helvetica><b>Query Map Examples</b></font>
+ <p>
+
+ <table cellpadding="3" cellspacing="0" border="0">
+ <tr><td><img border="2" src="[img]"></td>
+ <td><img border="2" src="[program]?map=[map]&queryfile=[map_web_imagepath]DEMO[id].qy[get_layers]&mode=map&size=200+200"></td></tr>
+ <tr><th align="center">standard querymap</th>
+ <th align="center">cached query</th></tr>
+ </table>
+
+ <script language="javascript">
+ var regex = /WMS_SERVER/;
+ var layers = "[layers]";
+ var bbox = "[imgext]";
+
+ if(regex.test("[version]"))
+ document.write("<p><a href=\"[program]?map=[map]&REQUEST=GetFeatureInfo&query_layers=" + layers.replace(/ /g, ',') + "&VERSION=1.1.0&x=[img.x]&y=[img.y]&INFO_FORMAT=gml&bbox=" + bbox.replace(/ /g, ',') + "\">download GML version</a></p>\n")
+
+ </script>
+
+ </body>
+</html>
Added: trunk/mapserver_demos/itasca/templates/demo_header.html
===================================================================
--- trunk/mapserver_demos/itasca/templates/demo_header.html (rev 0)
+++ trunk/mapserver_demos/itasca/templates/demo_header.html 2009-04-22 04:11:04 UTC (rev 8932)
@@ -0,0 +1,9 @@
+<html>
+<head>
+ <title>MapServer Demo Interface</title>
+</head>
+<body bgcolor=#FFFFFF>
+
+<b>SEARCH WINDOW</b>: [mapext]<br>
+<b>QUERY POINT</b>: ([img.x], [img.y]) image coordinates or ([mapx], [mapy]) map coordinates<br>
+<b>QUERY METRICS</b>: number of layers with results=[nl], total number of results=[nr]<br><br>
More information about the mapserver-commits
mailing list