This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ivac2:firdef_symbols_xml [2014/04/14 22:52] filip.jonckers |
ivac2:firdef_symbols_xml [2015/06/08 15:45] splendor.bouman removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[ivac2:firdef_toc|Back]] | + | ====== mapsymbols.xml ====== |
- | ====== symbols.xml ====== | + | The mapsymbols.xml file is used to define symbols used in [[ivac2:firdef_map_symbol|symbol elements]]. |
+ | |||
+ | |||
+ | |||
+ | ^Element|symbol|| | ||
+ | ^Attribute^Format^Remarks^ | ||
+ | |name|string|symbol name (must be unique)| | ||
- | The symbols.xml file is used to draw symbols used in [[ivac2:firdef_map_nav|nav elements]]. | ||
Each symbol is drawn using the same methods as used in the maps: | Each symbol is drawn using the same methods as used in the maps: | ||
- | * line | + | * lines |
- | * linestrip | + | * path |
- | * lineloop | + | |
- | * polygon | + | |
* circle | * circle | ||
- | * polycircle | ||
* arc | * arc | ||
- | * polyarc | ||
* point | * point | ||
+ | The symbol is drawn using a cartesian system where the location of the [[ivac2:firdef_map_symbol|symbol element]] is the centerpoint (0,0). | ||
+ | The name attribute of a symbol is used in the symbol attribute of the [[ivac2:firdef_map_symbol|symbol element]]. | ||
- | The symbol is drawn using a cartesian system where the location of the [[ivac2:firdef_map_nav|nav element]] is the centerpoint (0,0). | ||
- | Note: Only use <point> elements with the x,y attributes! | ||
- | |||
- | |||
- | The name attribute of a symbol is used in the symbol attribute of the [[ivac2:firdef_map_nav|nav element]]. | ||
===== example ====== | ===== example ====== | ||
+ | |||
<code XML> | <code XML> | ||
<symbols> | <symbols> | ||
<symbol name="vor"> | <symbol name="vor"> | ||
- | <circle radius="3" segments="32" width="1" color="symbol_vor"> | + | <circle radius="3" segments="32" width="1" stroke_color="symbol_vor"> |
<point x="0" y="0"/> | <point x="0" y="0"/> | ||
</circle> | </circle> | ||
- | <polygon width="1" color="symbol_vor"> | + | <path stroke_width="1" stroke_color="symbol_vor" close="true"> |
<point x="-3" y="3"/> | <point x="-3" y="3"/> | ||
<point x="3" y="3"/> | <point x="3" y="3"/> | ||
<point x="0" y="-3"/> | <point x="0" y="-3"/> | ||
- | </polygon> | + | </path> |
</symbol> | </symbol> | ||
</symbols> | </symbols> | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | Use the symbol defined above in a map: | ||
+ | |||
+ | <code XML> | ||
+ | <symbol id="AFI" symbol="vor" lat="N0505428001" lon="E0040820000"/> | ||
+ | </code> | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[ivac2:firdef|Back]] |