Versions Compared

Key

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

...

Code Block
xml
xml
linenumberstrue
<contextmenu>
        <item action="weave.toc.selectLayer">
                <text>Set Active</text>
        </item>
        <item action="weave.toc.clearSelection">
                <text>Clear Selection</text>
        </item>
        <item action="weave.toc.zoomSelection">
                <text>Zoom To Selection</text>
        </item>
        <item>-</item>
        <item action="weave.toc.zoomToMaxScale">
                <text>Zoom to the Maximum Scale</text>
        </item>
        <item action="weave.toc.zoomToMinScale">
                <text>Zoom to the Minimum Scale</text>
        </item>
        <item action="weave.toc.zoomToLayer">
                <text>Zoom to Layer</text>
        </item>
        <item action="weave.toc.checkAll"/>
        <item action="weave.toc.uncheckAll"/> 
        <item>-</item>
        <item action="weave.toc.openUrl">
                <text>Metadata</text>
                <external>true</external>
                <iconCls>icon-tag-green</iconCls>
                <layer label="Mineral Tenements"> <!-- use toc entry label to specify matching layer -->
                        <url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm?dataset_name=MINTEN]]></url>
                </layer>
                <layer id="l_property"> <!-- use toc entry id to specify matching layer -->
                        <url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm?dataset_name=PROPERTY]]></url>
                </layer>
                <layer mapengine="nre" layer="roads"> <!-- use mapengine/layer id to specify matching layer -->
                        <url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm?dataset_name=ROADS]]></url>
                </layer>
                <url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm]]></url> <!-- optionally specify fallback for other layers not listed above -->
        </item>
</contextmenu>