Canvas Map API: Difference between revisions

Jump to navigation Jump to search
Line 175: Line 175:
* Nasal/canvas/map/taxiways.draw   
* Nasal/canvas/map/taxiways.draw   


Each "*.draw" file contains a single Nasal function, named "draw_FOO" - 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.


When implementing support for new routines, it is recommended to take an existing file, such as the tower.draw or navaid.draw files and just copy/paste and customize things as needed.
When implementing support for new routines, it is recommended to take an existing file, such as the tower.draw or navaid.draw files and just copy/paste and customize things as needed.

Navigation menu