AW: [mapserver-users] Mapplet - Force Zoomdir with image buttons

Nicole Bömeke bon at ivv-aachen.de
Mon Jun 3 00:23:49 PDT 2002


Try to set the following parameters and submit the application:

<form>
  <input type="hidden" name="program"           value="[program]">
  <input type="hidden" name="map"               value="[map]">
  <input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
  <input type="hidden" name="map_web_imageurl"  value="[map_web_imageurl]">
  <input type="hidden" name="imgext"            value="[mapext]">
  <input type="hidden" name="imgsize"           value="800 500"> <!--
x=img.width y=img.height -->
  <input type="hidden" name="mapsize"           value="800 500"> <!--
x=img.width y=img.height -->

  <input type="hidden" name="zoomdir"  value="1">
  <input type="hidden" name="zoomsize" value="2">
  <input type="hidden" name="imgxy"    value="399.5 249.5"> <!--
x=(img.width-1)/2 y=(img.height-1)/2 -->
  <input type="hidden" name="imgbox"   value="-1 -1 -1 -1">
  <input type=image src="/mapserv3.5_vrs_appl/images/zoomin.gif"  width="38"
height="38" border="0" alt="Zoom In">
</form>

Nicole

----------------------
Nicole Bömeke
IVV-Aachen
Germany



-----Ursprüngliche Nachricht-----
Von: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu]Im Auftrag von Marco
Catellani
Gesendet: Freitag, 31. Mai 2002 19:48
An: mapserver-users at lists.gis.umn.edu
Betreff: [mapserver-users] Mapplet - Force Zoomdir with image buttons


Hi all.

I'm using MapServer 3.6 with Mapplet Extension.

The question involves zoomdir value. Using classical interface with radio
button (coupled with the [zoomdir_-1|0|1_check] special character) the
application run correctly.

I'm trying to use image buttons instead of radio buttons to obtain the same
result. What I need is that clicking the image the zoomdir value change
correctly.

I'm using code like this:

function ZoominSub(){
  document.mapserv.zoomdir.value = "1";
}

<input type="hidden" name="zoomdir" value="">
<a href="#" onClick="zoomin();">
<img src="http://localhost/images/zoomin.gif" alt="Zoom in"></a>

but I don't get what I want; in fact when I click the image and then I click
over the map the result is a pan operation, not a zoomin one.

Do you have any suggestion or advise?

Thank you very much!

Marco





More information about the MapServer-users mailing list