Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ivac2:firdef_map_symbol [2015/02/17 15:44]
filip.jonckers
ivac2:firdef_map_symbol [2015/06/08 16:24]
splendor.bouman [Symbol element]
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] +====== ​Symbol ​element ======
- +
-====== ​symbol ​element ======+
  
 Draw symbols representing navigation points (VOR, NDB, fixes, VFR reporting points, ...) with or without a text label. Draw symbols representing navigation points (VOR, NDB, fixes, VFR reporting points, ...) with or without a text label.
  
 +To insert a line break in the text label use ''/​n''​ in the text string.
  
-^Element|Symbol||+^Root Element|map|| 
 +^Element|symbol||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
 |id|string|symbol id used to draw the symbol (see symbols.xml)| |id|string|symbol id used to draw the symbol (see symbols.xml)|
 |text|string|text label| |text|string|text label|
-|textpos|string|defines at which location relative to the symbol the tag shall be drawnpossible values are: N, NE, E, SE, S, SW, W, NW|+|textpos|string|defines at which location relative to the symbol the tag shall be drawn \\ possible values are: N, NE, E, SE, S, SW, W, NW \\ or use a value in degrees (N=0 E=90 S=180 NW=315)|
 |lat|latitude|string containing the latitude| |lat|latitude|string containing the latitude|
 |lon|longitude|string containing the longitude| |lon|longitude|string containing the longitude|
Line 17: Line 17:
 |y|float|cartesian Y value (if lat/lon not used)| |y|float|cartesian Y value (if lat/lon not used)|
 |color|string|color id name| |color|string|color id name|
-|r|byte|color RGB value  (0-255)| 
-|g|byte|color RGB value  (0-255)| 
-|b|byte|color RGB value  (0-255)| 
  
  
- +===== Example ​=====
-===== example ​=====+
  
 Draw VFR reporting points using a predefined symbol: Draw VFR reporting points using a predefined symbol:
Line 36: Line 32:
           <symbol id="​vfr"​ text="​PEUTIE"​ lat="​N0505555"​ lon="​E0042748"​ color="​VFR"​ />           <symbol id="​vfr"​ text="​PEUTIE"​ lat="​N0505555"​ lon="​E0042748"​ color="​VFR"​ />
           <symbol id="​vfr"​ text="​MECH" ​  ​lat="​N0510042"​ lon="​E0042746"​ color="​VFR"​ />           <symbol id="​vfr"​ text="​MECH" ​  ​lat="​N0510042"​ lon="​E0042746"​ color="​VFR"​ />
-          <symbol id="​vfr"​ text="​ABMECH"​ lat="​N0510117"​ lon="​E0043023"​ color="​VFR"​ textpos="​W" />+          <symbol id="​vfr"​ text="​ABMECH"​ lat="​N0510117"​ lon="​E0043023"​ color="​VFR"​ textpos="​270" />
           <symbol id="​vfr"​ text="​NOSSE" ​ lat="​N0505210"​ lon="​E0043038"​ color="​VFR"​ />           <symbol id="​vfr"​ text="​NOSSE" ​ lat="​N0505210"​ lon="​E0043038"​ color="​VFR"​ />
           <symbol id="​vfr"​ text="​BERTEM"​ lat="​N0505226"​ lon="​E0043659"​ color="​VFR"​ />           <symbol id="​vfr"​ text="​BERTEM"​ lat="​N0505226"​ lon="​E0043659"​ color="​VFR"​ />
Line 66: Line 62:
 </​HTML>​ </​HTML>​
  
 +
 +----
 +
 +[[ivac2:​firdef|Back]]