Canvas Map API: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:
== Objective ==
== Objective ==
The Nasal module 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 Nasal module 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.
== Open Issues ==
* Refining the model API
* Using the system for different dialogs & instruments
* generalizing the currently required dialog "prologue" in the Nasal/open block (using caller() and closure())
* supporting/addressing multiple canvases per dialog
* implementing a real MVC controller and porting the code to use it
* improving the MVC separation further
* extending the Layer API to support the z-index (rendering ordering)
* resource cleanup (listeners & timers)


== Design ==
== Design ==

Navigation menu