[Chameleon] Scalebar and Cursorpos widgets

kgrootendorst at baird.com kgrootendorst at baird.com
Fri Jul 22 09:57:32 EDT 2005


Hi,
Can somebody tell me how I embed the scalebar  within my map frame? 
My widget syntax is
 <cwc2 type="Scalebar"
      imagetype="PNG"
      units="meters"
      visible="true"
      width="150"
      height="3"
      intervals="2"
      backgroundcolor="255 255 255"
      outlinecolor="0 0 0"  <!--0 0 0 is black-->
      labelcolor="0 0 0"
      color="255 255 255"
      transparent="true">
      </cwc2>

In my .map file I don't have the SCALEBAR object - seems the widget 
overrides the scalebar syntax from the .map anyway.

Also, can you have widgets displayed 'side by side'?  For example, 
displaying the cursor x and y position uses the following widgets:
<cwc2 type="Cursorpos" axis="X" label="Easting: " labelposition="8" 
labelvalign="middle" labelclass="label" widgetclass="inputBox"></cwc2>
     <cwc2 type="Cursorpos" axis="Y" label="Northing: " labelposition="8" 
labelvalign="middle" labelclass="label" widgetclass="inputBox"></cwc2>
 
And the result reads something like:
Easting:  ####
Northing:  #####

I would like to display the result as    Easting: ####     Northing: #####
Any ideas?

Thanks.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050722/568690c8/attachment.html


More information about the Chameleon mailing list