Zoom and Pan not working..
shailesh gavavthe
sgavathe at YAHOO.CO.IN
Sun Jul 10 11:53:53 PDT 2005
Dear all,
I m a so far non-active member of Mapserver.
This discussion group is really helpfull. Thanx
everyone for posting their problems and solutions up
into a discussion Forum.
I have a small problem with my template file in a
browsing option.
I m using mapserv4.6.0 and it is on IIS.
My map Mode works fine, but when i tried to open Map
with browse option, i can see the map also, but my
zoom thingy does not work. Map is still a static map .
But when i see my image Path location directory, it
dumps images everytime, when i click on refresh.
i would deeply appreciate, if ne body could let me
know, wht is happening wrong within my Template or Map
File.
I m attaching here with .html file.
-------------------------------------------------------
<!-- MapServer version 4.0.1 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE -->
<html>
<head>
<title>MapServer 4.0 Tutorial</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link type="text/css" rel="stylesheet"
href="C:\Program Files\Apache
Group\Apache2\cgi-bin\tutorial\ms35.css" />
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h3 align="center">Example 3.1: Class-level Query
Templates</h3>
<!-- START OF MAPSERVER FORM -->
<form name="mapserv40" method="GET"
action="mapserv40.exe">
<table width="600" border="0" align="center">
<tr>
<td>
<table width="600" border="1">
<tr>
<td colspan="4">Select Layers:<br>
<!-- SPECIFY VECTOR LAYERS -->
<input type="checkbox" name="layer"
value="sc_polygon" checked>
sc_polygon
<input type="checkbox" name="layer"
value="meander_arc" checked>
meander_arc
<input type="checkbox" name="layer"
value="sc2ndbnd_annotation_bear" checked>
sc2ndbnd_annotation_bear
<input type="checkbox" name="layer"
value="sc_annotation_dims" checked>
sc_annotation_dims
<input type="checkbox" name="layer"
value="encumb_polygon" checked>
encumb_polygon
<input type="checkbox" name="layer"
value="parcel_polygon" checked>
parcel_polygon<br>
<!-- SPECIFY RASTER LAYERS -->
Select Background:<br>
<select name="layer">
<option value=" " [ _select]>No Background</option>
#<option value="landsat" >Landsat 7 ETM+</option>
#<option value="modis" >MODIS Surface
Reflectance</option>
#<option value="relief" >Shaded Relief</option>
</select>
</td>
</tr>
<tr>
<td>
<!-- SPECIFY MAP MODE -->
<div align="center">Map Mode:<br>
<select name="mode">
<option value="browse" [browse_select]>Browse
</option>
<option value="query" [query_select]>Query Single
Layer</option>
<option value="nquery" [nquery_select]>Query
Multiple Layers</option>
</select>
</div>
</td>
<td>
<!-- FORM SUBMIT BUTTON -->
<div align="center">
<input type="submit" name="submit" value="Refresh">
</div>
</td>
<td>
<!-- ZOOM/PAN CONTROLS -->
<div align="center">Map Control: <br>
<select name="zoom">
<option value="4" selected>Zoom In 4x</option>
<option value="3" >Zoom In 3x</option>
<option value="2" >Zoom In 2x</option>
<option value="1" >Recenter</option>
<option value="-2" >Zoom Out 2x</option>
<option value="-3" >Zoom Out 3x</option>
<option value="-4" >Zoom Out 4x</option>
</select>
</div>
</td>
<!-- REFERENCE AND LEGEND COLUMN -->
<td rowspan="2" valign="top">
<p>Reference:<br>
<img name="ref" src="C:\Program Files\Apache
Group\Apache2\cgi-bin\tutorial\ParcelConversion\data\SHAPEFILE1120966188856.jpeg"></p>
<p>Legend:<br>
<img src="C:\ParcelConversion\data\"> </p>
</td>
</tr>
<tr>
<!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE -->
<td colspan="3" align="center" valign="top">
<input type="image"
name="SHAPEFILE11209643852828"
src="[img]" width="600" height="600" border="2"
alt="This is the map">
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- HIDDEN MAPSERVER CGI VARIABLES -->
<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext"
value="630753.497076 402326.032167 639898.900001
411272.813558">
<input type="hidden" name="map" value="C:\Program
Files\Apache
Group\Apache2\cgi-bin\tutorial\ParcelConversion\TEST\FinalTest.map">
</form>
<p class="Small" align="center"> <a
href="XMlMinnosota_dnr_mapserver_example.html">View
the MapFile</a> | <a href="postinfo.html">View
the HTML Template</a></p>
<hr>
<p class="Small" align="center">
<a href="/projects/tutorial/section2.html">Back to
Section 2</a> |
<a href="/projects/tutorial/sections.html">Back to
the Sections Page</a> |
<a href="/cgi-bin/mapserv40.exe?map=C:\Program
Files\Apache
Group\Apache2\cgi-bin\tutorial\example3-2.map&layer=states&mode=browse">
Proceed to Example 3.2</a></p>
</body>
</html>
----------------------------------------------------------------------------
thanking you,
sincerely,
Shailesh gavathe
URL : http://people.emich.edu/sgavathe
<HTML><BODY bgcolor="#FFFFFF">
<p><a Target="_top" href="http://www.flamingtext.com/hmail.html" ><img src="http://hmail.flamingtext.com/hmail/2004/10/26/flamingtext_com_1098812046_9351.gif" border=0 alt="Image by FlamingText.com"></a>
<br>Image by <a href="http://www.flamingtext.com/hmail2.html" >FlamingText.com</a>
</BODY></HTML>
____________________________________________________
Sell on Yahoo! Auctions no fees. Bid on great items.
http://auctions.yahoo.com/
More information about the MapServer-users
mailing list