[Mapserver-users] Zoom In to a defined area
Palle Due Larsen
palle at mail-online.dk
Mon Sep 1 13:58:05 PDT 2003
You should name your <select> imgbox, not viewarea. Also separate your
your coordinates by +, not ,.
Best regards
Palle Due Larsen
Carl Bro GIS&IT
-----Original Message-----
From: "Jeff L." <nf10 at hotmail.com>
To: mapserver-users at lists.gis.umn.edu
Date: Mon, 01 Sep 2003 20:30:31 +0000
Subject: [Mapserver-users] Zoom In to a defined area
> Hi,
>
> By knowing the map coordinates of a specific area (xMin, yMin, xMax
> and
> yMax), i would like to zoom in to such area. I have a combo box with
> defined
> areas to zoom in, im using CGI and JavaScript to change map extents,
> but no
> success so far. My question would be how to pass the map extents and
> may be
> the center of the image is also required to change? Here is my code
> snippet:
> ....
>
> <SCRIPT LANGUAGE="JavaScript"><!--
>
> function AreaSelected()
> {
> if (document.forms[0].ViewArea.selectedIndex != 0 &&
> document.forms[0].ViewArea.selectedIndex !=1)
> document.forms[0].submit();
> }
>
> //--></SCRIPT>
>
> <form method=GET action="[program]" name=myform>
>
> ....
>
> <SELECT NAME="ViewArea" onChange="AreaSelected()">
> <OPTION>Go to</OPTION>
> <OPTION>- - - - - - - - - - - - - </OPTION>
> <OPTION VALUE="-180,45,180,90">Area 1</OPTION>
> <OPTION VALUE="-180,0,180,45">Area 2</OPTION>
> </SELECT >
>
> ....
>
> <input type="hidden" name="imgxy" value="299.5 299.5">
> <input type="hidden" name="imgext" value="[mapext]">
> ....
> </form>
>
>
> Any help is appreciated
>
> Jeff Lacoste
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
Få en gratis emailkonto her: www.mail-online.dk
-----------------------------------------------
Deltag i en lille konkurrence på nettet, og
vind et gavekort på 50.000 kroner...
KLIK HER: www.directoffice.dk/konkurrence
More information about the MapServer-users
mailing list