Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

Code Block
xml
xml
titleMinimum required configuration for the action
linenumberstruexml
<item action='com.cohga.client.action.toc' toc='toc.main'/>

...

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.

Code Block
xml
xml
titleAlternate configuration where content is embedded in configuration
linenumberstruexml
<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>