Canvas Map API: Difference between revisions

Jump to navigation Jump to search
Line 219: Line 219:
</syntaxhighlight>
</syntaxhighlight>


Once you have created your own "draw" implementation, you still need to have a data source or "provider" that determines for what data the callback needs to be invoked. This is currently still a little "hackish" and still work in progress. So we have just a very simple MVC model at the moment, whose interface needs to be implemented.
Once you have created your own "draw" implementation, you still need to have a data source (i.e. a "provider") that determines what data the callback needs to be invoked for.  
This is currently still a little "hackish" and still work in progress. So we have just a very simple MVC model at the moment, whose interface needs to be implemented.


For example, the various airport-specific "layers" all use the same "AirportModel" to be found in airport.model. In the future, other models can be found in *.model files. For a simple example of how to populate the model, just refer to the file "navaid.model", which is shown here:
For example, the various airport-specific "layers" all use the same "AirportModel" to be found in airport.model. In the future, other models can be found in *.model files. For a simple example of how to populate the model, just refer to the file "navaid.model", which is shown here:

Navigation menu