Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

ID

com.cohga.client.actions.redline

weave.redline

Properties

NameTypeCardinalityDefaultDescriptioni18n resource
tooltip\titlestring0..1RedlineThe title for the tooltip.redline.tooltip.title
tooltip\textstring0..1Add elements to the mapThe text for the tooltip.redline.tooltip.text
titlestring0..1RedlineThe title of the redline toolbar window.redline.title
hideOnClickboolean0..1falseShould menus automatically hide when an item within is clicked.
scalestring0..1'small'The size of the icons in the toolbar, 'small', 'medium' or 'large'.
geometryToolstring0..n

A list of the geometry tools that should be included in the redline toolbar.

pointpolylinepolygoncirclesquarerectanglemarker and text


settingToolstring0..n

A list of the settings menus that should be included in the redline toolbar.

fillstrokefontmarkerMenu


toolstring0..n
A list of additional tools that should be included in the redline toolbar.
multilineLabelboolean0..1falseShould the label field be a multi-line input field.

Available tools

IdName

Enabled1

Description
circleCircleyesAdd a circle to the map
circleByRadiusCircle by Radius
Define a circle for a specified radius
defaultsSave Settingsyes2Save the current settings as the defaults
deleteDeleteyesDelete the currently selected redline element
deleteallDelete AllyesDelete all redline elements
enittyGet
Create a redline item from the currently selected entity
fillFill SettingsyesChange the fill colour and transparency of the selected feature
fontFont SettingsyesChange the Font colour and style of the selected features text
loadLoadyes2Load and manage your saved redlines
markerMarkeryesAdd a marker to the map
markerMenuMarker SettingsyesChange the marker colour
modifyModifyyesClick on the a redline to modify
pointPointyesAdd a point to the map
polygonPolygonyesAdd a polygon to the map
polylinePolylineyesAdd a polyline to the map
rectangleRectangleyesAdd a rectangle to the map
labelLabelyesAdd a label to a redline element
saveSaveyes2Save the current set of redlines
snapSnap SettingsyesAlter the current snapping settings
squareSquareyesAdd a square to the map
strokeLine SettingsyesChange the line colour and transparency of the selected feature
textTextyesAdd text to the map
bufferBuffer
Generate a buffer around the selected features
bufferAllBuffer All Redlines
Generate a buffer around all redline objects
bufferSelectedBuffer Selected Redline
Generate a buffer around the selected redline object
exportMarkersExport to Shapefile
Export all redlines to Shapefile
exportKmlExport to KML
Export all redlines to KML
coordsCreateCreate Geometry
Create some geometry by entering the coordinate. Weave 2.6.4 or later. Requires spatial upload extension to be installed.
coordsUpdateUpdate Geometry
Update some geometry by editing the coordinates. Weave 2.6.4 or later. Requires spatial upload extension to be installed.
uploadUpload Geometry
Create some geometry by uploading from a file. Weave 2.6.4 or later. Requires spatial upload extension to be installed.
  1. This tool is enabled by by default, if an entry is not marked as enabled it will need to be added with a tool entry in the the redline items configuration (see the Properties section above)
  2. Only if storage is available for the user

Customise available markers

You can replace the content of the marker menu to change the available markers, beyond the default ref, green and blue ones.

Changing available markers
<item action="weave.redline">
	<!--
		rest of config goes here
	-->
	<!-- this replaces the configuration of the maker menu and the markers that it supports -->
	<item action="weave.redline.markerMenu">
		<!-- these are the defaults -->
		<!-- you can also use brown, dark, orange, purple, silver and yellow -->
		<marker graphic="resources/images/markers/w-marker-green.png" text="Green"/>
		<marker graphic="resources/images/markers/w-marker-red.png" text="Red" />
		<marker graphic="resources/images/markers/w-marker-blue.png" text="Blue" />

		<!-- these are extras and the graphics, sizeX, sizeY, offsetX and offsetY are dependent upon the image -->

		<!-- this is assuming there is bundle installed in Weave that is exposing these images -->
		<!-- Note these icons currently will only display on the client, not in reports, etc -->
		<marker graphic="custom/markers/marker1.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 1" />
		<marker graphic="custom/markers/marker2.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 2" />
		<marker graphic="custom/markers/marker3.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 3" />

		<!-- this is assuming example.com is serving up icons (via http and https) -->
		<!-- Note these icons currently will only display on the client, not in reports, etc -->
		<marker graphic="//example.com/custom/markers/marker4.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 4" />
		<marker graphic="//example.com/custom/markers/marker5.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 5" />
		<marker graphic="//example.com/custom/markers/marker6.png" sizeX="18" sizeY="18" offsetX="-9" offsetY="-9" text="Marker 6" />
	</item>
</item>
  • No labels