web object

Stephen Lime steve.lime at dnr.state.mn.us
Tue Feb 22 23:46:10 EST 2000


Lots of ways to do it. Your legend/controls frame would not be a template, but rather a static page. Since it never reloads there is no need for substitutions. The webObj template would be pretty simple too, just the map, scalebar or whatever. The big trick is getting information about the newly created map (eg. it's extent) back to the controls frame. You'll need some simle javascript to do that. You can have the map template hold a hidden form var that is used by the controls frame to set a form var on its page at submit time. Or the map template could contain the js necessary to update the for var on the controls page itself.

There may be a way to do it without javascript by having the first mapserver call generate a page with a frameset in it which in turn calls the mapserver to generate each of the frame components
but I'm not sure it's worth the effort. If your using the other supporting images (i.e. scalebar, legend and reference map) in the controls frame than you may have to do it this way.

Steve

<<< Morgan Covill <bosshogg at bitstream.net>  2/22  1:48p >>>
Hi,
I have started to play with the mapserv demo and would like to be able make
a template that uses frames and have the image template in a seperate frame
from the legend/submit form. Any suggestions ? 
Thanks in advance
Morgan




More information about the mapserver-users mailing list