Canvas Map API: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 3: Line 3:
== Objective ==
== Objective ==
The map.nas in $FG_ROOT/Nasal/canvas will serve as the shared backend for all sorts of mapping/charting purposes in FlightGear. So that GUI dialogs and instruments can use the same code. As of 10/2012 the module is still being designed, so nothing written here is set in stone. This page is just intended to document the whole process.
The map.nas in $FG_ROOT/Nasal/canvas will serve as the shared backend for all sorts of mapping/charting purposes in FlightGear. So that GUI dialogs and instruments can use the same code. As of 10/2012 the module is still being designed, so nothing written here is set in stone. This page is just intended to document the whole process.
== Design ==
The design follows the basic MVC (Model/View/Controller) principle, i.e.:
* the Model is the data to be shown
* the View is the Layer (Canvas group)
* the controller is the interface to update the model and the view (using timers and/or listeners)


== Supported Layers ==
== Supported Layers ==

Navigation menu