...
The contentmenu
tag should be added under the tocView
or mapView
, for example:
Code Block |
---|
|
<view id="com.cohga.html.client.map.tocView">
<label>Layers</label>
<location>west</location>
<contextmenu>
<item action="weave.toc.openUrl">
<text>Metadata</text>
<url>/resources/metadata/{layername}.htm</url>
<external>true</external>
</item>
</contextmenu>
</view>
|
Code Block |
xml |
---|
|
<contextmenu>
<item action="weave.zoomToScale">
<text>Street Level</text>
<scale>2500</scale>
</item>
<item action="weave.zoomToScale">
<text>Suburb Level</text>
<scale>25000</scale>
</item>
<item action="weave.zoomToScale">
<text>Council Level</text>
<scale>130000</scale>
</item>
<item>-</item>
<item action="weave.previousExtent">
<text>Previous Extent</text>
</item>
<item action="weave.nextExtent">
<text>Next Extent</text>
</item>
<item action="weave.initialExtent">
<text>Initial Extent</text>
</item>
<item action="weave.fullExtent">
<text>Full Extent</text>
</item>
<item>-</item>
<item action="weave.fixedZoomIn">
<text>Zoom In</text>
</item>
<item action="weave.fixedZoomOut">
<text>Zoom Out</text>
</item>
<item>-</item>
<item action="weave.selectZoom">
<text>Zoom To Selection</text>
</item>
<item>-</item>
<item action="weave.clear">
<text>Clear Selection</text>
</item>
<item action="weave.clearAll">
<text>Clear All</text>
</item>
<item action="weave.coords">
<text>Coordinates</text>
<projection id="EPSG:4283" label="Geographic (GDA94)"/>
<projection id="EPSG:4326" label="WGS84"/>
<projection id="EPSG:28355" label="GDA94 / MGA Zone 55"/>
<projection id="EPSG:3111" label="VicGrid94 (GDA94)"/>
<projection id="EPSG:28355" label="AMG Zone 55"/>
</item>
</contextmenu>
|
Code Block |
xml |
---|
|
<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>-</item>
<item action="weave.toc.openUrl">
<text>Metadata</text>
<external>true</external>
<iconCls>icon-tag-green</iconCls>
<layer label="Mineral Tenements">
<url><![CDATA[http://metadata.nre.vic.gov.au/metadata/anzlic_report.cfm?dataset_name=MINTEN]]></url>
</layer>
</item>
</contextmenu>
|