Canvas Map API: Difference between revisions

Jump to navigation Jump to search
Line 227: Line 227:
  NavaidModel.new = func make(LayerModel, NavaidModel);
  NavaidModel.new = func make(LayerModel, NavaidModel);
  NavaidModel.init = func {
  NavaidModel.init = func {
  me.clear(); # empty the model's vector
  me._view_handle.reset(); # empty the elements vector and remove all canvas groups from the view layer
  var navaids = findNavaidsWithinRange(50);
  var navaids = findNavaidsWithinRange(50);
  foreach(var n; navaids)
  foreach(var n; navaids)

Navigation menu