From 6de533b71b8e67fa8b6475dfc343a06bc1c52ea6 Mon Sep 17 00:00:00 2001 From: Philosopher Date: Mon, 10 Feb 2014 16:00:34 -0600 Subject: [PATCH] Canvas ND: disable MapStructure TFC layer --- Nasal/canvas/map/navdisplay.mfd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/canvas/map/navdisplay.mfd b/Nasal/canvas/map/navdisplay.mfd index 8b14ebd68..def2a76e7 100644 --- a/Nasal/canvas/map/navdisplay.mfd +++ b/Nasal/canvas/map/navdisplay.mfd @@ -151,7 +151,7 @@ var NDStyles = { }, # end of layer update predicate }, # end of DME layer - { name:'mp-traffic', disabled:1, update_on:['toggle_range','toggle_traffic'], + { name:'mp-traffic', update_on:['toggle_range','toggle_traffic'], predicate: func(nd, layer) { var visible = nd.get_switch('toggle_traffic'); layer._view.setVisible( visible ); @@ -160,7 +160,7 @@ var NDStyles = { } }, # end of layer update predicate }, # end of traffic layer - { name:'TFC', isMapStructure:1, update_on:['toggle_range','toggle_traffic'], + { name:'TFC', disabled:1, isMapStructure:1, update_on:['toggle_range','toggle_traffic'], predicate: func(nd, layer) { var visible = nd.get_switch('toggle_traffic'); layer.group.setVisible( visible );