[Mapserver-users] select mapsize from combo box - solved

Steve McCrone mccrone at pc.jaring.my
Sat Feb 15 03:03:00 PST 2003


I am using mapserver 3.6 and the rosa applet. I wanted to have a combo box
where the suer could change the mapsize.

For the benefit of anyone else having this problem, I solved it by -

Calling a javascript function
each time the page is submitted (i.e. <BODY onLoad="Initialize();">),
where the Initialize() function contains the following lines -

//====================================
aForm.MapSize.value = "[mapwidth] [mapheight]";
aForm.mapext.value = "[minx] [miny] [maxx] [maxy]";//****this is the key to
retaining the extents
//====================================




More information about the MapServer-users mailing list