layer extent

sophie chaveroux sophie.chaveroux at AGRICULTURE.GOUV.FR
Tue Feb 15 01:09:55 PST 2005


Hello everybody!!
i want to create a javascript fonction to zoom on a selected department
but the fonction doesn't work and i don't know why??? somebody can help me?

<head>
<script langage="javascript">
function DepartementSelected()
{
if(document.forms[0].ViewRegion.selectedIndex !=0 &&
document.forms[0].ViewRegion.selectedIndex !=1)
document.forms[0].submit();
}
</head>

<body>
<select NAME="ViewRegion" onChange="ProvinceSelected()">
    <option>quick View</option>
    <option VALUE="370122 1700000 701056 2030000>region du 47</option>
</select>



More information about the MapServer-users mailing list