[Chameleon] resize map to fit area
ben1 at bentom.com
Fri Dec 1 18:11:06 EST 2006
I'm trying to resize the map to fit the dive area after the window is resized.
First I noticed that the onresize event does not come through with a map
widget on the page (works when I remove it).
OnResizeEnd does not work in either case.
Anyone know why and what can be done to get around that?
So I added a "fit map" button to trigger it manually.
It calls a function which does this:
gMapWiWidth = newwidth;
gMapWiHeight = newheight;
document.forms.SET_MAP_WIDTH.value = newwidth;
document.forms.SET_MAP_HEIGHT.value = newheight;
it always comes up with the size in the mapfile.
What am I missing?
More information about the Chameleon