Client Actions Legend

Provides a means of displaying a legend in a popup window.

See the view for details on how to configure the legend content.

ID

com.cohga.client.action.legend

Sub-tags

Name

type

cardinality

description

title

String

0..1

Text to display as the window title, default 'Legend'

width

Integer

0..1

The width of the window, default 300

height

Integer

0..1

The height of the window, default 500

Example

Dynamically generate a legend for an map engine and remove a couple of layers and add two static images on at the top and one at the bottom

<item action='com.cohga.client.action.legend'>
        <mapengine>mapengine.main</mapengine>
        <remove>hillshade,elevation</remove>
        <staticLegend url="http://server/images/markers.png"/>
        <staticLegend url="http://server/images/aerial.png" location='bottom'/>
</item>

See the view for more samples.