This is an old revision of the document!


path element

Use a path element to draw a line or polygon consisting of a series of points in a path.

Elementpath
AttributeFormatRemarks
patterndouble arrayline pattern described in an array of doubles
stroke_widthfloatline width in pixels
stroke_colorstringcolor id name
fill_colorstringcolor id name
closebooleanclose path yes/no

Each path consists of at least two <point> elements where each <point> is connected to the next <point>. The shape is closed if close=“true” is defined.

The drawing can be written as:

  <path stroke_color="myPredefinedColor" stroke_width="1">
      <point x="v0 x" y="v0 y" />
      <point x="v1 x" y="v1 y" />
      <point x="v2 x" y="v2 y" />
      <point x="v3 x" y="v3 y" />
  </path>

Use path instead of lines to draw continuous lines.

examples

The following code draws a rectangle:

  <path stroke_color="myPredefinedColor" close="true">
      <point lat="N0504413" lon="E0043108"/>
      <point lat="N0504421" lon="E0042601"/>
      <point lat="N0504528" lon="E0042119"/>
      <point lat="N0504730" lon="E0041718"/>
  </path>

Back