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 5 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

image

image

0..1

Details about a single static image to display

mapengine

string

0..1

Map engine to use to generate the legend, must be included if you want a dynamic legend

remove

list

0..1

List of layer ids to remove from the dynamic legend

staticLegend

staticLegend

0..n

Static images to add to the end of a 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

StaticLegend Tag

Name

type

cardinality

description

url

String

1..1

URL of image to display

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>
        <mapengine>mapengine.vector</mapengine>
</view>

Dynamically generate a legend for an 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

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