20,741
edits
m (→Demonstration) |
m (→Demonstration) |
||
Line 238: | Line 238: | ||
var r = func(name,vis=1,zindex=nil) return caller(0)[0]; | var r = func(name,vis=1,zindex=nil) return caller(0)[0]; | ||
# TFC, APT and APS are the layer names as per $FG_ROOT/Nasal/canvas/map and the names used in each .lcontroller file | # TFC, APT and APS are the layer names as per $FG_ROOT/Nasal/canvas/map and the names used in each .lcontroller file | ||
# in this case, it will load the traffic layer (TFC), airports (APT) and render an airplane symbol (APS) | |||
foreach(var type; [r('TFC'),r('APT'), r('APS') ] ) | foreach(var type; [r('TFC'),r('APT'), r('APS') ] ) | ||
TestMap.addLayer(factory: canvas.SymbolLayer, type_arg: type.name, visible: type.vis, priority: type.zindex,); | TestMap.addLayer(factory: canvas.SymbolLayer, type_arg: type.name, visible: type.vis, priority: type.zindex,); |