Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

type

cardinality

description

label

String

0..1

Label to display in tab

mapEngine

string

0..n

Map engine(s) to use to generate the dynamic legends, all available map engines will be used if none specified

remove

list

0..1

List of layer ids, comma separated, to remove from the dynamic legends. Note that this is the layer id as the associated map engine would report it, it has nothing to do with any the id used in a toc model entry.

showMode

'visible', 'all', 'checked'

0..1

What type of dynamic legend to generate, default is 'visible'. 'all' will display all layers regardness of their map visibility or toc state, 'visible' will only display layers that are currently displayed on the map, 'checked' will display only layers that are checked in the toc regardless of the map scale and visibility of the layer on the map

staticLegend

staticLegend

0..n

Static images to add to legend

...

Code Block
xml
xml
linenumberstrue

<view id='com.cohga.client.panel.legend'>
        <label>Legend</label>
</view>

...

Code Block
xml
xml
linenumberstrue

<view id='com.cohga.client.panel.legend'>
        <label>Legend</label>
        <mapEngine>mapengine.vector</mapEngine>
</view>

...

Code Block
xml
xml
linenumberstrue

<view id='com.cohga.client.panel.legend'>
        <label>Legend</label>
        <mapengine>mapengine.main</mapengine>
        <remove>hillshade,elevation</remove>
</view>

...

Code Block
xml
xml
linenumberstrue

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