[mapserver-users] zoom extent

john tse john.fl.tse at gmail.com
Fri Apr 11 16:03:25 EDT 2008


Hi,Guys

 I'm currently doing a volunteer project and i need to get a zoom to button
to work.
This is the code i have right now

<html>
<body>
<head>
<script type = "text/javascript">
// zoom to Region

    function GoRegion()  {

//    alert(document.mapserv.mapzoomarea.value);

      document.mapserv.target="";

      document.mapserv.mode.value="browse";

      document.mapserv.imgext.value = (document.mapserv.mapzoomarea.value);

      document.mapserv.submit();
</script>
</head>


<select name="mapzoomarea" onChange="GoRegion();">

    <option>Zoom to Region</option>

    <option>------------------------</option>

    <option value="5457203 487104 5451873 482304">Reserve 2</option>

    <option value="5435308 491431 5434498 490403">Reserve 4</option>

    <option value="5425919 541,907 5502970 444168">Musqueam Statement Of
Intent</option>

    <option value="5435189 475830 5457751 504449">Richmond Boundary</option>

    <option value="5448859 481843 5463269 500122">Vancouver Boundary
</option>

    <option value="5432692 482228 5457268 515426">North Arm Fraser River
</option>

    </select>



</body>
</html>

it doesn't do anything, and i have no idea what's wrong with it, any help
will be much appreciated.

thanx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/b9fc05dd/attachment.html


More information about the mapserver-users mailing list