The toc menu action allows the user to alter the layer display via a menu.
Code Block |
---|
| xml |
---|
| xml |
---|
title | Minimum required configuration for the action |
---|
linenumbers | truexml |
---|
|
<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 |
---|
title | Alternate configuration where content is embedded in configuration |
---|
linenumbers | truexml |
---|
|
<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>
|