Reload button

Stepan Kafka kafka at email.cz
Fri Aug 18 06:52:54 PDT 2000


You can use javascript code in the form (the simplest):

<input type=IMAGE src ="images/icon_redraw.gif" width="19" height="19"
name=redraw border=0 OnClick="javascript:mapserv.zoomdir.value=0">

But this change the focus from "ZoomIn" tool to "Pan" tool during reload.

Please, try also this code

<input type=IMAGE src ="images/icon_redraw.gif" width="19" height="19"
name=redraw border=0 OnClick="javascript:mapserv.mapext.value='[mapext]'">

(you must have defined mapext in the page)

This wouldn't change the tool during reload.

This also doesn't solve the query/browse changing mode. The better is put
javascript scripts in the head fo the document.

Stepan

> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele
> aborruso at spaziogis.it
> Odesláno: 3. srpna 2000 11:41
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: Reload button
>
>
> Dear user,
> I'm developing a web page with mapserver
> (http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=d%3A%5Clotu
> s%5Cdomino%5Cdata%5Cdomino%5Cspaziogisit%5Cmapserver%5Ccartsic%5Cm
> ap%5Cinsieme.map&imgext=13.305153+38.077841+13.407837+38.180401&im
> gxy=150+150&zoomsize=2&layer=Ristoranti_e_Trattorie&zoomdir
>
> -1&img.x=152&img.y=161)
> but I have a problem: if I put in this page a reload button (more exactly
> an Imagefield with this syntax <input type=IMAGE src
> ="images/icon_redraw.gif" width="19" height="19" name=redraw border=0>)
it
> makes good its work, but if it is checked zoom botton (in example) the
map
> is reloaded and also zoomed. I would like only to reload map to show (or
> not show) some layers. How can I do it?
> Thank you,
>
>
>
>
>
>
>
>
> ---------------------------------------------
> Andrea Borruso
>
>
>



More information about the MapServer-users mailing list