Back

lineloop element

Elementlineloop
AttributeFormatRemarks
patterndouble arrayline pattern described in an array of doubles
widthfloatline width in pixels
colorstringcolor id name
rbytecolor RGB value (0-255)
gbytecolor RGB value (0-255)
bbytecolor RGB value (0-255)

Each lineloop consists of at least three <point> elements where each <point> is connected to the next <point> and where the first and last <point> elements connect to each other.

The drawing can be written as:

  <lineloop 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" />
  </lineloop>

Example

The following code draws a rectangle (notice that the first point element does not need to be repeated at the end to close the loop):

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