Versions Compared

Key

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

...

Name

type

cardinality

default

description

label

String

0..1


Label to display in tab

location

String

1..1


Which region to add the view to

toolbar

toolbar 

0..1


A toolbar of items to appear at the top of the view

statusbarstatusbar 0..1
A toolbar of items to appear at the bottom of the view
contextmenucontextmenu 0..1
a right-click context menu
checkParentOnVisibleboolean0..1false

Should the parent group also be turned on when a layer is turned on?

turnOnActiveboolean0..1false

Should the associated layer be turned on when the active entity is changed?

Only available since 2.5.26

allowExclusiveOffboolean0..1

true < 2.6.5

false >= 2.6.5

Should it be possible to turn off the active child in an exclusive toc ToC group?

Only available since 2.6.6 and 2.6.5.2

activateEntityboolean0..1false

Should the associated entity by be set active when the layer is turned on?

Only available since 2.6.6

showFilterIconboolean0..1false

Should a filter icon indicator be displayed for layers that are currently filtered?

Only available since 2.6.6


Code Block
languagexml
titleExample ToC view will all available items
<view id="com.cohga.html.client.map.tocView">
	<label>Layers</label>
	<location>west</location>
	<toolbar>
		<item action="weave.toc.expandAll"/>
		<item action="weave.toc.collapseAll"/>
		<item action="weave.toc.save"/>
		<item action="weave.toc.load"/>
		<item>-&gt;</item>
		<item action="weave.toc.favourites"/>
		<item component="weave.toc.filter"/>
	</toolbar>
	<contextmenu>
		<item action="weave.toc.styleLayer"/>
		<item action="weave.toc.selectLayer"/>
		<item action="weave.toc.zoomToLayer"/>
		<item action="weave.toc.zoomSelection"/>
		<item action="weave.toc.zoomToMinScale"/>
		<item action="weave.toc.zoomToMaxScale"/>
		<item action="weave.toc.clearSelection"/>
		<item action="weave.toc.lockLayer"/>
		<item action="weave.toc.favourite"/>
		<item action="weave.toc.checkAll"/>
		<item action="weave.toc.uncheckAll"/>
		<item action="weave.toc.filterLayer"/>
	</contextmenu>
</view>

Toolbar and statusbar status bar Items

weave.toc.expandAll

Expands all the groups/folders within the ToC view.

...

Mark a layer as a favourite, which would then be displayed if the user selects the weave.toc.favourites action listed above. Available from 2.6.5.

weave.toc.filterLayer

Allow the user to filter the layer, note that the filter itself must be defined separately and only layers that have an associated filter will have this entry enabled. Available from 2.6.6. See Layer Filtering for more information.

Layer Transparency Slider

...