Client - Action - Legend
Description
Provides a means of displaying a single image legend in a popup window to be used as a legend.
There is a corresponding view that can be used to display the image in a panel instead.
Note that currently this view is supplied in a separate bundle, com.cohga.client.legend. If you don't have this bundle already then contact us for a copy.See the view for details on how to configure the legend content.
ID
com.cohga.client.action.legend
...
Name | type | cardinality | description | |||
label title | String | 0..1 | Label Text to display in tabas the window title, default 'Legend' image | |||
image | 1..1 | Details about the image to display | width | Integer | 0..1 | The width of the windowswindow, default 400300 |
height | Integer | 0..1 | The height of the windowswindow, default 300500 |
Image Tag
Name | type | cardinality | description |
src | String | 1..1 | URL of image to display |
width | Integer | 1..1 | The width of the image pointed to by the above URL |
height | Integer | 1..1 | The height of the image pointed to by the above URL |
Example
...
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
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<item action='com.cohga.client.action.legend'> <label>Legend<<mapengine>mapengine.main</label>mapengine> <width>500<<remove>hillshade,elevation</width>remove> <height>300</height> <image> <src>http<staticLegend url="http://gissrvserver/igis/images/legendmarkers.png<png"/src>> <width>123</width> <height>864</height> </image><staticLegend url="http://server/images/aerial.png" location='bottom'/> </item> |
See the view for more samples.