[Chameleon] PanMap widget update.
Jason Grimes
jgrimes at gi.alaska.edu
Thu Mar 31 17:06:01 EST 2005
Hi All,
Well I did some more looking into the problem I'm having with both the
PanMap and the Ruler widgets. I created a skeleton chameleon site with
only three widgets MapDHTMLWidget, PanMap, and Ruler. There is no
additional javascript, no CSS, and the only other thing I set up was the
defaults for the navbuttons. Even with this minimal setup Firefox and
Netscape do not move the image when you pan the map and the ruler line
gets displayed in the upper left hand corner and does not draw
correctly. They both work fine in IE. It appears that i'm not setting
something up correctly. Here an excerpt from my template were you can
see how I setup the widgets..
<body onload="CWC2OnLoadFunction()" bgcolor="#009999">
<form method="post">
<div>
<!-- MAPDHTMLWIDGET -->
<CWC2 type="MapDHTMLWidget" Visible="true" Width="600"
Height="400" AllowResize="true" MarqueeColor="#FF3333" MarqueeWidth="2"
minscale="1" bordercolor="#0000ff" borderwidth="0"/>
</div>
<div>
<cwc2 type="PanMap" image="icons/icon_pan.png" visible="true"
styleresource="NavButtons" imagetip="Pan Map" imagewidth="24"
imageheight="24" toolset="Navigation">
<image state="normal"/>
<image state="selected"/>
<image state="hover"/>
</cwc2>
<cwc2 type="Ruler" image="icons/icon_ruler.png" visible="true"
styleresource="NavButtons" imagetip="Measure Distance" imagewidth="24"
imageheight="24" toolset="Navigation" units="Miles">
<image state="normal"/>
<image state="selected"/>
<image state="hover"/>
</cwc2>
</div>
</form>
</body>
I'm testing with Netscape version 7.2 and FireFox version 1.0. Any
ideas would be greatly appreciated. Thanks,
Jason
More information about the Chameleon
mailing list