fr-ca
1999-12-31
$id:$
Doc_Builder
DM Solutions Group Inc.
chameleon@lists.maptools.org
Christopher R. Thorne
DM Solutions Group Inc.
chameleon@lists.maptools.org
Cursorpos
Base Package
Label Widgets
1.99
1999-12-31
UNKNOWN
Paul Spencer
DM Solutions Group Inc.
chameleon@lists.maptools.org
Display the current cursor position in the geographic coordinates of the map. To assist template developers, this widget can be configured to display one of the two axes of the cursor position. The cursor position must be displayed in an HTML element that can be updated, so an HTML INPUT box is used. CSS can be used to modify the appearance of the INPUT box to make it look nicer in more modern browsers.
A map widget must be present in the interface so this widget can display the coordinate position on the map.
Cette fenètre affiche les valeurs X et Y de la position du curseur ê mesure qu'il est eacute;placé sur l'image. Les valeurs sont en unités de la projection courante.
<CWC2 TYPE="Cursorpos"
ENABLED="[TRUE|FALSE]"
FORMINDEX="[0 < integer]"
VISIBLE="[TRUE|FALSE]"
<!-- CursorPos Attributes-->
AXIS="[X|Y]"
TEXTFIELDSIZE="[0 < integer]"
WIDGETCLASS="[string]"
WIDGETSTYLE="[string]"
<!-- Label Attribute Group-->
LABEL="[string]"
LABELPOSITION="[0 < integer < 8]"
LABELHALIGN="[LEFT|CENTER|RIGHT]"
LABELVALIGN="[TOP|MIDDLE|BOTTOM]"
LABELCLASS="[string]"
LABELSTYLE="[string]"/>
This tag example only outputs the "X" coordinate cursor position whenever the mouse is over the application map.
<cwc2 type="CursorPos" axis="X"/>
The coordinate position "X" will be labeled left of the output with "Longitude: ". This Label widget has also been given a CSS style to make it look nicer than the default style.
<cwc2 type="CursorPos"
axis="X"
label="Longitude: "
labelposition="8"
labelvalign="middle"
labelclass="label"
widgetclass="inputBox"/>
Hawaii Demo
http://www.mapsherpa.com/hawaii2/
The Hawaii Demo uses the latest 1.99 Chameleon version.
Label
Widget
AXIS
string
Required
X
Y
Determines which of the X or Y values of the current cursor position is displayed.
TEXTFIELDSIZE
integer
Widget Only
20
0
2147483647
The size (in characters) of the text box that displays the cursor position.
WIDGETCLASS
string
Widget Only
CWCCursorPositionWidgetClass
The CSS class to control the style of the HTML INPUT box.
WIDGETSTYLE
string
Widget Only
NULL
The CSS Style to control the style of the HTML INPUT box.
sid
unknown
CursorXMouseMoved
Private
e
boolean
true
WidgetPix2Geo
Private
nPixPos
integer
true
dfPixMin
integer
true
dfPixMax
integer
true
dfGeoMin
float
true
dfGeoMax
float
true
nInversePix
integer
true