From 7c50c01bd3ccc8fc058a063be8dd1180d17fd21b Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 29 Oct 2014 16:06:41 -0400 Subject: [PATCH] mapdata checkboxes should use features.enabled() --- js/id/ui/map_data.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/id/ui/map_data.js b/js/id/ui/map_data.js index 16d308ad2..1fd7fb64c 100644 --- a/js/id/ui/map_data.js +++ b/js/id/ui/map_data.js @@ -8,7 +8,7 @@ iD.ui.MapData = function(context) { function map_data(selection) { function showsFeature(d) { - return autoHiddenFeature(d) ? null : !context.features().hidden(d); + return autoHiddenFeature(d) ? null : context.features().enabled(d); } function autoHiddenFeature(d) { @@ -88,7 +88,6 @@ iD.ui.MapData = function(context) { if (name === 'feature') { items .selectAll('input') - .property('disabled', autoHiddenFeature) .property('indeterminate', autoHiddenFeature); }