Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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

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 to remove from the dynamic legends

staticLegend

staticLegend

0..n

Static images to add to the end of a dynamic legend

StaticLegend Tag

Name

type

cardinality

description

url

String

1..1

URL of image to display

location

'top' or 'bottom'

0..1

Should the legend image be before the dynamic legends or after, defaults to 'top'

Example

Display a legend using all map engines

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

Display a legend using only a single map engine

<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

<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

<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>
  • No labels