This is an old revision of the document!


Back

polygon element

Elementpolygon
AttributeFormatRemarks
stippleintegerstipple line bitwise pattern definition
widthfloatline width in pixels
colorstringcolor id name
rbytecolor RGB value (0-255)
gbytecolor RGB value (0-255)
bbytecolor RGB value (0-255)

Each polygon 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 area inside the points is filled with the specified color.

Example

The following code draws a square:

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

to draw a line border around a polygon: draw the same polygon again as a lineloop element