20,741
edits
m (→Supported Layers: forum2wiki) |
|||
| Line 279: | Line 279: | ||
The callbacks to draw a particular layer element are to be found in [[$FG_ROOT]]/Nasal/canvas/map, at the moment, we have these modules (listed in ascending complexity): | The callbacks to draw a particular layer element are to be found in [[$FG_ROOT]]/Nasal/canvas/map, at the moment, we have these modules (listed in ascending complexity): | ||
* Nasal/canvas/map/tower.draw | * Nasal/canvas/map/tower.draw | ||
* Nasal/canvas/map/dme.draw | |||
* Nasal/canvas/map/navaid.draw | * Nasal/canvas/map/navaid.draw | ||
* Nasal/canvas/map/vor.draw (this demonstrates how to customize/style layers) | |||
* Nasal/canvas/map/parking.draw | * Nasal/canvas/map/parking.draw | ||
* Nasal/canvas/map/runways.draw | * Nasal/canvas/map/runways.draw | ||
* Nasal/canvas/map/taxiways.draw | * Nasal/canvas/map/taxiways.draw | ||
* Nasal/canvas/map/route.draw | |||
* Nasal/canvas/map/traffic.draw | |||
Each "*.draw" file contains a single Nasal function, named "draw_FOO" (by convention, not by requirement)- where FOO is simply chosen based on what is drawn, so you can make up your own name, like "draw_route" for example. | Each "*.draw" file contains a single Nasal function, named "draw_FOO" (by convention, not by requirement)- where FOO is simply chosen based on what is drawn, so you can make up your own name, like "draw_route" for example. | ||