Client Actions Toc Menu

The toc menu action allows the user to alter the layer display via a menu.

Minimum required configuration for the action
<item action='com.cohga.client.action.toc' toc='toc.main'/>

The action will present a menu representing the hierarchical structure of the toc model.

There's also an option to embed the structure for the menu within the configuration itself, but this has limitations compared to the other version, since it doesn't support turning on/off groups.

Alternate configuration where content is embedded in configuration
<item action="com.cohga.client.action.toc">
	<mapengine>mapengine.vector.ags</mapengine>
	<entry label="Water" checked="true">
		<entry layer="Drainage" label="Drainage" checked="false"/>
		<entry label="Pipes" checked="true">
		<entry layer="Water Pipes" checked="false"/>
			<entry layer="Sewer Mains" label="Sewer Mains" checked="false"/>
		</entry>
		<entry label="Streams" checked="false">
			<entry layer="Streams" label="Hydro"/>
			<entry layer="Main Streams" label="Main Hydro"/>
		</entry>
	</entry>
	<entry layer="Property" label="Property" checked="true"/>
<item>