Key:dasharray

From OpenStreetMap Wiki
Jump to navigation Jump to search
dasharray
Description
Dash array (length of dashes and gaps) for dashed line strokes, especially for road marking=*.
Used on these elements
use on nodes unspecifiedmay be used on waysuse on areas unspecifieduse on relations unspecified
Requires
Useful combination
Status: undefined

A list of semicolon-separated values (lengths in meters) that specify the lengths of lines and gaps of a dashed linear feature.

If an odd number of values is given, the list of values is repeated to get an even number of values: a line-gap pattern would then alternate with a gap-line pattern of equal length (e.g., 3;1;2 = 3;1; 2;3;1;2 = 3m line, 1m gap, 2m line, 3m gap, 1m line, 2m gap).

Examples

  • dasharray=1;1 – A dashed line of 1-meter-long dashes separated by 1-meter-long gaps.
  • dasharray=0.5;0.25 – A dashed line of 50-centimeter-long dashes separated by 25-centimeter-long gaps.