Canvas Map API: Difference between revisions

Jump to navigation Jump to search
Line 169: Line 169:
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" - 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 files, 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.


This is what the tower.draw file looks like:
This is what the tower.draw file looks like:

Navigation menu