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

Steve McCrone mccrone at pc.jaring.my
Sat Feb 15 06:03:00 EST 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