...
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 windowswindow, default 400 300 |
height | Integer | 0..1 | The height of the windowswindow, default 300 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
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://gissrv/igis/images/legend.png</src><staticLegend url="http://server/images/markers.png"/> <width>123</width> <height>864</height> </image><staticLegend url="http://server/images/aerial.png" location='bottom'/> </item> |
See the view for more samples.