lines

Use a lines element to quickly draw a lot of independent unconnected lines. You might remember this one as the only way to draw objects in IVAC v1 sectorfiles.

Each line consists of two <point> elements where the first <point> is the start and the second <point> element is the end of the line to draw. The total amount of <point> elements must be even.

Root Elementmap
Elementlines
AttributeFormatRemarks
stroke_patterndouble arrayline pattern described in an array of doubles
stroke_widthfloatline width in pixels
stroke_colorstringcolor id name
followgridbooleanIf true, paths follow grid (rhumb line). If false paths follow great circle NEW

The drawing can be written as:

  <lines stroke_color="myPredefinedColor">
      <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" />
  </lines>

Use path instead of lines to draw continuous lines.

Example

The following code draws a rectangle:

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

Back