This is an old revision of the document!


Back

mapsymbols.xml

The symbols.xml file is used to draw symbols used in nav elements.

Elementsymbol
AttributeFormatRemarks
namestringsymbol name (must be unique)

Each symbol is drawn using the same methods as used in the maps:

  • line
  • linestrip
  • lineloop
  • polygon
  • circle
  • polycircle
  • arc
  • polyarc
  • point

The symbol is drawn using a cartesian system where the location of the nav element is the centerpoint (0,0). The name attribute of a symbol is used in the symbol attribute of the nav element.

example

<symbols>
    <symbol name="vor">
        <circle radius="3" segments="32" width="1" color="symbol_vor">
            <point x="0" y="0"/>
        </circle>
        <polygon width="1" color="symbol_vor">
            <point x="-3" y="3"/>
            <point x="3" y="3"/>
            <point x="0" y="-3"/>
        </polygon>
    </symbol>
</symbols>