Client Actions Coordinate Zoom

The coordinate zoom function allows a user to enter a coordinate and the map will zoom to that location for a specified zoom width.

A marker will be shown at the location on the map if specified in the configuration.

ID

weave.coordZoom

Sub-tags

Name

Type

Cardinality

Default

Description

windowTitle

String

0..1

Enter Map Coordinate

Tile in the coordinate zoom panel

windowWidth

Integer

0..1

470

Width of the coordinate zoom panel

windowHeight

Integer

0..1

375

Height of the coordinate zoom panel

zoomProjLabel

String

0..1

Select the projection

Label for the combo box of projections

zoomWidthLabel

String

0..1

Select the zoom width

Label for the combo box of zoom widths

showMarker

Boolean

0..1

false

Should a marker be placed at the zoom coordinate

markerColorString0..1'green'

Colour of the marker, choices are blue, brown, dark, green, orange, purple, red, silver or yellow.

markerColour can also be used.

Examples

<item action="weave.coordZoom">
	<showMarker>true</showMarker> <!-- place a marker at the coordinate, default is false -->
	<markerColor>red</markerColor> <!-- default is 'green' -->
	<windowTitle>Zoom to Map Coordinate</windowTitle>
	<windowWidth>500</windowWidth>
	<windowHeight>400</windowHeight>
	<title>Zoom to Map Coordinate</title>
	<outOfRangeMsg>The Location is not within the Map Extent.</outOfRangeMsg>
	<tooltip>
		<title>Zoom to Map Coordinate</title>
		<text>Enter a map coordinate and zoom to it.</text>
	</tooltip>
	<bodyText>
	<![CDATA[<p>Select a projection and then enter the geographic
	position where you want to centre the map. Select the width of
	the map that you wish to show, then press the "OK" button.
	The map will zoom to the extent that you entered. The position
	shown is the current map centre.]]>
	</bodyText>
	<zoomProjLabel>Select projection</zoomProjLabel>
	<zoomWidthLabel>Select the zoom width</zoomWidthLabel>
	<zoomWidths>
		<width value="1" units="km" />
		<width value="1" units="mi" />
		<width value="10" units="km" />
		<width value="10" units="mi" />
		<width value="25" units="km" />
		<width value="25" units="mi" />
	</zoomWidths>
	<zoomWidthDefault>2</zoomWidthDefault>
	<projections>
		<!-- The following are the default labels and don't need to set here, they're just here to show that the can be set -->
		<!-- The values can also be set for each projection tag below -->
		<lonlabel>Longitude</lonlabel>
		<latlabel>Latitude</latlabel>
		<deglabel>Degrees</deglabel>
		<minlabel>Minutes</minlabel>
		<seclabel>Seconds</seclabel>
		<xlabel>X</xlabel>
		<ylabel>Y</ylabel>
		<projection id="EPSG:4283" type="DD" label="GDA94 Lat/Long (Decimal)"/>
		<projection id="EPSG:4283" type="DDM" label="GDA94 Lat/Long (DM)"/>
		<projection id="EPSG:4283" type="DMS" label="GDA94 Lat/Long (DMS)"/>
		<projection id="EPSG:28354" label="MGA Zone 54 (GDA94)"/>
		<projection id="EPSG:28355" label="MGA Zone 55 (GDA94)"/>
		<projection id="EPSG:3111" isDefault="true" label="VicGrid94 (GDA94)">
			<xlabel>Easting</xlabel> <!-- override "X" -->
			<ylabel>Northing</ylabel> <!-- override "Y" -->
		</projection>
		<projection id="EPSG:20254" isNTV2="true" label="AMG Zone 54 (AGD66)"/>
		<projection id="EPSG:20255" isNTV2="true" label="AMG Zone 55 (AGD66)"/>
	</projections>
</item>