[mapserver-users] Refresh via javascripts

YC Nyon ycnyon at pd.jaring.my
Mon Jul 15 02:13:53 EDT 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