20,741
edits
m (→Demonstration) |
|||
Line 237: | Line 237: | ||
); | ); | ||
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 | |||
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,); |