Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CSS style rendering properties

Name

Type

Description

strokecolour

colour

The colour of the line to draw lines

strokewidth

number

The width of the lines to draw

strokeopacity

number (0-1)

The opacity of the lines drawn

fillcolour

colour

The colour used when filling selections

fillopactiy

number (0-1)

The opacity used when filling selections

mark

'square', 'circle', 'triangle', 'star', 'cross' or 'x'

no

The type of marker to draw point selections with

marksize

number

The size of the marker used to draw point selections

markrotation

number (0-360)

The angle of rotation use to draw point selection markers with

markopactiy

number (0-1)

The opacity of point selection markers

  • Colours can be specified as either an RGB value, as decimal or hex (e.g., #ff0000), or as one of black, blue, cyan, darkgray, darkgrey, gray, grey, green, lightgray, lightgrey, magenta, orange, pink, red, white, yellow.
  • The word 'colour' or 'color' and hyphens can be used in the property names, for example the following are all equivalent, 'strokecolour', 'strokecolor', 'stroke-colour' and 'stroke-color'.
  • When setting line properties only the stroke settings are read.
  • When setting polygon properties only stroke and fill settings are read.
  • When setting point properties stroke, fill and marker settings are read.
  • You don't need to include point, line and polygon unless you want to change all renderers, you only need to include the one(s) you want to change, and you only need to include the properties that you want to change from the defaults

...

This can be done by setting the geometry type for an entity as follows:

Code Block
xml
xml
2titleTitle Overriding the rendering type for an entity - pre 1.3.3 and later
linenumberstrue
<selection:mapengine id="selection">
  <override>
    <property>polygon</property> <entity id="property">polygon</entity>
     <road>line</road><entity id="road">line</entity>
     <trafficlight>point</trafficlight><entity id="trafficlight">point</entity>
  </override>
</selection:mapengine>

or

Code Block
xml
xml
title2Title Overriding the rendering type for an entity - pre 1.3.3 and later
linenumberstrue
<selection:mapengine id="selection">
  <override>
    <entity id="property">polygon</entity><property>polygon</property>
    <entity id="road">line</entity><road>line</road>
    <entity id="trafficlight">point</entity><trafficlight>point</trafficlight>
  </override>
</selection:mapengine>

...