CWC2 Widget Documentation

intro text, put a nice little paragraph in here that describes this document.

Index

Attribute Groups

CWC2 Widgets

CWC2 Attribute Groups

The name of the widget. Not all widgets use this. Only the SharedResource widget currently needs this. The type of the widget indicates the actual widget object to create for this tag. Make the widget visible or not in the page, by default this is true for all widgets. Setting this to true will typically result in some HTML comment being written into the page in place of its normal user interface. Note that setting a widget to invisible will not prevent the widget from outputting form variables and javascript. To remove a widget entirely (without deleting it), set its ENABLED property to false. Never attempt to comment out a widget tag using HTML comments in the template. Enable or disable the widget in the interface. If the widget is disabled, then this should result in all output from the widget being removed from the resulting template. It should be used to temporarily remove a widget from normal processing, while leaving a placeholder in the template. Never attempt to comment out a widget tag using HTML comments in the template. The text to display in this label. This should contain valid HTML. Special characters, such as accented characters, must be represented by their HTML encoded version (i.e. é is &eacute;). The position of the label around another widget. Position 0 is upper-left. Positions increase clockwise to position 8 which is left of the widget. Default is 8. The horizontal alignment of the label, default is left. The vertical alignment of this label. The default is middle. The CSS class to control the rendering of this label. The default is CWCLabelWidgetClass. The CSS style to apply to this label. The default is no style. The image to display for this icon. The width in pixels of this image. This is used in the resulting <IMG> tag to allow some browsers (like Netscape 4.7) to load the page faster. The height in pixels of this image. This is used in the resulting <IMG> tag to allow some browsers (like Netscape 4.7) to load the page faster. The alternate or tooltip text to display for this image. Not all browsers support this property. The CSS class to control the rendering of this image. The default is no class. A CSS style to apply to this image tag. The default is no style. A name indicating a logical group of tools of which only one can be selected. The image to display when this button is selected. The image to display when the mouse hovers over this button. Sets the width in pixels of a popup window. Sets the height in pixels of a popup window. Controls the display of a toolbar in a popup window. The default is true. Controls the display of a menubar in a popup window. The default is true. Controls the display of a status bar in a popup window. The default is true. Controls the display of scrollbars in a popup window. The default is true. Controls if a popup window is resizable or not. The default is true. The color to fill the background of the text button with. An image to render as the background of the button. The background image is rendered on top of the background color. The image to use as the top left corner of the text button. The image to use as the top edge of the button. The image to use as the top right corner of the text button. The image to use as the right edge of the text button. The image to use as the bottom right corner of the text button. The image to use as the bottom edge of the text button. The image to use as the bottom left corner of the text button. The image to use as the left edge of the text button The overall width of the text button in pixels. The overall height of the text button in pixels. The amount of space to leave between the image and the label in pixels. The amount of vertical adjustment in pixels to apply to the label's vertical placement. The label is centered vertically in the available space but may sometimes appear misaligned because of rounding errors or descenders (qypgj). Path to the TrueType font file to use when rendering the label. The path is specified relative to the cwc2 directory. The font file must exist on the server to be valid. The size of font to use for the label. The horizontal alignment of the label on the button. One of left, center or right. Control the use of antialiasing when rendering the label. This is sometimes desirable to control the quality of the font rendering. The image to display in the button. The image is displayed at the left edge of the button, centered vertically. Control the use of caching when rendering text buttons. Text buttons take a relatively long time to render so it is desirable to cache the text button for improved application performance. However, when developing a new template or modifying existing buttons, it is useful to turn off caching temporarily.

CWC2 Widget Details

cwcwidget

Description:
CWCWidget is the most basic type of widget. It provides the basic functionality of a widget and defines the standard API that widgets must implement in order to function correctly with the CWC service instance. All widgets represent themselves in the template using the CWCWidget tag and set the type and other attributes as necessary.
Tag:

<CWC2 NAME="[string]" TYPE="CWCWIDGET" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The cwcwidget tag has attributes from the attributes from the Base Attributes group.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

boundingboxpopup

Description:
The BoundingBoxPopupWidget displays a popup dialog box that allows the user to enter bounding box coordinates to zoom to (either rectangle or point)
Tag:

<CWC2 NAME="[string]" TYPE="BOUNDINGBOXPOPUP" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The boundingboxpopup tag has attributes from the Base Attributes, Icon Attributes, Popup Attributes, Label Attributes, and Button Attributes groups.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_INPUT_TYPE
the type of the last navigation command, either POINT or RECTANGLE
NAV_INPUT_COORDINATES
the coordinates that the last command generated. May be a single point, or two points representing a rectangle
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickBoundingBoxPopup()
callback function for the user clicking the Zoom to Bounding Box button
applyBoundingBox()
callback function to apply a Zoom to Bounding Box or Point Coordinates.
getMapExtents()
return the current extents of the map.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

catalogsearch

Description:
The catalog search width allows a user to search a catalog of WMS layers based on an entered keyword and select one or more layers from the results to add to the current context.
Tag:

<CWC2 NAME="[string]" TYPE="CATALOGSEARCH" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]"/>

Attributes:
The catalogsearch tag has attributes from the Base Attributes, Popup Attributes, Label Attributes, and Text Button Attributes groups.
Form Elements:
LAYER_TITLE
The title for the last layer that was selected from the catalog search function
LAYER_ALT_TITLE
The alternate title for the last layer that was selected from the catalog search function
LAYER_SERVER_VERSION
The version of WMS that the server supports for the last layer that was selected from the catalog search function
LAYER_CONNECT_STRING
The connection string for the last layer that was selected from the catalog search function
LAYER_ABSTRACT
The abstract for the last layer that was selected from the catalog search function
LAYER_LLBB
The LatLong bounding box for the last layer that was selected from the catalog search function
LAYER_STYLES
The styles supported by the last layer that was selected from the catalog search function
LAYER_FORMATS
The formats for the last layer that was selected from the catalog search function
LAYER_SRSS
The SRS values supported by the last layer that was selected from the catalog search function
Javascript Functions:
clickCatalogSearch()
callback function for the user clicking the "catalog" button
catalogSearchCB()
callback function for the catalog search page.
Javascript Variables:
None

clearpoints

Description:
The ClearPoints widget allows the user to clear all user created points and refresh the current page without performing any other navigation.
Tag:

<CWC2 NAME="[string]" TYPE="CLEARPOINTS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]"/>

Attributes:
The clearpoints tag has attributes from the Base Attributes, and Text Button Attributes groups.
Form Elements:
CLEAR_POINTS
Controls the activation of the ClearPoint widget.
Javascript Functions:
clickClearPoints()
Callback function for the user clicking the "Clear Points" button.
Javascript Variables:
None

clearwfsfilter

Description:
The ClearWFSFilter widget clears the WFS filter from the active layer and deletes the temporary annotation layer.
Tag:

<CWC2 NAME="[string]" TYPE="CLEARWFSFILTER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The clearwfsfilter tag has attributes from the Base Attributes, Icon Attributes, Label Attributes, and Button Attributes groups.
Form Elements:
WFS_CLEAR_FILTER
Flag to trigger a clear filter action.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickClearWFSFilter()
Clears the current WFS filter on the selected layer.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

compasspoint

Description:
The CompassPoint widget is a clickable image that the user can click to pan in a given direcion.
Tag:

<CWC2 NAME="[string]" TYPE="COMPASSPOINT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" DIRECTION="[1|0|7|6|5|4|3|2]" PANPERCENT="[0 < integer < 100]"/>

Attributes:
The compasspoint tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Determine if this compass point will be active when the page loads, not used.
WIDGETSTYLE
The style to apply to images that represent this widget.
MAPID
Control the map to which this compass point will apply when clicked.
DIRECTION
The direction that the compass point will pan the map when clicked.
PANPERCENT
The amount to pan the map in the given direction as a percentage of the map width or height.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

cursorpos

Description:
Display the current cursor position in geographic coordinates. To assist template developers, this widget can be configured to display one of the two axis 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.
Tag:

<CWC2 NAME="[string]" TYPE="CURSORPOS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" AXIS="[X|Y]" TEXTFIELDSIZE="[0 < integer]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]"/>

Attributes:
The cursorpos tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
AXIS
Determine if the X or Y value of the current cursor position is displayed.
TEXTFIELDSIZE
The size in characters of the text box that displays the cursor position.
WIDGETCLASS
The CSS class to control the style of the HTML INPUT box. The default is CWCCursorPositionWidgetClass.
WIDGETSTYLE
The CSS Style to control the style of the HTML INPUT box. The default is no style.
Form Elements:
sid
No description available.
Javascript Functions:
CursorXMouseMoved()
callback function for tracking mouse movement in the X direction
WidgetPix2Geo()
Convert pixel position to geographic coordinates
Javascript Variables:
None

downloadcontext

Description:
The ContextDownloadWidget allows the user to download the current state of the map as a Context document. Window size, current extents, and layer visibility are preserved.
Tag:

<CWC2 NAME="[string]" TYPE="DOWNLOADCONTEXT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The downloadcontext tag has attributes from the Base Attributes, Popup Attributes, Label Attributes, and Text Button Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
clickContextDownload()
callback function for the user clicking the "download context" button
Javascript Variables:
None

errorreport

Description:
This is a utility widget used to display errors that have occurred during processing. Normally the errors are non-fatal, but could be useful in debugging widgets or a new template.
Tag:

<CWC2 NAME="[string]" TYPE="ERRORREPORT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The errorreport tag has attributes from the Base Attributes, and Popup Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
DisplayErrors()
Popup a window displaying error messages that occurred.
Javascript Variables:
None

expressionbuilder

Description:
The ExpressionBuilder widget displays a popup window that allows the user to interactively build expressions.
Tag:

<CWC2 NAME="[string]" TYPE="EXPRESSIONBUILDER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" SLD="[string]" WILDCARD="[string]" SINGLECHAR="[string]" ESCAPE="[string]"/>

Attributes:
The expressionbuilder tag has attributes from the Base Attributes, Icon Attributes, Popup Attributes, Label Attributes, and Button Attributes groups plus the following attributes:
SLD
This option is not yet available.
WILDCARD
This character is used in conjunction with the `LIKE` operator for defining a wildcard in an expression
SINGLECHAR
This character is used in conjunction with the `LIKE` operator for defining single characters in an expression.
ESCAPE
This character is used in conjunction with the `LIKE` operator for escaping special characters in an expression.
Form Elements:
WFS_FILTER
Hidden varible containing the WFS Filter to be applied to the active layer.
WFS_FILTER_LAYER_INDEX
Index of layer to appy filter to.
WFS_FILTER_EXPRESSIONLIST
No description available.
WFS_FILTER_APPLYTOMAP
No description available.
WFS_FILTER_SLD
No description available.
WFS_FILTER_SLD_FILE
No description available.
WFS_FILTER_CONNECTION
No description available.
WFS_FILTER_LAYERTYPE
No description available.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickExpressionBuilder()
launches the Expression Builder widget popup.
applyWFSFilter()
function to apply the current WFS filter on the selected layer.
saveExpressions()
No description available.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

extent

Description:
The Extent widget displays one of the extents of the map in text on the output page.
Tag:

<CWC2 NAME="[string]" TYPE="EXTENT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" EXTENT="[MINX|MINY|MAXX|MAXY]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]" TEXTFIELDSIZE="[0 < integer]"/>

Attributes:
The extent tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
EXTENT
The extent to display.
WIDGETCLASS
The CSS class to control the style of the extent text. The default is CWCExtentWidgetClass
WIDGETSTYLE
The CSS style to control the style of the extent text. The default is none.
TEXTFIELDSIZE
The size in characters to make the extent widget in JSAPI mode.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

extract

Description:
The Extract widget is specific to GeoBase. It connects the user to an extraction service that allows for the extraction of visible layers at the current extents.
Tag:

<CWC2 NAME="[string]" TYPE="EXTRACT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" HREF="[string]" APPENDGET="[TRUE|FALSE]" APPENDSID="[TRUE|FALSE]" TARGET="[string]" MINSCALE="[integer]" MAXSCALE="[integer]"/>

Attributes:
The extract tag has attributes from the Base Attributes, and Text Button Attributes groups plus the following attributes:
HREF
The URL to connect to for the extraction service.
APPENDGET
Additional URL parameters to append to the GET request generated by the extract widget.
APPENDSID
A session ID to append to the GET request.
TARGET
Allow the extract widget to load the HREF in a named window.
MINSCALE
The minimum scale at which extraction is allowed. Below this, the user will be warned that extraction is not allowed.
MAXSCALE
The maximum scale at which extraction is allowed. Above this, the user will be warned that extraction is not allowed.
Form Elements:
sid
No description available.
Javascript Functions:
doExtract()
callback function for the user clicking the Extract button
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

extractwfsdata

Description:
The Extract WFS Data widget allows the user to extract data based on the current selected layer and ROI. Currently the following formats are supported: GML Shape
Tag:

<CWC2 NAME="[string]" TYPE="EXTRACTWFSDATA" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" OUTPUTFORMATS="[string]"/>

Attributes:
The extractwfsdata tag has attributes from the Base Attributes, Icon Attributes, Popup Attributes, Label Attributes, and Button Attributes groups plus the following attribute:
OUTPUTFORMATS
No description available.
Form Elements:
None
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickExtractWFSData()
launches the Extract WFS Data widget popup.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

helpwidget

Description:
Display help content.
Tag:

<CWC2 NAME="[string]" TYPE="HELPWIDGET" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The helpwidget tag has attributes from the attributes from the Base Attributes group.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

jslist

Description:
The JSList widget creates a SELECT input and populates it with values from a SharedResource.
Tag:

<CWC2 NAME="[string]" TYPE="JSLIST" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" JSSHAREDRESOURCE="[string]" LABELFIELD="[string]" VALUEFIELD="[string]" ONCHANGE="[string]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]"/>

Attributes:
The jslist tag has attributes from the attributes from the Base Attributes group plus the following attributes:
JSSHAREDRESOURCE
The name of a javascript-enabled SharedResource to draw values from.
LABELFIELD
The name of the property to get from the SharedResources to display for the user.
VALUEFIELD
The name of the property to get from the SharedResource to use as a value in the options generated in the select list.
ONCHANGE
A javascript function to call if the list changes. This must be the name of the function only. The callback passes the select object and the selected option object to this function.
WIDGETCLASS
The CSS class name to apply to the list box.
WIDGETSTYLE
The CSS style to apply to the list box.
Form Elements:
sid
No description available.
Javascript Functions:
initJSList_()
Called by each JSList widget to initialize itself.
Javascript Variables:
None

jstreeview

Description:
The Javascript TreeView displays a client side tree view of the data in a Shared Resource Widget that has the JSEnabled attribute set to true.
Tag:

<CWC2 NAME="[string]" TYPE="JSTREEVIEW" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" JSSHAREDRESOURCE="[string]" NODEONCLICK="[string]" NODEDATAFIELD="[string]" NODELABELFIELD="[string]" NODEICONFIELD="[string]" NODEICONOPENFIELD="[string]" NODECLASS="[string]" LEAFHIGHLIGHTSTYLE="[string]" LEAFHIGHLIGHTSTYLE="[string]" LEAFONCLICK="[string]" LEAFLABELFIELD="[string]" LEAFLABELFIELD="[string]" LEAFDATAFIELD="[string]" LINKCLASS="[string]"/>

Attributes:
The jstreeview tag has attributes from the attributes from the Base Attributes group plus the following attributes:
JSSHAREDRESOURCE
The name of a javascript-enabled SharedResource to draw values from.
NODEONCLICK
The name of a javascript function to call when the user clicks on a branch. This must be the name only. The callback is called with the value from the NODEDATAFIELD property of the SharedResource.
NODEDATAFIELD
The name of the property to get from the SharedResources as the data associated with a branch on the tree.
NODELABELFIELD
The name of the property to get from the SharedResources to display as a label on for a branch on the tree.
NODEICONFIELD
The name of the property to get from the SharedResources as the image to be displayed for a branch on the tree when it is closed
NODEICONOPENFIELD
The name of the property to get from the SharedResources to display as a label on for a branch on the tree when it is open. If not provided, the closed icon will be used.
NODECLASS
The CSS class name to use for text displayed in the tree. This is applied to a tag that is wrapped around all labels displayed in the tree.
NODESELECTEDSTYLE
CSS styles to be applied to a label in the tree when it has been selected. This should be zero or more CSS styles. Note that these styles override the associated class NODECLASS settings and cannot be removed without using NODENORMALSTYLE.
NODENORMALSTYLE
CSS styles to be applied to a label in the tree after it was selected and then another item was selected. This should be zero or more CSS styles that essentially reverse the NODESELECTEDSTYLE.
LEAFONCLICK
The name of a javascript function to call when the user clicks on a leaf. This must be the name only. The callback is called with the value from the LEAFDATAFIELD property of the SharedResource.
LEAFLABELFIELD
The name of the property to get from the SharedResources to display as a label on for a leaf on the tree.
LEAFICONFIELD
The name of the property to get from the SharedResources as the image to be displayed for a leaf on the tree.
LEAFDATAFIELD
The name of the property to get from the SharedResources as the data associated with a leaf on the tree.
LINKCLASS
The CSS class name to use for links in the tree. Links are tags inside of the that wraps all labels in the tree.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
foldersTree
The global javascript object that represents the javascript tree on the page, currently harded-coded to this by the javascript tree code.
HIGHLIGHT
Set to control the javascript treemenu.
ICONPATH
Set to control the javascript treemenu.
USETEXTLINKS
Set to control the javascript treemenu.
USEFRAMES
Set to control the javascript treemenu.
STARTALLOPEN
Set to control the javascript treemenu.
PRESERVESTATE
Set to control the javascript treemenu.
JSTreeViewImage
A global javascript Image object to use for pre-loading tree images.
NODECLASS
Set to control the javascript treemenu.
LINKCLASS
Set to control the javascript treemenu.
NODESELECTEDSTYLE
Set to control the javascript treemenu.
NODENORMALSTYLE
Set to control the javascript treemenu.

keymap

Description:
The KeyMap widget displays a key map (or reference map) that displays the users currently viewed extents within a larger reference frame.
Tag:

<CWC2 NAME="[string]" TYPE="KEYMAP" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" WIDTH="[0 < integer]" HEIGHT="[0 < integer]" COLOR="[RRR GGG BBB]" OUTLINECOLOR="[RRR GGG BBB]" MINX="[-INF < integer < INF]" MINY="[-INF < integer < INF]" MAXX="[-INF < integer < INF]" MAXY="[-INF < integer < INF]" SRS="[string]"/>

Attributes:
The keymap tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
From NavTool, controls if this is the default navigation widget. Ignored for KeyMapWidget.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of the Keymap image tag. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
WIDTH
The width in pixels of the keymap image.
HEIGHT
The height in pixels of the keymap image.
COLOR
The fill color for the box drawn to represent the current extents. Set to "-1 -1 -1" for transparent. The default is "-1-1-1".
OUTLINECOLOR
The outline color for the box drawn to represent the current extents. The default is "255 0 0" for Red.
MINX
The minimum X value in geographic coordinates that this image represents.
MINY
The minimum Y value in geographic coordinates that this image represents.
MAXX
The maximum X value in geographic coordinates that this image represents.
MAXY
The maximum Y value in geographic coordinates that this image represents.
SRS
The projection that the extents for this widget are defined in.
Form Elements:
NAV_INPUT_TYPE
the type of the last navigation command, either POINT or RECTANGLE
NAV_INPUT_COORDINATES
the coordinates that the last command generated. May be a single point, or two points representing a rectangle
Javascript Functions:
TrackMouseXY()
called when the user moves the mouse.
FindObjectPosX()
Return the X coordinates of an HTML object on the page.
FindObjectPosY()
Return the Y coordinates of an HTML object on the page.
KeyMapClicked()
handle the user clicking on the Key Map
Javascript Variables:
KeyMapWidget
Ensure that mouse movement events are captured under IE.
gnMouseX
the current X position of the mouse
gnMouseY
the current Y position of the mouse

language

Description:
The Language widget allows the template designer to specify several languages that the user can switch to from the current template, and makes the current language available to widgets that support a multilingual interface. This widget uses sub-tags in the form: <language name="en-CA"/>. There is a javascript function setLanguage that can be used to automatically load the template associated with a given language while preserving the current context extents and layer visibility.
Tag:

<CWC2 NAME="[string]" TYPE="LANGUAGE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The language tag has attributes from the attributes from the Base Attributes group.
Form Elements:
LANGUAGE
USed by the language widget to track the current language setting.
Javascript Functions:
setLanguage()
set the current language
Javascript Variables:
None

layermanager

Description:
The LayerManager widget is a complex dialog box that allows the user to manage the layers in the current context and add new layers from a list of cached WMS servers.
Tag:

<CWC2 NAME="[string]" TYPE="LAYERMANAGER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The layermanager tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups.
Form Elements:
currentState
a key that references the current state of the context.
Javascript Functions:
clickLayerManager()
callback function for the user clicking the Layer Management button
LayerManagerCB()
callback function to handle user input from the Layer Manager dialog
Javascript Variables:
None

legend

Description:
The LegendPopup widget allows the user to popup a legend for the current context in a separate window.
Tag:

<CWC2 NAME="[string]" TYPE="LEGEND" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The legend tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups.
Form Elements:
LEG_WID_POPUP_OPEN
Used to track if the legend widget has an open popup window so it can be refreshed in CWC2 JSAPI mode.
Javascript Functions:
clickLegendPopup()
callback function for the user clicking the Legend button
Javascript Variables:
None

legendtemplate

Description:
The Legend widget allows the user display a legend based on a legend template. The Legend can either be embedded in the same page or displayed in a separate window.
Tag:

<CWC2 NAME="[string]" TYPE="LEGENDTEMPLATE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEMPLATE="[string]"/>

Attributes:
The legendtemplate tag has attributes from the attributes from the Base Attributes group plus the following attribute:
TEMPLATE
the path to the template that is used by MapServer's HTML Legend processor. The path is considered relative to the template if it is not absolute.
Form Elements:
LEGENDTEMPLATE_RESET
Used to control the legend template widget.
LEGENDTEMPLATE_LAYERS
No description available.
Javascript Functions:
LegendTemplateLayerInfo()
Callback function to handle user requesting information about a layer from the LegendTemplate widget.
Javascript Variables:
None

link

Description:
The Link widget allows the template to display a button that will open an arbitrary URL such as a help page for an application.
Tag:

<CWC2 NAME="[string]" TYPE="LINK" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" HREF="[string]" APPENDGET="[TRUE|FALSE]" APPENDSID="[TRUE|FALSE]" TARGET="[string]"/>

Attributes:
The link tag has attributes from the Base Attributes, and Text Button Attributes groups plus the following attributes:
HREF
The URL to open when the user clicks the associated button.
APPENDGET
Additional URL parameters to append to the GET request generated by the link widget.
APPENDSID
A session ID to append to the GET request.
TARGET
Allow the link widget to load the HREF in a named window.
Form Elements:
sid
No description available.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

locate

Description:
The Locate widget provides a dialog box that can be used to search for postal codes, place names and NTS map sheets and zoom the map to one of the results of the search.
Tag:

<CWC2 NAME="[string]" TYPE="LOCATE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" ZOOMTOSCALE="[1 < integer]"/>

Attributes:
The locate tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups plus the following attribute:
ZOOMTOSCALE
The map scale to zoom to when the Locate widget to zoom to a location. A value between 250000 and 1000000 would be reasonable in most applications.
Form Elements:
LOCATE_ZOOM_TO
The geographic coordinates to zoom to when locating something
LOCATE_ADD_ELEMENT
Used to track the element that has been added to the map (point or rectangle)
LOCATE_LATLONG
The lat/long value to zoom to.
Javascript Functions:
onClickLocate()
callback when the locate button is clicked
LocateCB()
callback function to handle user input from the Locate dialog
Javascript Variables:
None

mapdhtmlwidget

Description:
The MapDHTML widget displays the actual visualization of the current context and provides many of the mechanisms for other tools to do their job, primarily the navigation tools.
Tag:

<CWC2 NAME="[string]" TYPE="MAPDHTMLWIDGET" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" MARQUEECOLOR="[[#]RRGGBB]" MARQUEEWIDTH="[0 < integer]" MARQUEEVERTICALIMAGE="[string]" MARQUEEHORIZONTALIMAGE="[string]" MINSCALE="[-INF < integer < INF]" MAXSCALE="[-INF < integer < INF]" ALLOWRESIZE="[TRUE|FALSE]" WIDTH="[0 < integer]" HEIGHT="[0 < integer]" WAITIMAGE="[string]" WAITIMAGEWIDTH="[0 < integer]" WAITIMAGEHEIGHT="[0 < integer]"/>

Attributes:
The mapdhtmlwidget tag has attributes from the attributes from the Base Attributes group plus the following attributes:
MARQUEECOLOR
The color to draw the zoom box in.
MARQUEEWIDTH
When drawing the marquee, this is the width/height to make the edges of the zoom box.
MARQUEEVERTICALIMAGE
See MARQUEEHORIZONTALIMAGE. This is used for the top and bottom edges.
MARQUEEHORIZONTALIMAGE
The image to use for drawing the marquee. If properly used, you can create dashed line effects using this. The left and right layers used to draw the edges of the zoom box have this image as the background and show only a slice of the image the height of the zoom box and the defined marquee width.
MINSCALE
The minimum scale to draw the current context at. Zooming in beyond this scale will be prevented.
MAXSCALE
The maximum scale to draw the current context at. Zooming out beyond this scale will be prevented.
ALLOWRESIZE
control the resizability of the map widget. This allows the application to respect or ignore the Window tag in a context document.
WIDTH
The width in pixels of the map width image.
HEIGHT
The initial height in pixels of the map widget image.
WAITIMAGE
The image to use for showing ongoing progress
WAITIMAGEWIDTH
The width in pixels of the wait image.
WAITIMAGEHEIGHT
The height in pixels of the wait image.
Form Elements:
NAV_INPUT_TYPE
the type of the last navigation command, either POINT or RECTANGLE
NAV_INPUT_COORDINATES
the coordinates that the last command generated. May be a single point, or two points representing a rectangle
MAP_EXTENTS_MINX
The minimum X of the map in geographic coordinates
MAP_EXTENTS_MINY
The minimum Y of the map in geographic coordinates
MAP_EXTENTS_MAXX
The maximum X of the map in geographic coordinates
MAP_EXTENTS_MAXY
The maximum Y of the map in geographic coordinates
MAP_WIDTH
The width of the map window in pixels
MAP_HEIGHT
The height of the map window in pixels
MAP_CURSOR_POS_X
The current X position of the cursor over the map
MAP_CURSOR_POS_Y
The current Y position of the cursor over the map
NAV_CMD
The last command that was used to interact with the map
Javascript Functions:
MapWsetZoomBoxSettings()
set the parameters for a user-resizable box that can be used for zooming or querying.
MapWhandleresize()
callback function for the user resizing the page.
MapWchkMouseUp()
handle the user releasing the mouse button
MapWPointNavigation()
submit the current page with a single point for navigation
MapWmapTool()
handle the user pressing a mouse button.
MapWgetImageXY()
return the XY coordinates of an image on the page.
MapWgetMouse()
Get the current position of the mouse..
MapWinsideMap()
return true if a point is inside the map area
MapWstartZoomBox()
put the map widget into Zoom Box mode.
MapWstopZoomBox()
end Zoom Box mode
MapWsetClip()
set the clipping parameters for a DHTML layer
MapWCreateDHTMLLayers()
initializes the DHTML layers required by the Map widget.
MapWidgetInitVariables()
initialization function for the map widget variables.
Javascript Variables:
gMapWvspcIEadjust
track if IE is in use and adjust the location of layers accordingly
gMapWhspcIEadjust
track if IE is in use and adjust the location of layers accordingly.
gMapWiWidth
the width of the map widget window
gMapWiHeight
the height of the map widget window
gMapWhspc
the horizontal adjustment to apply to the layers.
gMapWvspc
The vertical adjustment to apply to the layers
gMapWmouseX
the X coordinate of the current mouse position
gMapWmouseY
the Y coordinate of the current mouse position
gMapWx1
The X coordinate of the first corner of the zoom box
gMapWy1
The Y coordinate of the first corner of the zoom box
gMapWx2
The X coordinate of the second corner of the zoom box
gMapWy2
The Y coordinate of the second corner of the zoom box
gMapWfirstx
track the first X coordinate clicked
gMapWfirsty
track the first Y coordinate clicked
gMapWsecondx
the second X coordinate clicked
gMapWsecondy
the second Y coordinate clicked
gMapWzleft
the location of the left layer of the zoom box.
gMapWzright
The location of the right layer of the zoom box
gMapWztop
The location of the top layer of the zoom box
gMapWzbottom
The location of the bottom layer of the zoom box.
gMapWmapX
the X coordinate of the map widget
gMapWmapY
the Y coordinate of the map widget
gMapWdragging
track the state of the map widget drag function
gMapWtoplayer
the top edge of the zooming box
gMapWleftlayer
The left edge of the zooming box
gMapWbottomlayer
the bottom edge of the zooming box
gMapWrightlayer
the right edge of the zooming box

mapimagesharedresource

Description:
This widget display a simple non navigable map with point taken from a shared resource on it.
Tag:

<CWC2 NAME="[string]" TYPE="MAPIMAGESHAREDRESOURCE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" WAITIMAGE="[string]" WAITIMAGEWIDTH="[0 < integer]" WAITIMAGEHEIGHT="[0 < integer]" BORDER="[TRUE|FALSE]" ID="[string]" SRS="[string]" MINX="[integer]" MINY="[integer]" MAXX="[integer]" MAXY="[integer]" WIDTH="[integer]" HEIGHT="[integer]" ALLOWRESIZE="[TRUE|FALSE]" NAVIGABLE="[TRUE|FALSE]" TRANSPARENT="[TRUE|FALSE]" IMAGETYPE="[PNG|PNG24|JPEG|GIF|SWF]" AUTOEXTENT="[TRUE|FALSE]" AUTOEXTENTBUFFER="[-INF < integer < INF]" MINAUTOEXTENTBUFFER="[-INF < integer < INF]" QUERYABLE="[TRUE|FALSE]" POINTQUERYFIELD="[string]" POINTQUERYFORMVAR="[string]" POINTQUERYPOINTS="[string]" POINTQUERYTOLERANCE="[integer]" SYMBOLOVERLAP="[TRUE|FALSE]"/>

Attributes:
The mapimagesharedresource tag has attributes from the attributes from the Base Attributes group plus the following attributes:
WAITIMAGE
The image to use for showing ongoing progress
WAITIMAGEWIDTH
The width in pixels of the wait image.
WAITIMAGEHEIGHT
The height in pixels of the wait image.
BORDER
The border width to display around the image.
ID
An optional id for the static map image.
SRS
The projection that the static map image is to be displayed in.
MINX
The minimum X extent of the static map image
MINY
The minimum Y extent of the static map image
MAXX
The maximum X extent of the static map image
MAXY
The maximum Y extent of the static map image
WIDTH
The width in pixels of the map width image.
HEIGHT
The initial height in pixels of the map widget image.
ALLOWRESIZE
This gives the ability to resize the map from the URL.
NAVIGABLE
If set to true, the map will be html clickable, otherwise the map will be a plain image. Only usefull when adding navigation widget or using the queryable option.
TRANSPARENT
Set if there will be transparency in the map.
IMAGETYPE
The type of the image to display the scalebar as.
AUTOEXTENT
If true, the widget will calculate and set the extent of the map from the list of points.
AUTOEXTENTBUFFER
This force the buffer around all points. For instance if you always want to have a 5 km border around the map, you can set this value to something equivalent in degree.
MINAUTOEXTENTBUFFER
This is the minimum buffer value when the AutoExtent is set to true. This can be usefule when the widget zoom to only one point. If the extent of the map is below that value (in degree), the extent will be ajusted to that minimum value.
QUERYABLE
If true, when the user will click on a point, the Event "PointClicked" will be processed. Note that this functionality require the navigable attribute setted to TRUE.
POINTQUERYFIELD
If setted, the value from the field(s) specified will be passed in the URL in the form variables contained in PointQueryFormVar. There can be more than one, separated by commas, but the number of value and the order must match the order in PointQueryFormVar. This require the Queryable and PointQueryPoints parameters setted to TRUE.
POINTQUERYFORMVAR
If setted, this form variable will be set with the value from the field in PointQueryField. There can be more than one, separated by commas, but the number of value and the order must match the order in PointQueryField. This require the Queryable and PointQueryPoints parameters setted to TRUE.
POINTQUERYPOINTS
This is the POINTS list that will be queried. This require the Queryable parameter setted to TRUE.
POINTQUERYTOLERANCE
This the width and height in pixels that will be checked to see if the user click on a point. This require the Queryable parameter set to TRUE and PointQueryPoints parameters set to the correct shared resource name.
SYMBOLOVERLAP
If false, the points will not overlap each other. Internally, this option will create an annotation layer instead of a point layer and will use the labelcache option of mapserver with a default buffer of 2.
Form Elements:
sid
No description available.
NAV_INPUT_TYPE
the type of the last navigation command, either POINT or RECTANGLE
Javascript Functions:
LoadMap(oLayer, szParam)()
Cause a
Javascript Variables:
bPageLoaded
No description available.

mapimagestatic

Description:
This widget display a simple non navigable map
Tag:

<CWC2 NAME="[string]" TYPE="MAPIMAGESTATIC" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The mapimagestatic tag has attributes from the attributes from the Base Attributes group.
Form Elements:
sid
No description available.
NAV_INPUT_TYPE
the type of the last navigation command, either POINT or RECTANGLE
Javascript Functions:
LoadMap(oLayer, szParam)()
Cause a
Javascript Variables:
bPageLoaded
No description available.

mapsize

Description:
The MapSize widget displays a widget that allows the user to specify new dimensions for the map image. Note that the MapDHTML widget must have ALLOWRESIZE set to true for this to have any effect.
Tag:

<CWC2 NAME="[string]" TYPE="MAPSIZE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]"/>

Attributes:
The mapsize tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups.
Form Elements:
SET_MAP_WIDTH
The new map width in pixels when changing the map window size
SET_MAP_HEIGHT
The new map height in pixels when changing the map window size
Javascript Functions:
clickMapSizePopup()
callback function for the user clicking the Map Size button
applyMapSize()
set the map size.
cancelMapSize()
callback function when the user cancels changing the mapsize so the selection can be reset.
getMapSize()
return the size of the map in pixels
changeMapSize()
Callback function when the user has selected a new mapsize from the combo box on the page..
Javascript Variables:
None

maptips

Description:
The MapTips widget allows users to show dynamic or static maptips (tooltips) containing information pertinent to their application. The widget relies on an array of data stored as a Shared Resource. It will create an imagemap from the query results and place js to handle the dhmtl
Tag:

<CWC2 NAME="[string]" TYPE="MAPTIPS" VISIBLE="[string]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" LAYERTYPE="[string]" DEFAULTTEXT="[string]" WIDTH="[integer]" HEIGHT="[integer]" XOFFSET="[integer]" YOFFSET="[integer]" TOLERANCE="[integer]" BGCOLOR="[[#]RRGGBB]" BORDERCOLOR="[[#]RRGGBB]" ALPHA="[integer]" LINK="[TRUE|FALSE]" LINKURL="[string]" LINKUNIQUEID="[string]" PIXELX="[string]" PIXELY="[string]" STATUS="[string]" SHAREDRESOURCE="[string]"/>

Attributes:
The maptips tag has attributes from the Base Attributes, Icon Attributes, Label Attributes, and Button Attributes groups plus the following attributes:
LAYERTYPE
No description available.
DEFAULTTEXT
No description available.
WIDTH
No description available.
HEIGHT
No description available.
XOFFSET
No description available.
YOFFSET
No description available.
TOLERANCE
No description available.
BGCOLOR
No description available.
BORDERCOLOR
No description available.
ALHPA
No description available.
LINK
No description available.
LINKURL
No description available.
LINKUNIQUEID
No description available.
PIXELX
No description available.
PIXELY
No description available.
STATUS
No description available.
SHAREDRESOURCE
No description available.
Form Elements:
SHOW_MAPTIPS
No description available.
Javascript Functions:
SetMapTipsStatus()
No description available.
Javascript Variables:
None

mapunits

Description:
The MapUnits widget displays the current map units as a label on the page.
Tag:

<CWC2 NAME="[string]" TYPE="MAPUNITS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]"/>

Attributes:
The mapunits tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
WIDGETCLASS
The CSS class to control the style of the map units HTML INPUT text box. The default is CWCMapUnitClass.
WIDGETSTYLE
The CSS style to control the style of the map units HTML INPUT text box. The default is none.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

owtchart

Description:
OWTChartWidget is a widget that build a OWTChart url with specified parameters.
Tag:

<CWC2 NAME="[string]" TYPE="OWTCHART" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SHAREDRESOURCENAME="[string]" CHARTTYPE="[LINE|AREA|BAR|FLOATINGBAR|HILOCLOSE|PIE|HBAR|H2BAR]" VALS="[string]" WIDTH="[integer]" HEIGHT="[integer]" BGCOLOR="[string]" TRANSBG="[TRUE|FALSE]" LINECOLOR="[string]" GRID="[TRUE|FALSE]" GRIDCOLOR="[string]" IMAGETYPE="[GIF|PNG|JPEG|WBMP]" JPEG_QUALITY="[integer]" 3D="[TRUE|FALSE]" 3DDEPTH="[integer]" 3DANGLE="[integer]" PLOTCOLOR="[string]" SETCOLORS="[string]" EXTCOLORS="[string]" VOLCOLOR="[string]" TITLE="[string]" RTITLE="[string]" LTITLE="[string]" TITLECOLOR="[string]" TITLEFONT="[string]" XAXIS="[TRUE|FALSE]" XTITLE="[string]" XTITLEFONT="[string]" XTITLECOLOR="[string]" XLABELS="[string]" XLABELFONT="[string]" XLABELCOLOR="[string]" XLABELSPACING="[integer]" YAXIS="[TRUE|FALSE]" YSCALETYPE="[LINEAR|LOG]" YMIN="[integer]" YMAX="[integer]" YTITLE="[string]" YTITLEFONT="[string]" YTITLECOLOR="[string]" YLABELFONT="[string]" YLABELCOLOR="[string]" YAXIS2="[TRUE|FALSE]" YMIN2="[integer]" YMAX2="[integer]" YTITLE2="[string]" YTITLE2COLOR="[string]" YLABEL2FONT="[string]" YLABELFMT="[string]" YLABEL2FMT="[string]" PIEPCTTYPE="[NONE|ABOVE|BELOW|RIGHT|LEFT]" PIEPCTFMT="[string]" PIERADIUS="[integer]" PIELABELFONT="[string]" STACKTYPE="[DEPTH|SUM|BESIDE|LAYER]" BARWIDTH="[integer]" BARLABELS="[TRUE|FALSE]" BARLABELFMT="[string]" LINESTYLES="[string]" HLCSTYLE="[string]" HLCCAPWIDTH="[integer]"/>

Attributes:
The owtchart tag has attributes from the attributes from the Base Attributes group plus the following attributes:
SHAREDRESOURCENAME
No description available.
CHARTTYPE
No description available.
VALS
No description available.
WIDTH
No description available.
HEIGHT
No description available.
BGCOLOR
No description available.
TRANSBG
No description available.
LINECOLOR
No description available.
GRID
No description available.
GRIDCOLOR
No description available.
IMAGETYPE
No description available.
JPEG_QUALITY
No description available.
3D
No description available.
3DDEPTH
No description available.
3DANGLE
No description available.
PLOTCOLOR
No description available.
SETCOLORS
No description available.
EXTCOLORS
No description available.
VOLCOLOR
No description available.
TITLE
No description available.
RTITLE
No description available.
LTITLE
No description available.
TITLECOLOR
No description available.
TITLEFONT
No description available.
XAXIS
No description available.
XTITLE
No description available.
XTITLEFONT
No description available.
XTITLECOLOR
No description available.
XLABELS
No description available.
XLABELFONT
No description available.
XLABELCOLOR
No description available.
XLABELSPACING
No description available.
YAXIS
No description available.
YSCALETYPE
No description available.
YMIN
No description available.
YMAX
No description available.
YTITLE
No description available.
YTITLEFONT
No description available.
YTITLECOLOR
No description available.
YLABELFONT
No description available.
YLABELCOLOR
No description available.
YAXIS2
No description available.
YMIN2
No description available.
YMAX2
No description available.
YTITLE2
No description available.
YTITLE2COLOR
No description available.
YLABEL2FONT
No description available.
YLABELFMT
No description available.
YLABEL2FMT
No description available.
PIEPCTTYPE
No description available.
PIEPCTFMT
No description available.
PIERADIUS
No description available.
PIELABELFONT
No description available.
STACKTYPE
No description available.
BARWIDTH
No description available.
BARLABELS
No description available.
BARLABELFMT
No description available.
LINESTYLES
No description available.
HLCSTYLE
No description available.
HLCCAPWIDTH
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

panmap

Description:
The PanMap widget is a navigation tool that allows the user to drag the map image to recenter it at a given location.
Tag:

<CWC2 NAME="[string]" TYPE="PANMAP" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]"/>

Attributes:
The panmap tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of the pan image tag. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
PanMapWInit()
initialize the Drag - Pan tool
PanMapWMouseMove()
handle the user moving the mouse
PanMapWMouseUp()
handle the user pressing the mouse button.
PanMapWMouseDown()
handle the user pressing the mouse button
PanMapWDragEnd()
stop drag-panning the map
PanMapWDragStart()
start dragging the map
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.
gnPanWFirstPointX
the X coordinate of the point at which the drag pan started
gnPanWFirstPointY
the Y coordinate of the point at which the drag pan started

printwidget

Description:
The PrintPopup widget displays a popup dialog that allows the user to create a printable version of the map with some additional cartographic annotations.
Tag:

<CWC2 NAME="[string]" TYPE="PRINTWIDGET" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" TEMPLATE="[string]"/>

Attributes:
The printwidget tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups plus the following attribute:
TEMPLATE
The path to a legend template file that controls the styling of the legend in the printed map.
Form Elements:
sid
No description available.
Javascript Functions:
clickPrintPopup()
callback function for the user clicking the Print button
Javascript Variables:
None

projectionlabel

Description:
The ProjectionLabel widget displays the name of the current projection from those defined in a common resource called "projection". The structure of the common resource is: <projection name="human name" srs="epsg code"/>. This structure is shared with the projection selector widget if used.
Tag:

<CWC2 NAME="[string]" TYPE="PROJECTIONLABEL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]" TEXTFIELDSIZE="[0 < integer]"/>

Attributes:
The projectionlabel tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
WIDGETCLASS
The CSS class to control the style of the projection label text. The default is CWCProjectionLabelWidgetClass.
WIDGETSTYLE
The CSS style to control the style of the projection label text. The default is none.
TEXTFIELDSIZE
The size in characters to make the projection label input when in JSAPI mode.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

projectionselector

Description:
The ProjectionSelector widget allows the user to select a new projection for the current context from those defined in a common resource called "projection". The structure of the common resource is: <projection name="human name" srs="epsg code"/>. This structure is shared with the projection label widget if used.
Tag:

<CWC2 NAME="[string]" TYPE="PROJECTIONSELECTOR" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The projectionselector tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups.
Form Elements:
MAP_PROJECTION
The current projection of the map.
Javascript Functions:
clickProjectionSelectorPopup()
callback for the user clicking the projection selection button
applyProjection()
callback to apply a change in projection.
getProjectionList()
return the list of projections that can be used in this application.
getCurrentProjection()
return the current projection of the map.
Javascript Variables:
None

query

Description:
The Query widget displays a GetFeatureInfo query result for each visible layer at the point the user clicks.
Tag:

<CWC2 NAME="[string]" TYPE="QUERY" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" RADIUS="[1 < integer]" MAXFEATURES="[1 < integer]"/>

Attributes:
The query tag has attributes from the Base Attributes, Icon Attributes, Popup Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of the pan image tag. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
RADIUS
The number of pixels to search around the clicked location for features. This is a CubeWerx-specific extension to the current WMS GetFeatureInfo request and may not be supported by all servers, althought it should at least be ignored. The default is 3.
MAXFEATURES
The number of features to limit a GetFeatureInfo response to. This is the limit for each layer, it is not cumulative. This is a CubeWerx-specific extension to the WMS GetFeatureInfo request and may not be supported by all servers, although it should be at least ignored. The default is 5.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
QueryWMouseClick()
handle the user clicking the mouse on the map.
QueryWMouseMove()
handle the user moving the mouse over the map.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

quickzoom

Description:
The QuickZoom widget defines a list of known extents with human-readable names that the user can select to zoom to quickly. The format for the sub-tags is: <view name="Human Name" minx="-2200000" miny="-712631" maxx="3072800" maxy="3840000" SRS="epsg:42304"/> where the SRS is the projection that the coordinates are defined in. There may be any number of views defined.
Tag:

<CWC2 NAME="[string]" TYPE="QUICKZOOM" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" TITLE="[string]"/>

Attributes:
The quickzoom tag has attributes from the Base Attributes, and Label Attributes groups plus the following attribute:
TITLE
The text to display when nothing is selected.
Form Elements:
NAV_QUICKZOOM
the coordinates to zoom to from the quickzoom widget
SEL_QUICKZOOM
A copy of the currently selected quickzoom value
Javascript Functions:
changeQuickZoom()
callback function for handling the user selecting a new entry in the QuickZoom selector
Javascript Variables:
None

roimanager

Description:
The ROIManager widget allows the user to draw multiple ROIs
Tag:

<CWC2 NAME="[string]" TYPE="ROIMANAGER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" MODE="[string]" EDGECOLOR="[[#]RRGGBB]" EDGEWIDTH="[1 < integer]" FILLCOLOR="[[#]RRGGBB]" FILLOPACITY="[0 < integer < 100]" FILLROI="[TRUE|FALSE]"/>

Attributes:
The roimanager tag has attributes from the attributes from the Base Attributes group plus the following attributes:
MODE
The default mode in which the ROI manager will start when the application is started. The mode can be changed at run time by
EDGECOLOR
The (hex) color to render the edges of the ROI as it is being drawn. The edge is (normally) drawn without transparency, but that depends on the tool that does the drawing.
EDGEWIDTH
The width in pixels to draw the edge of the ROI. The edge is (normally) drawn without transparency, but that depends on the tool that does the drawing.
FILLCOLOR
The (hex) color to fill the ROI with, if a fill is desired.
FILLOPACITY
The opacity of the ROI fill, a percent between 0 and 100. 0 is fully transparent and 100 is fully opaque.
FILLROI
A boolean value to determine if the ROI should be drawn with a fill or not. This currently only affects the ROI as it is being drawn.
Form Elements:
sid
No description available.
ROI_MODE
The current mode of the ROI manager.
Javascript Functions:
ROIManagerInit()
Called during page load to initialize the javascript ROI manager.
ROIManagerCreateDHTMLLayers()
Creates the DHTML layers used by the ROI manager to display the current ROI selection.
Javascript Variables:
gROIRenderer
The URL to use to render an ROI

roimanagermode

Description:
The ROIManagerMode widget allows the user to set the current mode of the ROI Manager.
Tag:

<CWC2 NAME="[string]" TYPE="ROIMANAGERMODE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" MODE="[string]"/>

Attributes:
The roimanagermode tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attribute:
MODE
The mode that this widget will set the ROI manager to when it is clicked.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

roimode

Description:
The ROIMode (region of interest) widget is an invisible widget that changes the operation mode of various navtools widgets. When it is present, the user first drags in the map to create a selection and then picks a tool to operate on that region.
Tag:

<CWC2 NAME="[string]" TYPE="ROIMODE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TOOLSET="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]"/>

Attributes:
The roimode tag has attributes from the attributes from the Base Attributes group plus the following attributes:
TOOLSET
No description available.
DEFAULT
No description available.
WIDGETSTYLE
No description available.
MAPID
No description available.
Form Elements:
ROI_MODE
The current mode of the ROI manager.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

roirectangletool

Description:
The ROIRectangleTool widget allows the user to draw a rectangular region of interest on the map interface.
Tag:

<CWC2 NAME="[string]" TYPE="ROIRECTANGLETOOL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The roirectangletool tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups.
Form Elements:
sid
No description available.
NAV_CMD
The last command that was used to interact with the map
Javascript Functions:
ROIRectToolInit()
Called during page load to initialize the ROI Rectangle tool.
ROIRectToolCreateDHTMLLayers()
Creates the DHTML layers used by the ROI Rectangle tool.
ROIRectToolInitObjects()
No description available.
ROIRectToolStartZoomBox()
Called when the user has pressed the mouse button to start defining an ROI.
ROIRectToolUpdateZoomBox()
Called when the user drags the mouse to update the ROI.
ROIRectToolStopZoomBox()
Called when the user releases the mouse button to commit an ROI to the ROI manager.
ROIRectToolMouseDown()
Called when the user clicks the mouse button.
ROIRectToolMouseUp()
Called when the user releases the mouse button
ROIRectToolGetMousePosition()
Used to retrieve the current mouse position during ROI Rectangle operations
ROIRectToolMouseMove()
Called when the user moves the mouse
Javascript Variables:
gROIToolmouseX
The current X location of the mouse
gROIToolmouseY
The current X location of the mouse
gROIRectToolx1
The first mouse X position for the ROI
gROIRectTooly1
The first mouse Y position for the ROI
gROIRectToolx2
The second mouse X position for the ROI
gROIRectTooly2
The second mouse X position for the ROI
gROIRectDragging
Used by the ROI Rectangle tool to track if the user is currently dragging the mouse to define an ROI.
goROIRectObj
The current ROI rectangle if the user is creating one.
gROIRectBoxTop
The top layer of the ROI Rectangle Tool's DHTML layers.
gROIRectBoxLeft
The left layer of the ROI Rectangle Tool's DHTML layers.
gROIRectBoxBottom
The bottom layer of the ROI Rectangle Tool's DHTML layers.
gROIRectBoxRight
The right layer of the ROI Rectangle Tool's DHTML layers.
gROIRectBoxFill
The fill layer of the ROI Rectangle Tool's DHTML layers.

roiremoveall

Description:
The ROIRemoveAll widget allows the user to remove all ROIs from the ROI manager.
Tag:

<CWC2 NAME="[string]" TYPE="ROIREMOVEALL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The roiremoveall tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

roiremovelast

Description:
The ROIRemoveLast widget allows the user to remove the last ROI added to the ROI manager.
Tag:

<CWC2 NAME="[string]" TYPE="ROIREMOVELAST" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The roiremovelast tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

recenter

Description:
The Recenter widget allows the user to recenter the map at the clicked location.
Tag:

<CWC2 NAME="[string]" TYPE="RECENTER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]"/>

Attributes:
The recenter tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of the pan image tag. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

ruler

Description:
The Ruler widget is a tool that allows the user to interactively drawn line segments on the map and display the cumulative distance of the segments in ground units.
Tag:

<CWC2 NAME="[string]" TYPE="RULER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" UNITS="[INCHES|FEET|MILES|METERS|KILOMETERS|DEGREES|PIXELS]" NUMBEROFPOINTS="[0 < integer]" SPACEBETWEENPOINTS="[0 < integer]"/>

Attributes:
The ruler tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of the pan image tag. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
UNITS
The units to display the ruler results in.
NUMBEROFPOINTS
The maximum number of points to make available to the ruler tool. More points means a longer distance can be measured, but increasing the burden on the client computer and can slow it down since each point is represented by a DHTML layer. The default is 100.
SPACEBETWEENPOINTS
Distance in pixels between the points drawn when using the ruler tool. The default value is 15.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
RulerInit()
Initialize the ruler objects
RulerWMouseMove()
handle the user moving the mouse over the map.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.
gRulergblPixelSize
The size in ground units of a single pixel.
gRulermapMinX
The minimum X value in geographic coordinates in the map.
gRulermapMaxY
The maximum X value in geographic coordinates in the map.
gRulerMapImgOX
The X location of the map image
gRulerMapImgOY
The Y location of the map image
gRulerCurrentTool
the current tool in use (the ruler is the only tool right now)
gRulerfirstClickDist
The distance to the first click of the mouse button.
gRulercMapWidth
The width in pixels of the map image
gRulercMapHeight
The height in pixels of the map image
gRulerg_digitTool
not used
gRulerg_end_digit
not used
gRulerareaMode
controls if the ruler is in line or area mode.
gRulerareaString
the string to display for the area defined by the ruler lines
gRulersUnits
The units that the ruler is measuring distance in
gRulerHideLayers
layers to hide that are in use by the ruler
gRulerFirstUse
track if this is the first time the ruler has been used
gRulerNbPoints
The number of points to make available to the ruler
gRulerUserUnit
The distance unit that the ruler displays results in.
gRulerSpaceBetweenPoints
The distance to place between points

rulerresult

Description:
The RulerResults widget allows the results of the users distance measurements to be displayed in a stylable HTML INPUT box.
Tag:

<CWC2 NAME="[string]" TYPE="RULERRESULT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" WIDGETCLASS="[string]" WIDGETSTYLE="[string]" TEXTFIELDSIZE="[0 < integer]"/>

Attributes:
The rulerresult tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
WIDGETCLASS
The CSS class to control the style of the HTML INPUT box. The default is CWCRulerResultWidgetClass.
WIDGETSTYLE
The CSS style to control the style of the HTML INPUT box. The default is none
TEXTFIELDSIZE
The size in characters of the HTML INPUT box to display the position in.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

sldcache

Description:
The SLDCache widget gets the contents of a mapfile layer and adds an array to a SharedResource widget in a format suitable for generating tables for SECT. The layer to process must be passed in the url as nlayerindex. This uses and requires a Table widget for output.
Tag:

<CWC2 NAME="[string]" TYPE="SLDCACHE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SHAREDRESOURCENAME="[string]"/>

Attributes:
The sldcache tag has attributes from the attributes from the Base Attributes group plus the following attribute:
SHAREDRESOURCENAME
No description available.
Form Elements:
nlayerindex
No description available.
nstyles
No description available.
SLD_TABLE_COMMAND
No description available.
Javascript Functions:
SetSLDTableCommand()
No description available.
loadSymbolizer()
No description available.
SECTCallbackFunc()
No description available.
Javascript Variables:
None

sqlquery

Description:
SQLQueryWidget is a simple widget that simply return the return value of a given SQL query.
Tag:

<CWC2 NAME="[string]" TYPE="SQLQUERY" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SQLQUERY="[string]" SERVER="[string]" DATABASE="[string]" USERNAME="[string]" PASSWORD="[string]" DBTYPE="[string]" SHAREDRESOURCENAME="[string]" SAVEQUERY="[TRUE|FALSE]"/>

Attributes:
The sqlquery tag has attributes from the attributes from the Base Attributes group plus the following attributes:
SQLQUERY
No description available.
SERVER
No description available.
DATABASE
No description available.
USERNAME
No description available.
PASSWORD
No description available.
DBTYPE
No description available.
SHAREDRESOURCENAME
No description available.
SAVEQUERY
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

scale

Description:
The Scale widget displays an HTML INPUT box that the user can view the current map scale and enter a scale to zoom to. The Scale widget needs to be combined with another widget that actually causes the map to refresh, such as an UpdateMap widget.
Tag:

<CWC2 NAME="[string]" TYPE="SCALE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" SIZE="[1 < integer]"/>

Attributes:
The scale tag has attributes from the Base Attributes, and Label Attributes groups plus the following attribute:
SIZE
The size in characters of the scale HTML INPUT box. The default is 8.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

scalezoom

Description:
The ScaleZoom widget displays a series of preset scale buttons that the user can use to quickly zoom in or out at predefined intervals. The intermediate scales are defined using sub-tags as follows: <ZOOMVALUE SCALE="42000000" IMAGE="images/zoom_h_1.gif" IMAGEWIDTH="14" IMAGEHEIGHT="22"/>. Any number of zoomvalues are allowed, but there is likely a practical limit depending on the images used.
Tag:

<CWC2 NAME="[string]" TYPE="SCALEZOOM" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" INCREASEIMAGE="[string]" DECREASEIMAGE="[string]" INCREASETO="[integer]" DECREASETO="[integer]" ORIENTATION="[HORIZONTAL|VERTICAL]" CURRENTIMAGE="[string]" PUTTABLETAGS="[TRUE|FALSE]"/>

Attributes:
The scalezoom tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
No description available.
WIDGETSTYLE
The CSS style to apply to this widget.
MAPID
The ID of the map to which this widget should apply its navigation.
INCREASEIMAGE
The image to use for the scale zoom increase button.
DECREASEIMAGE
The image to use for the scale zoom decrease button.
INCREASETO
No description available.
DECREASETO
No description available.
ORIENTATION
Controls the orientation of the images that make up the scale zoom widget.
CURRENTIMAGE
No description available.
PUTTABLETAGS
No description available.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
SCALE_ZOOM
the scale to zoom to if the user changes the scale value and updates the map
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
clickScaleValue()
callback function for the user changing the scale value
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

scalebar

Description:
Display a scalebar image for the current extents of the current context.
Tag:

<CWC2 NAME="[string]" TYPE="SCALEBAR" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" WIDTH="[0 < integer]" HEIGHT="[0 < integer]" INTERVALS="[0 < integer]" UNITS="[INCHES|FEET|MILES|METERS|KILOMETERS]" COLOR="[RRR GGG BBB]" BACKGROUNDCOLOR="[RRR GGG BBB]" OUTLINECOLOR="[RRR GGG BBB]" LABELCOLOR="[RRR GGG BBB]" LABELSIZE="[TINY|SMALL|MEDIUM|LARGE|GIANT]" TRANSPARENT="[TRUE|FALSE]" IMAGETYPE="[string]"/>

Attributes:
The scalebar tag has attributes from the attributes from the Base Attributes group plus the following attributes:
WIDTH
The width in pixels of the scalebar image to draw.
HEIGHT
The height to draw the scalebar image. Note that this includes the text labels.
INTERVALS
The number of intervals to include in the scalebar. The default is 5.
UNITS
The units to draw the scalebar in. The default is kilometers.
COLOR
The color to draw the foreground of the scalebar with. The default is white, "255 255 255".
BACKGROUNDCOLOR
The background color to draw the scalebar with. The default is black, "0 0 0".
OUTLINECOLOR
The outline color to draw the scalebar with. The default is black, "0 0 0";
LABELCOLOR
The color to draw the labels with. The default is black, "0 0 0".
LABELSIZE
The size of the text to draw the labels with. The default is SMALL.
TRANSPARENT
Controls the transparency of the scalebar image. The default is true.
IMAGETYPE
The type of the image to display the scalebar as. This is useful if the main map is PNG24 but the scalebar should be displayed in a format that browsers can display transparency for (like PNG).
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

selectlayers

Description:
The purpose of the Select Layers widget is to provide a mechanism via javascript by which layers can be marked as selected for other widgets. This could be used for changing layer order, querying or filtering a layer, or extracting from a specific layer. The widget is most useful when used with an appropriate HTML legend and the LegendTemplate widget
Tag:

<CWC2 NAME="[string]" TYPE="SELECTLAYERS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The selectlayers tag has attributes from the attributes from the Base Attributes group.
Form Elements:
SELECTED_LAYERS
Contains the layers selected by the user.
Javascript Functions:
CWCSelectLayer()
Used to select a layer. Pass the layer name and a boolean value of true if only a single selection is allowed or false if multiple selections are allowed.
Javascript Variables:
None

sessionexpired

Description:
SessionExpiredWidget is a simple widget that simply redirect to a template or a URL or display a text if session expire.
Tag:

<CWC2 NAME="[string]" TYPE="SESSIONEXPIRED" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" URL="[string]" TEMPLATE="[string]" TEXT="[string]"/>

Attributes:
The sessionexpired tag has attributes from the attributes from the Base Attributes group plus the following attributes:
URL
The URL to redirect to if the session expires.
TEMPLATE
The template to load if the session expires
TEXT
Text to display if the session expires
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

sharedresource

Description:
SharedResource is an invisible widget that defines some set of values that are to be shared among one or more widgets. This was implemented to share projection information between the ProjectionSelector and ProjectionLabel widgets, but could be used for any widgets that might need it. The format of subtags is arbitrary and depends on the widgets that are using the information.
Tag:

<CWC2 NAME="[string]" TYPE="SHAREDRESOURCE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" ENABLEJS="[string]"/>

Attributes:
The sharedresource tag has attributes from the attributes from the Base Attributes group plus the following attribute:
ENABLEJS
Enable outputting of the values in this sharedresource as a javascript sharedresource. There are strict formatting rules for maszContents in order to use ENABLEJS. Please see comments in SharedResource.widget.php for formatting rules.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

table

Description:
The Table widget provides the functionality to display shared resource as Table.
Tag:

<CWC2 NAME="[string]" TYPE="TABLE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SHAREDRESOURCENAME="[string]" SORTBY="[string]" START="[integer]" COUNT="[integer]" REVERSE="[TRUE|FALSE]" NEXTBUTTON="[string]" PREVBUTTON="[string]"/>

Attributes:
The table tag has attributes from the attributes from the Base Attributes group plus the following attributes:
SHAREDRESOURCENAME
No description available.
SORTBY
No description available.
START
No description available.
COUNT
No description available.
REVERSE
No description available.
NEXTBUTTON
No description available.
PREVBUTTON
No description available.
Form Elements:
SORTBY_
No description available.
START_
No description available.
COUNT_
No description available.
REVERSE_
No description available.
Javascript Functions:
SortBy_()
No description available.
NextPage_()
No description available.
PrevPage_()
No description available.
Javascript Variables:
None

timefilter

Description:
The TimeFilter widget allows the user to create a filter on the layers in the current context using a time value or range in accordance with the WMS specification.
Tag:

<CWC2 NAME="[string]" TYPE="TIMEFILTER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" INPUTCLASS="[string]" INPUTSTYLE="[string]" LABELCLASS="[string]" LABELSTYLE="[string]" EARLIESTYEAR="[string]" SHOWTIME="[TRUE|FALSE]"/>

Attributes:
The timefilter tag has attributes from the attributes from the Base Attributes group plus the following attributes:
INPUTCLASS
The CSS class to control the appearance of the time filter input boxes. The default is none.
INPUTSTYLE
The CSS style to control the appearance of the time filter input boxes. The default is none.
LABELCLASS
The CSS class to control the appearance of labels for this widget. The default is none.
LABELSTYLE
The CSS style to control the appearance of labels for this widget. The default is none.
EARLIESTYEAR
The earliest year to include in the year selector box.
SHOWTIME
Control the display of time fields. The default is false so times are not available.
Form Elements:
sid
No description available.
Javascript Functions:
onloadTimeFilter()
called during the page onload function to initialize the time filter widget
monthClicked()
callback when the month value is changed.
Javascript Variables:
None

title

Description:
TitleWidget is a simple widget that simply creates a label on the output page. It is meant primarily as a sample of how to implement a widget and not necessarily one that would really be used.
Tag:

<CWC2 NAME="[string]" TYPE="TITLE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]"/>

Attributes:
The title tag has attributes from the Base Attributes, and Label Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

updatemap

Description:
The UpdateMap widget allows the user to refresh the current page without performing any other navigation. This is useful for sending values in other widgets to be processed that do not have some more direct form of navigation, such as the Scale widget.
Tag:

<CWC2 NAME="[string]" TYPE="UPDATEMAP" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]"/>

Attributes:
The updatemap tag has attributes from the Base Attributes, and Text Button Attributes groups.
Form Elements:
UPDATE_MAP
set by the UpdateMap widget when the update map button is clicked
Javascript Functions:
clickUpdateMap()
callback function for the user clicking the "Update Map" button.
Javascript Variables:
None

uploadcontext

Description:
The ContextUpload widget allows the user to upload a Context file from their local hard drive or from a URL to the current application. This widget does not limit the user from attempting to upload contexts if the CWC2 service instance is configured not to allow it. The user will receive an error message after this widget attempts to upload the context.
Tag:

<CWC2 NAME="[string]" TYPE="UPLOADCONTEXT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The uploadcontext tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups.
Form Elements:
sid
No description available.
Javascript Functions:
clickContextUpload()
callback function for the user clicking the "upload context" button
OpenContextCB()
callback function for the Open Context dialog
Javascript Variables:
None

varsharedresource

Description:
VarSharedResourceWidget is a simple widget that simply return the value from a SharedResource variable.
Tag:

<CWC2 NAME="[string]" TYPE="VARSHAREDRESOURCE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SRVAR="[string]" PREFIX="[string]" SUFIX="[string]"/>

Attributes:
The varsharedresource tag has attributes from the attributes from the Base Attributes group plus the following attributes:
SRVAR
No description available.
PREFIX
No description available.
SUFIX
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

varurl

Description:
VarURLWidget is a simple widget that simply return the value from a URL variable.
Tag:

<CWC2 NAME="[string]" TYPE="VARURL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" URLVAR="[string]" PREFIX="[string]" SUFIX="[string]" KEEPSTATE="[TRUE|FALSE]"/>

Attributes:
The varurl tag has attributes from the attributes from the Base Attributes group plus the following attributes:
URLVAR
The name of the URL variable.
PREFIX
No description available.
SUFIX
No description available.
KEEPSTATE
Control if a URL variable maintains state or not (i.e. propogates to the next page).
Form Elements:
None
Javascript Functions:
None
Javascript Variables:
None

wmscache

Description:
The WMSCache widget gets the contents (servers and layers) and places it inside a SharedResource widget in a format suitable for accessing via a javascript- enabled SharedResource. It can either list the servers or list the layers available in a single server.
Tag:

<CWC2 NAME="[string]" TYPE="WMSCACHE" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SHAREDRESOURCENAME="[string]" WMSCACHEDIRECTORY="[string]" LISTSERVERS="[TRUE|FALSE]" LISTLAYERS="[TRUE|FALSE]" SERVERIMAGE="[string]" THEMEIMAGE="[string]" THEMEOPENIMAGE="[string]" LAYERIMAGE="[string]"/>

Attributes:
The wmscache tag has attributes from the attributes from the Base Attributes group plus the following attributes:
SHAREDRESOURCENAME
The name of the SharedResource to populate with output from this widget.
WMSCACHEDIRECTORY
The directory to get the wms cached capabilities from. May be relative or absolute. If relative, then it is considered relative to the location of the template containing this widget.
LISTSERVERS
Control the outputting of servers from the WMS Cache. If true, then all servers will be copied into the selected SharedResource. If false, then only the selected server will be copied.
LISTLAYERS
Control the outputting of layers from the WMS Cache. If true, then all layers for all selected servers will be copied into the selected SharedResource.
SERVERIMAGE
The image to associate with servers.
THEMEIMAGE
The name of the default image to use with themes (a group of layers). WMSCache will try to get an icon from the style associated with a theme and will use this image only if it cannot find a valid style.
THEMEOPENIMAGE
The name of the default image to use with themes that have been expanded. This will be overwritten if the theme has a valid style.
LAYERIMAGE
The name of the default image to use with layers. WMSCache will try to get an icon from the style associated with a layer and will use this image only if it cannot find a valid style.
Form Elements:
No description available.
Javascript Functions:
None
Javascript Variables:
None

xmlrpc

Description:
XMLRPC is a simple widget that simply returns the value from a URL variable.
Tag:

<CWC2 NAME="[string]" TYPE="XMLRPC" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" URI="[string]" HOST="[string]" METHOD="[string]" PORT="[integer]" PARAMS="[string]" SEPARATOR="[string]" RESULT="[string]" CACHERESULT="[TRUE|FALSE]"/>

Attributes:
The xmlrpc tag has attributes from the attributes from the Base Attributes group plus the following attributes:
URI
No description available.
HOST
No description available.
METHOD
No description available.
PORT
No description available.
PARAMS
No description available.
SEPARATOR
No description available.
RESULT
No description available.
CACHERESULT
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
None
Javascript Variables:
None

xmlthemelegend

Description:
The XMLThemeLegend widget provides generic legend control capabilities for Chameleon applications. The widget is controlled by a template file and a theme file that describe how layers in the current context should be presented to the user.
Tag:

<CWC2 NAME="[string]" TYPE="XMLTHEMELEGEND" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]"/>

Attributes:
The xmlthemelegend tag has attributes from the attributes from the Base Attributes group.
Form Elements:
CONTEXTSELECTOR
Used by XMLThemeLegend to avoid processing URL values on first load.
CONTEXT
The currently loaded context
TEMPLATE
The current template that is being displayed
CONTEXTSELECTOR_CONTEXT_CHANGED
Used by XMLThemeLegend to determine if the current context has changed.
CONTEXTSELECTOR_LAYERS_ON
Used by XMLThemeLegend to track which layers are currently visible.
CONTEXTSELECTOR_ALL_LAYERS
Used by XMLThemeLegend to track all layers that are currently being controlled.
CONTEXTSELECTOR_TEMPLATE
Used by XMLThemeLegend to remember the name of the current template.
Javascript Functions:
ContextSelector_initialize()
Called by the XMLThemeLegend to initialize all themes and groups.
ContextSelector_openGroupInfo()
Called by the XMLThemeLegend to display metadata about layers in a group.
ContextSelector_openThemeInfo()
Called by the XMLThemeLegend to display metadata about all groups and layers in a theme.
ContextSelector_SetThemeStatus()
Called by the XMLThemeLegend to toggle the state of a theme.
ContextSelector_SetGroupStatus()
Called by the XMLThemeLegend to toggle the state of a group of layers.
ContextSelected()
Called by the XMLThemeLegend when a new context has been requested by the user.
Javascript Variables:
gContextSelectorManager
The global context selector manager.

zoomalllayers

Description:
The ZoomAllLayers widget is a navigation tool that allows the user to zoom to the full extents of the original context.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMALLLAYERS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]"/>

Attributes:
The zoomalllayers tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of this widget. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

zoomfactor

Description:
The ZoomFactor widget allows the user to enter a zoom factor that is used when the user zooms in at a point. This is ignored if the user zooms to a rectangular region. It contains the ability to restrict the zoom factor to a range of values.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMFACTOR" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" MINIMUMFACTOR="[integer]" MAXIMUMFACTOR="[integer]" DEFAULTFACTOR="[integer]" TEXTFIELDSIZE="[1 < integer]"/>

Attributes:
The zoomfactor tag has attributes from the Base Attributes, and Label Attributes groups plus the following attributes:
MINIMUMFACTOR
The minimum zoom factor. The default is 2.
MAXIMUMFACTOR
The maximum zoom factor. The default is no maximum.
DEFAULTFACTOR
Controls whether this widget is the default selected navigation tool.
TEXTFIELDSIZE
The size of the HTML INPUT text box. The default is 2.
Form Elements:
sid
No description available.
Javascript Functions:
changeZoomFactor()
callback function for handling the user changing the zoom factor (used for validation)
validateInteger()
validate an integer value.
Javascript Variables:
None

zoomin

Description:
The ZoomIn widget is a navigation tool that allows the user to zoom in on the map image using either a single point click or by dragging a zooming box on the map.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMIN" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]" MINIMUMZOOMRECTANGLE="[1 < integer]"/>

Attributes:
The zoomin tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of this widget. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
MINIMUMZOOMRECTANGLE
The minimum zooming rectangle that will still be considered a rectangle. Rectangles smaller than this will be considered a point zoom. The default is 5.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

zoomout

Description:
The ZoomOut widget allows the user to zoom out of the map from a given point using the current zoom factor.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMOUT" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" DEFAULT="[TRUE|FALSE]" WIDGETSTYLE="[string]" MAPID="[string]"/>

Attributes:
The zoomout tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
DEFAULT
Controls whether this widget is the default selected navigation tool.
WIDGETSTYLE
From NavTool, this is the CSS class to control the style of this widget. Default is none.
MAPID
The ID of the map to which this widget should apply its navigation.
Form Elements:
NAV_CMD
The last command that was used to interact with the map
NAV_ALLOW_RECTANGLE
Tracks whether the current navigation tool uses a rubber-banding box or not.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
NavSetActiveTool()
set the active navigation tool for a particular group of tools
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

zoomselectedlayers

Description:
No description available. Please set this description in the constructor of this class.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMSELECTEDLAYERS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The zoomselectedlayers tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups.
Form Elements:
NAV_ZOOM
the zoom factor
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickZoomSelectedLayers()
callback function for the user clicking the "Zoom to Selected Layers" button
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

zoomvisiblelayers

Description:
No description available. Please set this description in the constructor of this class.
Tag:

<CWC2 NAME="[string]" TYPE="ZOOMVISIBLELAYERS" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The zoomvisiblelayers tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups.
Form Elements:
NAV_ZOOM
the zoom factor
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickZoomVisibleLayers()
callback function for the user clicking the "Zoom to Visible Layers" button
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.

cwcjsapi

Description:
The CWCJSAPI Widget provides a javascript API to the CWC core architecture. This provides an application that runs almost entirely on the client side, with very few 'submits' of the page. It also provides the application developer with a javascript API to access and change the state of the Context.
Tag:

<CWC2 DEBUG="[TRUE|FALSE]"/>

Attributes:
The cwcjsapi tag has no common attributes plus the following attribute:
DEBUG
Set to TRUE to see the JSAPI hidden layer's input box to assist in debugging errors only.
Form Elements:
CONTEXT
The currently loaded context
Javascript Functions:
None
Javascript Variables:
goCWCJSAPI
The global JSAPI object.

downloadsld

Description:
The SLDDownloadWidget allows the user to download the current layers or layer of the map as an SLD document.
Tag:

<CWC2 NAME="[string]" TYPE="DOWNLOADSLD" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" singlelayer="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The downloadsld tag has attributes from the Base Attributes, Popup Attributes, Label Attributes, and Text Button Attributes groups plus the following attribute:
singlelayer
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
clickSLDDownload()
No description available.
Javascript Variables:
None

roicircletool

Description:
The ROICircleTool widget allows the user to draw a circular region of interest on the map interface.
Tag:

<CWC2 NAME="[string]" TYPE="ROICIRCLETOOL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" NUMBEROFPOINTS="[0 < integer]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The roicircletool tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attribute:
NUMBEROFPOINTS
No description available.
Form Elements:
sid
No description available.
NAV_CMD
The last command that was used to interact with the map
ROI_TOOL_LOCKED
No description available.
Javascript Functions:
ROICircleToolInit()
No description available.
ROICircleToolCreateDHTMLLayers()
No description available.
ROICircleToolInitObjects()
No description available.
ROICircleToolStartZoomBox()
No description available.
ROICircleToolUpdateZoomBox()
No description available.
ROICircleToolStopZoomBox()
No description available.
ROICircleToolMouseDown()
No description available.
ROICircleToolMouseUp()
No description available.
ROICircleToolGetMousePosition()
No description available.
ROICircleToolMouseMove()
No description available.
ROICircleToolUnlockTool()
No description available.
Javascript Variables:
gROIToolmouseX
The current X location of the mouse
gROIToolmouseY
The current X location of the mouse
gROICircleToolx1
No description available.
gROICircleTooly1
No description available.
gROICircleToolx2
No description available.
gROICircleTooly2
No description available.
gROICircleDragging
No description available.
goROICircleObj
No description available.
gROICircleCenter
No description available.
gROICircleLayer1
No description available.
gROICircleLayer2
No description available.
gROICircleLayer3
No description available.
gROICircleLayer4
No description available.
gROICircleLayer5
No description available.
gROICircleLayer6
No description available.
gROICircleLayer7
No description available.
gROICircleLayer8
No description available.
gROICircleLayer9
No description available.
gROICircleLayer10
No description available.
gROICircleLayer11
No description available.
gROICircleLayer12
No description available.

roipolygontool

Description:
The ROIPolygonTool widget allows the user to draw a circular region of interest on the map interface.
Tag:

<CWC2 NAME="[string]" TYPE="ROIPOLYGONTOOL" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" NUMBEROFPOINTS="[0 < integer]" POINTSPACING="[0 < integer]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]"/>

Attributes:
The roipolygontool tag has attributes from the Base Attributes, Icon Attributes, and Button Attributes groups plus the following attributes:
NUMBEROFPOINTS
No description available.
POINTSPACING
No description available.
Form Elements:
sid
No description available.
NAV_CMD
The last command that was used to interact with the map
ROI_TOOL_LOCKED
No description available.
Javascript Functions:
ROIPolygonToolInit()
No description available.
ROIPolygonToolInitObjects()
No description available.
ROIPolygonToolDrawFloater()
No description available.
ROIPolygonToolMouseDown()
No description available.
ROIPolygonToolMouseUp()
No description available.
ROIPolygonToolGetMousePosition()
No description available.
ROIPolygonToolMouseMove()
No description available.
ROIPolygonDrawNode()
No description available.
ROIPolygonToolUnlockTool()
No description available.
ROIPolygonToolKeyPress()
No description available.
ROIPolygonToolClosePolygon()
No description available.
ROIPolygonToolDrawLine()
No description available.
ROIPolygonToolClearPolygon()
No description available.
Javascript Variables:
gROIToolmouseX
The current X location of the mouse
gROIToolmouseY
The current X location of the mouse
gROIPolygonToolx1
No description available.
gROIPolygonTooly1
No description available.
gROIPolygonToolx2
No description available.
gROIPolygonTooly2
No description available.
gROIPolygonOpen
No description available.
goROIPolygonObj
No description available.
gaROIPolygonObj
No description available.
gaszPolygonDivPointNames
No description available.
gaszPolygonDivNodeNames
No description available.
goFloaterLine
No description available.
gnROIPolygonPointSpacing
No description available.
gnInitialROIPolygonPointSpacing
No description available.

stylemanager

Description:
The Style manager widget gets the contents of a mapfile class and adds an array to a SharedResource widget in a format suitable for generating tables for SECT. The class to process must be passed in the url as nclassindex. This uses and requires a Table widget for output.
Tag:

<CWC2 NAME="[string]" TYPE="STYLEMANAGER" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" SHAREDRESOURCENAME="[string]"/>

Attributes:
The stylemanager tag has attributes from the attributes from the Base Attributes group plus the following attribute:
SHAREDRESOURCENAME
No description available.
Form Elements:
nlayerindex
No description available.
nclassindex
No description available.
nstyles
No description available.
SLD_TABLE_COMMAND
No description available.
template
No description available.
Javascript Functions:
SetSLDTableCommand()
No description available.
SymbolizerCallback()
No description available.
Javascript Variables:
bDirty
No description available.

uploadsld

Description:
The SLDUpload widget allows the user to upload a SLD file from their local hard drive or from a URL to the current application.
Tag:

<CWC2 NAME="[string]" TYPE="UPLOADSLD" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" singlelayer="[TRUE|FALSE]" TEXTBUTTONCOLOR="[[#]RRGGBB]" TEXTBUTTONBACKGROUNDIMAGE="[string]" TEXTBUTTONBORDER_TOPLEFT_IMAGE="[string]" TEXTBUTTONBORDER_TOP_IMAGE="[string]" TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_RIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOM_IMAGE="[string]" TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[string]" TEXTBUTTONBORDERLEFT_IMAGE="[string]" TEXTBUTTONWIDTH="[0 < integer]" TEXTBUTTONHEIGHT="[0 < integer]" TEXTBUTTONPADDING="[0 < integer]" TEXTBUTTONNUDGE="[integer]" LABELFONT="[string]" LABELFONTSIZE="[0 < integer < INF]" LABELALIGN="[LEFT|CENTER|RIGHT]" LABELANTIALIAS="[TRUE|FALSE]" IMAGE="[string]" USETEXTBUTTONCACHE="[TRUE|FALSE]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]"/>

Attributes:
The uploadsld tag has attributes from the Base Attributes, Popup Attributes, and Text Button Attributes groups plus the following attribute:
singlelayer
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
clickSLDUpload()
No description available.
OpenSLDCB()
No description available.
Javascript Variables:
None

z39query

Description:
DESC here
Tag:

<CWC2 NAME="[string]" TYPE="Z39QUERY" VISIBLE="[TRUE|FALSE]" ENABLED="[TRUE|FALSE]" LABEL="[string]" LABELPOSITION="[0 < integer < 8]" LABELHALIGN="[LEFT|CENTER|RIGHT]" LABELVALIGN="[TOP|MIDDLE|BOTTOM]" LABELCLASS="[string]" LABELSTYLE="[string]" IMAGE="[string]" IMAGEWIDTH="[string]" IMAGEHEIGHT="[string]" IMAGETIP="[string]" IMAGECLASS="[string]" IMAGESTYLE="[string]" TOOLSET="[string]" IMAGESELECTED="[string]" IMAGEHOVER="[string]" POPUPWIDTH="[0 < integer]" POPUPHEIGHT="[0 < integer]" TOOLBAR="[TRUE|FALSE]" MENUBAR="[TRUE|FALSE]" STATUS="[TRUE|FALSE]" SCROLLBARS="[TRUE|FALSE]" RESIZABLE="[TRUE|FALSE]" GMLNAME="[string]" SEARCHSERVER="[string]" SEARCHOFFSET="[integer]" SEARCHLIMIT="[integer]" SHAREDRESOURCE="[string]"/>

Attributes:
The z39query tag has attributes from the Base Attributes, Icon Attributes, Popup Attributes, Label Attributes, and Button Attributes groups plus the following attributes:
GMLNAME
No description available.
SEARCHSERVER
No description available.
SEARCHOFFSET
No description available.
SEARCHLIMIT
No description available.
SHAREDRESOURCE
No description available.
Form Elements:
sid
No description available.
Javascript Functions:
setCurrentTool()
set the currently active tool from a group of tools
flipToolState()
toggle the state of a tool button
registerTool()
used to register a tool in the page
onButtonOver()
callback when the mouse moves over a button
onButtonOut()
callback when the mouse leaves a button
onButtonClick()
callback when a button is clicked.
clickZ39Query()
No description available.
executeEnvirodatQuery()
No description available.
applyZ39BoundingBox()
No description available.
Javascript Variables:
aToolGroups
array used to manage groups of tools on the page.
aTools
array of tools on the page.