...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<contextmenu>
<item action="weave.toc.selectLayer">
<text>Set Active</text>
</item>
<item action="weave.toc.clearSelection">
<text>Clear Selection</text>
</item>
<item action="weave.toc.zoomSelection">
<text>Zoom To Selection</text>
</item>
<item>-</item>
<item action="weave.toc.zoomToMaxScale">
<text>Zoom to the Maximum Scale</text>
</item>
<item action="weave.toc.zoomToMinScale">
<text>Zoom to the Minimum Scale</text>
</item>
<item action="weave.toc.zoomToLayer">
<text>Zoom to Layer</text>
</item>
<item>-</item>
<item action="weave.toc.openUrl">
<text>Metadata</text>
<external>true</external>
<iconCls>icon-tag-green</iconCls>
<layer label="Mineral Tenements">
<url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm?dataset_name=MINTEN]]></url>
</layer>
</item>
</contextmenu>
|
Code Block | ||||
---|---|---|---|---|
| ||||
<contextmenu>
<!-- add slider to all map engines -->
<item action="weave.toc.layerTransparency"/>
<!-- add slider to specified map engines -->
<item action="weave.toc.layerTransparency">
<mapEngines>
<mapEngine>mapengine.raster</mapEngine>
</mapEngines>
</item>
<!-- add slider to specified map engines and configure individual sliders-->
<item action="weave.toc.layerTransparency">
<sliders>
<slider mapengine="mapengine.vector" value="70"/>
<slider mapengine="mapengine.raster" value="30"/>
</sliders>
</item>
</contextmenu> |
The weave.toc.layerTransparency
context menu item was added at 2.5.21.
You can also specify width
and interval
, either at the action level or the slider level, to specify the width of the slider and the movement interval of the slider.
You can either specify the mapEngine
and slider
settings within a mapEngines
and sliders
section, as above, or specify them directly under the item.
...