[mapserver-users] redrawing the map

john tse john.fl.tse at gmail.com
Fri Apr 18 17:14:55 EDT 2008


right now, i have a nearly functional code.
This code is for zooming to a predetermined area.
the problem is that the map doesn't get redrawn when i use this script.
I found this script in the archive, and would like to know is there a line i
have to add in order to get it to redraw or refresh the map.
More importantly if this script is actually correct, any help is much
appreciated.

John

<html>
<head>
<script language="javascript">
     function AreaSelected()  {
      alert(document.myform.ViewArea.value);
      document.myform.target="";
      document.myform.mode.value="browse";
      document.myform.imgext.value = (document.myform.ViewArea.value);
      document.myform.submit();
      }

</script>
</head>
<body>
<form method =POST  name="myform">
<select name="ViewArea" onChange="AreaSelected();">
    <option>Zoom to Region</option>
    <option>------------------------</option>
    <option value="5457203 487104 5451873 482304">Indian Reserve 2</option>
    <option value="5435308 491431 5434498 490403">Indian Reserve 4</option>
    <option value="5425919 541907 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>
     <input name="mode">
     <input type="hidden" name="imgxy" value="299.5 299.5">
     <input  type="hidden" name="imgext" value="[mapext]">

    </form>
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080418/824d2e6a/attachment.html


More information about the mapserver-users mailing list