Create an Overlay Property

WebMap uses SWD overlay Properties in different scenarios (for instance: using the overlay in certain services or defining certain parameters to use in a Local Knowledge query).

Remember to set these Properties inside our Cadcorp SIS Desktop application so they can be used inside WebMap.

To do this:

  1. Open the SWD file inside SIS Desktop.
  2. Right click on the overlay in the tree view and select Properties:
  3. Select Properties again and click Add to add a new property:

All available properties are defined below:

Property

Description

Value

WML::AllowSnapping&

Allows the drawing tool to snap to the overlay. Only one overlay is ‘snappable’ at a time. To use this function, Enable Snapping on your WebMap user site.

1 = True

WML::SearchEnabled&

Defines the overlay to be used in Search by Area.

1 = True

WML::VisibleOnly&

Sets the maximum status the overlay can be set to when toggling on and off.

1 = visible
2 = hittable
3 = editable

WML::DownloadEnabled&

Allows a download for the results of Search by Area.

1 = True

WML::Ignore&

Hides overlay so it doesn’t appear in Map Features of a user map. This property is used when printing to PDF. See Setting up the SWD to enable PDF printing.

1 = True

WML::IgnoreHittable&

Hides overlay so it doesn’t appear in Map Features of a user map. However user can still see data in the map window and features can be interrogated for their attributes.

1 = True

WML::Knowledge_Type$

Defines the type of Local Knowledge query the overlay will be used in.

area
statistic
nearestN
distance

WML::Knowledge_AdditionalInfo$

Runs an if query on the result of a Local Knowledge Statistic query.

A valid Iif statement

WML::Knowledge_SearchDistance#

Used in a Local Knowledge distance query to define a search radius.

Search distance in current units

WML::Knowledge_Expression$

Used in a Local Knowledge Statistic query to define the overlay column on which the expression will be executed. e.g. Incident_Count#

WML::Knowledge_Operation$

Sets the mathematical operation to be carried out for a Local Knowledge Statistic query.

OP_Count - The number of results.
OP_Sum - The sum of the results.
OP_Min - The minimum result value.
OP_Mean - The average of the results.
OP_Median - The middle number in the list of results.
OP_Mode - The number which appears most often in the results.
OP_Max - The maximum result value.
OP_Stddev - (Standard Deviation) a measure of the spread of the results.
OP_Variance - The average of the squared differences from the Mean value.
OP_Skewness - Reduces any positive or negative skewing of the results.

WML::Knowledge_Test$

Used in a Local Knowledge Statistic query to define the spatial relationship between the data and the search area for the resultant statistic.

ST_Contains - Does the data intersect with the search area?
ST_Crosses - Does data cross the search area?
ST_Disjoint - Is the data disjointed from the search area?
ST_Equals - Is the data equal to the search area?
ST_Intersect - Does the data intersect the search area?
ST_Overlap - Does the data overlap the search area?
ST_Touches - Does the data touch the search area?
ST_Within - Is the data within the search area?

WML::Knowledge_Filter$

Used to filter the results of a Local Knowledge Query.

Filter expression.

WML::Knowledge_nItems&

Used in a Local knowledge NearestN query to define the number of items you want to return.

Number of items to be returned (integer).

WML::MetadataUUID$

Allows information from an INSPIRE metadata record to be viewed within Cadcorp SIS WebMap.

Metadata record name.

WML::HasJoin&

Used to support one to many relationships in SIS cursor datasets.

1 = True