[mapserver-users] Refresh via javascripts

YC Nyon ycnyon at pd.jaring.my
Sun Jul 14 23:13:53 PDT 2002


When the checkbox of a layer is change, using the onclick command, it will
run the following javascript commands
function redraw()
{
 document.mapper.zoom.value = 0;
 document.mapper.zsize.value = 0;
 document.mapper.extent.value;
 document.mapper.map_x.value = 225;
 document.mapper.map_y.value = 175;
 document.mapper.submit();
}

It works except it displays the full extent of the map.
In my file, there is the <input type=hidden name=extent ...> which defines
the current map extent.

Seems i missing something..

Nyon




More information about the MapServer-users mailing list