Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Display a legend using all map engines

Code Block
xmlxml
linenumberstrue
xml
<view id='com.cohga.client.panel.legend'>
        <label>Legend</label>
</view>

Display a legend using only a single map engine

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

Dynamically generate a legend for an single map engine and remove a couple of layers

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

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

xml
Code Block
xml
linenumberstrue
xml
<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>