[Mapserver-users] zoom using ROSA

Debbie Pagurek pagurekd at agr.gc.ca
Wed Apr 23 10:23:43 EDT 2003


you might want to post more of your code here so we can have a look.  Your Rosa applet needs to be within an HTML form, and the applet needs the name of this form in the INP_FORM_NAME parameter.  Your zoomin button must be named in the TB_BUTTONS parameter.

the following is an extract from a mapserver CGI application I use.
Hope it helps.
D. Pagurek


<form method=GET action="/cgi-bin/mapserv" name="mapserver">

 <applet name="RosaApplet" archive="/mapdata/rosa/class/rosa.jar"
    code="Rosa2000" width="[mapwidth]" height="[mapheight]" MAYSCRIPT>

       <param name="IMG_URL" value="[img]">
       <param name="INP_FORM_NAME" value="mapserver">

            <param name="BG_COLOR" value="#99CCFF">
            <param name="INP_TYPE_NAME" value="INPUT_TYPE">
            <param name="INP_COORD_NAME" value="INPUT_COORD">
            <param name="TB_ALIGN" value="top">
            <param name="TB_POSITION" value="left">
            <param name="TB_BUTTONS" value="zoomin|zoomout|recentre|pquery|redraw|fullextent|world">
            <param name="TB_SELECTED_BUTTON" value="zoomin">

            <!-- Zoom In -->
            <param name="TB_BUT_zoomin_IMG" value="/mapdata/rosa/userdoc/images/icon_zoomin_1.gif">
            <param name="TB_BUT_zoomin_IMG_PR" value="/mapdata/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">

...
etc
 </applet>

>>> "Hurtubise, Yvette" <Hurtubise at chilliwack.com> 04/22/03 06:29PM >>>
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