This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ivac2:firdef_map_nav [2011/12/22 22:44] filip.jonckers created |
ivac2:firdef_map_nav [2017/04/08 14:27] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== nav element ====== | ====== nav element ====== | ||
- | Use a linestrip element to draw a single point on the map. | + | Draw navigation points (VOR, NDB, fixes, VFR reporting points, ...) with or without text labels. NAV elements can be also be used to draw text labels on a map. |
^Element|linestrip|| | ^Element|linestrip|| | ||
Line 14: | Line 15: | ||
|lon|longitude|string containing the longitude| | |lon|longitude|string containing the longitude| | ||
|x|float|cartesian X value (if lat/lon not used)| | |x|float|cartesian X value (if lat/lon not used)| | ||
- | y|float|cartesian Y value (if lat/lon not used)| | + | |y|float|cartesian Y value (if lat/lon not used)| |
|stipple|integer|stipple line bitwise pattern definition| | |stipple|integer|stipple line bitwise pattern definition| | ||
|width|float|line width in pixels| | |width|float|line width in pixels| | ||
Line 26: | Line 27: | ||
<HTML> | <HTML> | ||
<p style="border:1px dashed #C11B17;color:#C11B17;"> | <p style="border:1px dashed #C11B17;color:#C11B17;"> | ||
- | Use a <nav> element without a symbol attribute to draw text labels | + | Use a <b>nav</b> element without a symbol attribute to draw text labels |
(example: airspace labels, altitude restrictions, etc...) | (example: airspace labels, altitude restrictions, etc...) | ||
Newlines “\n” are also supported | Newlines “\n” are also supported | ||
Line 35: | Line 36: | ||
===== example ===== | ===== example ===== | ||
+ | Draw VFR reporting points using a predefined symbol: | ||
+ | |||
+ | <code XML> | ||
<maps> | <maps> | ||
<map id="VFR REP POINTS" name="VFR" threshold="150"> | <map id="VFR REP POINTS" name="VFR" threshold="150"> | ||
- | <nav id="TERNAT" short="TE" symbol="vfr" lat="N0505216" lon="E0041014" color="VFR"/> | + | <nav id="TERNAT" short="TE" symbol="vfr" lat="N0505216" lon="E0041014" color="VFR" /> |
- | <nav id="GRBIJG" short="GB" symbol="vfr" lat="N0505231" lon="E0041626" color="VFR"/> | + | <nav id="GRBIJG" short="GB" symbol="vfr" lat="N0505231" lon="E0041626" color="VFR" /> |
- | <nav id="ATOM" short="AT" symbol="vfr" lat="N0505342" lon="E0042029" color="VFR"/> | + | <nav id="ATOM" short="AT" symbol="vfr" lat="N0505342" lon="E0042029" color="VFR" /> |
- | <nav id="BRUCAR" short="CA" symbol="vfr" lat="N0505420" lon="E0042726" color="VFR"/> | + | <nav id="BRUCAR" short="CA" symbol="vfr" lat="N0505420" lon="E0042726" color="VFR" tag="N" /> |
- | <nav id="PEUTIE" short="PU" symbol="vfr" lat="N0505555" lon="E0042748" color="VFR"/> | + | <nav id="PEUTIE" short="PU" symbol="vfr" lat="N0505555" lon="E0042748" color="VFR" /> |
- | <nav id="MECH" short="ME" symbol="vfr" lat="N0510042" lon="E0042746" color="VFR"/> | + | <nav id="MECH" short="ME" symbol="vfr" lat="N0510042" lon="E0042746" color="VFR" /> |
- | <nav id="ABMECH" short="AM" symbol="vfr" lat="N0510117" lon="E0043023" color="VFR"/> | + | <nav id="ABMECH" short="AM" symbol="vfr" lat="N0510117" lon="E0043023" color="VFR" tag="W" /> |
- | <nav id="NOSSE" short="NO" symbol="vfr" lat="N0505210" lon="E0043038" color="VFR"/> | + | <nav id="NOSSE" short="NO" symbol="vfr" lat="N0505210" lon="E0043038" color="VFR" /> |
- | <nav id="BERTEM" short="BE" symbol="vfr" lat="N0505226" lon="E0043659" color="VFR"/> | + | <nav id="BERTEM" short="BE" symbol="vfr" lat="N0505226" lon="E0043659" color="VFR" /> |
</map> | </map> | ||
</maps> | </maps> | ||
- | | + | </code> |
+ | |||
+ | |||
+ | Draw a text label (without using a symbol) - notice that newlines can be used: | ||
+ | |||
+ | <code XML> | ||
<maps> | <maps> | ||
<map id="LOA" name="LOA"> | <map id="LOA" name="LOA"> | ||
Line 54: | Line 63: | ||
</map> | </map> | ||
</maps> | </maps> | ||
+ | </code> | ||
A map containing VOR points could look like this: | A map containing VOR points could look like this: | ||
+ | <code XML> | ||
<maps> | <maps> | ||
<map id="VOR" name="VOR"> | <map id="VOR" name="VOR"> | ||
Line 68: | Line 79: | ||
</map> | </map> | ||
</maps> | </maps> | ||
+ | </code> | ||
+ | |||
- | If there is no short label defined, the long label (id) is always used. | + | note: if there is no short label defined, the long label (id) is always used. |