Client Actions Redline

Weave uses the term “Redline” to refer to a graphic added to a Weave client map display. Redlines may be points , lines, polygons, circles, squares, rectangles or text, and once added to the display, they may be readily edited or deleted.

Redlines differ from Weave entity features because they are not associated with features contained in the entity’s layer; Rather they can be thought of as floating graphics, displayed atop underlying feature layers.

ID

com.cohga.client.actions.redline

weave.redline

Properties

Name

Type

Cardinality

Default

Description

i18n resource

Name

Type

Cardinality

Default

Description

i18n resource

tooltip\title

string

0..1

Redline

The title for the tooltip.

redline.tooltip.title

tooltip\text

string

0..1

Add elements to the map

The text for the tooltip.

redline.tooltip.text

title

string

0..1

Redline

The title of the redline toolbar window.

redline.title

hideOnClick

boolean

0..1

false

Should menus automatically hide when an item within is clicked?

 

scale

string

0..1

'small'

The size of the icons in the toolbar, 'small', 'medium' or 'large'.

 

geometryTool

string

0..n

 

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

pointpolylinepolygoncirclesquarerectanglemarker and text

 

settingTool

string

0..n



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

fillstrokefontmarkerMenu

 

tool

string

0..n

 

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

 

multilineLabel

boolean

0..1

false

Should the label field be a multi-line input field.

 

Available Tools

Redline Tools are used to create and manipulate Redlines on a map display. Such tools are available to the user from the Redline Toolbar. The Redline toolbar may be declared with the below XML :

<item action="com.cohga.client.actions.redline"/>

The above specification is the simplest specification for the Redline Toolbar. When declared in this way a default set of Redline tools are included on the Toolbar. These default tools are denoted as Enabled in the below table.
To add tools that are not enabled by default, new tool elements are added to to the com.cohga.client.actions.redline item, using the Id property of the tool, e.g :

<item action="com.cohga.client.actions.redline"> <tool>entity</tool> <tool>buffer</tool> <tool>bufferAll</tool> <tool>bufferSelected</tool> </item>

The Delete, Delete All and Load items can have an optional warning parameter to prompt a user before deleting/loading redlines. This parameter is specified as an XML attribute, e.g :

<item action="com.cohga.client.actions.redline"> <item action="weave.redline.delete" warning="true"/> <item action="weave.redline.deleteall" warning="true"/> <item action="weave.redline.load" warning="true" /> ... </item>

Id

Name

Enabled

Description

Id

Name

Enabled

Description

circle

Circle

yes1

Add a circle to the map

circleByRadius

Circle by Radius

 

Define a circle for a specified radius

defaults

Save Settings

yes1,2

Save the current settings as the default

delete

Delete

yes1

Delete the currently selected redline element

deleteall

Delete All

yes1

Delete all redline elements

entity

Get

 

Create a redline item from the currently selected entity

fill

Fill Settings

yes1

Change the fill colour and transparency of the selected feature

font

Font Settings

yes1

Change the Font colour and style of the selected features text

load

Load

yes1,2

Load and manage your saved redlines

marker

Marker

yes1

Add a marker to the map

markerMenu

Marker Settings

yes1

Change the marker colour

modify

Modify

yes1

Click on the redline to modify

point

Point

yes1

Add a point to the map

polygon

Polygon

yes1

Add a polygon to the map

polyline

Polyline

yes1

Add a polyline to the map

rectangle

Rectangle

yes1

Add a rectangle to the map

label

Label

yes1

Add a text box to the Redline Toolbar; Used to enter text that will be added to the map with the Text tool.

save

Save

yes1,2

Save the current set of redlines

snap

Snap Settings

yes1

Alter the current snapping settings

square

Square

yes1

Add a square to the map

stroke

Line Settings

yes1

Change the line colour and transparency of the selected feature

text

Text

yes1

Add text to the map

buffer

Buffer

 

Generate a buffer around the selected features

bufferAll

Buffer All Redlines

 

Generate a buffer around all redline objects

bufferSelected

Buffer Selected Redline

 

Generate a buffer around the selected redline object

exportMarkers

Export to Shapefile

 

Export all redlines to Shapefile

exportKml

Export to KML

 

Export all redlines to KML

coordsCreate3

Create Geometry

 

Create some geometry by entering the coordinates.

coordsUpdate3

Update Geometry

 

Update some geometry by editing the coordinates.

upload3

Upload Geometry

 

Create some geometry by uploading it from a file.

spatialSelect4

Spatial Select

 

Select entities from redline geometry

manage5,6

Organise

yes

List and organise redlines

  1. This tool is enabled by default, if an entry is not marked as enabled it will need to be added with a tool entry in the redline items configuration (see the Properties section above)

  2. Only if storage is available for the user

  3. Weave 2.6.4 or later. Requires spatial upload extension to be installed, which is done automatically as part of a 2.6.4 update.

  4. Weave 2.6.6 or later

  5. Weave 2.6.7 or later

  6. This tool does not currently affect text, which is always displayed on top of all geometries.

 

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