Provides a means of displaying a single image in a panel to be used as a legend or if an image isn't specified then Weave can generate a dynamic map image.
There is a corresponding action that can be used to display the image in a popup window instead (but can't currently generate a custom image).
ID
com.cohga.client.panel.legend
Sub-tags
Name |
type |
cardinality |
description |
label |
String |
0..1 |
Label to display in tab |
image |
image |
0..1 |
Details about the image to display |
mapengine |
string |
0..1 |
Map engine to use to generate the legend, base map engine will be used if not specified |
remove |
list |
0..1 |
List of layer ids to remove from the dynamic legend |
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
Display a pre-generated legend image
<view id='com.cohga.client.panel.legend'> <label>Legend</label> <image> <src>http://gissrv/igis/images/legend.png</src> <width>123</width> <height>864</height> </image> </view>
Dynamically generate a legend
<view id='com.cohga.client.panel.legend'> <label>Legend</label> </view>
Dynamically generate a legend for an alternative map engine and remove a couple of layers
<view id='com.cohga.client.panel.legend'> <label>Legend</label> <mapengine>mapengine.main</mapengine> <remove>hillshade,elevation</remove> </view>