Versions Compared

Key

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

Provides a means of displaying the current layer and gives the user the ability to turn on/off the layer visibility.

The ToC view provide provides a place holder placeholder to display the layers that are available on the map, but it doesn't actually describe the layers that are available, to do that you need to setup set up a toc model.

ID

com.cohga.html.client.main.tocView

...

Name

type

cardinality

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..1A toolbar of items to appear at the bottom of the view
contextmenucontextmenu 0..1a right-click context menu
checkParentOnVisibleboolean0..1Should the parent group also be turned on when a layer is turned on, the default is false
turnOnActiveboolean0..1Should the associated layer be turned on when the active entity is changed, the default is false. Only available since 2.5.26.


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 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"/>
	</contextmenu>
</view>

...