[Mapserver-users] Re:zoom using ROSA
Debbie Pagurek
pagurekd at agr.gc.ca
Wed Apr 23 08:48:02 PDT 2003
You have
<PARAM name="INP_FORM_NAME" value="mapserver">
but you haven't named your form:
<form method=GET action="[program]">
it should be:
<form method=GET action="[program]" name="mapserver">
Try that.
D. Pagurek
>>> "Hurtubise, Yvette" <Hurtubise at chilliwack.com> 04/23/03 11:43AM >>>
Thanks for those who have responded, here is more of my code for those who have asked...
Thanks, Yvette
<hr>
<form method=GET action="[program]">
<center>
<table border=0 cellspacing=0 cellpadding=4 bgcolor="#000000">
<tr>
<td valign="top" align=center>
<TABLE border=0 cellspacing=0 cellpadding=1 bgcolor="#000000">
<TR>
<TD valign="top" align=center>
<!-- internal table for map -->
<table cellpadding="0" cellspacing="0" border="0">
<TR>
<!-- Field for applet, stretches itself over 2 columns,
since in a further line for "power OD."
and the yardstick bars a field is intended in each case. -->
<TD colspan="2" valign="top">
<!-- ROSA applet specific tags -->
<INPUT type="hidden" name="imagewidth" value="[mapwidth]">
<INPUT type="hidden" name="imageheight" value="[mapheight]">
<!-- Initialization of the parameters which can be set from the applet to -->
<INPUT type="hidden" name="INPUT_TYPE" value="">
<INPUT type="hidden" name="INPUT_COORD" value="">
<!-- Applet and parameter-->
<APPLET name="RosaApplet" archive="/chilliwack/rosa/rosa.jar"
code="Rosa2000"
width="[mapwidth]" height="[mapheight]" mayscript>
<!-- Generally-->
<PARAM name="IMG_URL" value="[img]">
<PARAM name="IMG_XY" value="0,0">
<PARAM name="INP_FORM_NAME" value="mapserver">
<PARAM name="BG_COLOR" value="#F8F8F8">
<!-- Rosa modes -->
<PARAM name="INP_TYPE_NAME" value="INPUT_TYPE">
<PARAM name="INP_COORD_NAME" value="INPUT_COORD">
<!-- ToolBar generally -->
<PARAM name="TB_POSITION" value="top">
<PARAM name="TB_ALIGN" value="left">
<PARAM name="TB_BUTTONS" value="zoomin|zoomout|recentre">
<PARAM name="TB_SELECTED_BUTTON" value="zoomin">
<!-- ToolBar Buttons -->
<!-- Zoom In -->
<PARAM name="TB_BUT_zoomin_IMG" value="/chilliwack/rosa/userdoc/images/icon_zoomin_1.gif">
<PARAM name="TB_BUT_zoomin_IMG_PR" value="/chilliwack/rosa/userdoc/images/icon_zoomin_2.gif">
<PARAM name="TB_BUT_zoomin_CURSOR_TYPE" value="CROSSHAIR">
<PARAM name="TB_BUT_zoomin_INPUT" value="auto_rect">
<PARAM name="TB_BUT_zoomin_NAME" value="zoomdir">
<PARAM name="TB_BUT_zoomin_VALUE" value="1">
<PARAM name="TB_BUT_zoomin_HINT" value="Zoom In">
<!-- Zoom Out -->
<PARAM name="TB_BUT_zoomout_IMG" value="/chilliwack/rosa/userdoc/images/icon_zoomout_1.gif">
<PARAM name="TB_BUT_zoomout_IMG_PR" value="/chilliwack/rosa/userdoc/images/icon_zoomout_2.gif">
<PARAM name="TB_BUT_zoomout_CURSOR_TYPE" value="CROSSHAIR">
<PARAM name="TB_BUT_zoomout_INPUT" value="auto_point">
<PARAM name="TB_BUT_zoomout_NAME" value="zoomdir">
<PARAM name="TB_BUT_zoomout_VALUE" value="-1">
<PARAM name="TB_BUT_zoomout_HINT" value="Zoom Out">
<!-- Recenter -->
<PARAM name="TB_BUT_recentre_IMG" value="/chilliwack/rosa/userdoc/images/icon_recentre_1.gif">
<PARAM name="TB_BUT_recentre_IMG_PR" value="/chilliwack/rosa/userdoc/images/icon_recentre_2.gif">
<PARAM name="TB_BUT_recentre_CURSOR_TYPE" value="MOVE">
<PARAM name="TB_BUT_recentre_INPUT" value="auto_point">
<PARAM name="TB_BUT_recentre_NAME" value="zoomdir">
<PARAM name="TB_BUT_recentre_VALUE" value="0">
<PARAM name="TB_BUT_recentre_HINT" value="Pan">
</APPLET>
<!-- End of the applet -->
</TD>
</TR>
<!-- New line ("power OD."and yardstick bars-->
<TR>
<TD align="left">
<!-- Distance from the edge of table force -->
<FONT face="arial, helvetica, sans-serif" size="-2" color="#FFFFFF">
<B>Powered by MapServer</B>
</FONT>
</TD>
<TD align="right">
<IMG src="[scalebar]">
</TD>
</TR>
</TABLE> <!-- End of the internal table-->
</TD>
</TR>
</TABLE> <!-- End of the table for the black framework -->
</TD>
<td>
<td valign="top" bgcolor=#FDF5E6>
<table cellpadding="5" cellspacing="0" border="0" bgcolor="#FDF5E6">
<tr><td>
<center><input type="submit" value="Refresh"></center>
<p>
<input type="radio" name="mode" value="browse" checked> <b>Browse map</b><br>
<hr>
<b>Select Layers to Display : </b><br>
<input type="checkbox" name="layer" value="parks" [parks_check]> Parks<br>
....
--- Original Message ---
I'm still new with MapServer, only started using it a couple weeks ago.
I have downloaded ROSA and worked code from the example into my html file
My problem is when I click on the zoom button, i can draw the rectange around the area that I would like to zoom into but nothing happens
Here is a little bit of my code...
<!-- Zoom In -->
<PARAM name="TB_BUT_zoomin_IMG" value="/chilliwack/rosa/userdoc/images/icon_zoomin_1.gif">
<PARAM name="TB_BUT_zoomin_IMG_PR" value="/chilliwack/rosa/userdoc/images/icon_zoomin_2.gif">
<PARAM name="TB_BUT_zoomin_CURSOR_TYPE" value="CROSSHAIR">
<PARAM name="TB_BUT_zoomin_INPUT" value="auto_rect">
<PARAM name="TB_BUT_zoomin_NAME" value="zoomdir">
<PARAM name="TB_BUT_zoomin_VALUE" value="1">
<PARAM name="TB_BUT_zoomin_HINT" value="Zoom In">
would anyone be able to tell me something that I might be missing or something I'm doing wrong
Thanks,
Yvette
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list