Fix background layer UI bugs

Add semicolon
This commit is contained in:
Quincy Morgan
2019-01-30 16:10:01 -05:00
parent 77c4d41855
commit 49d62721d8
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -81,7 +81,7 @@ export function uiBackground(context) {
return context.background().showsLayer(d);
}
selection.selectAll('.layer')
selection.selectAll('li')
.classed('active', active)
.classed('switch', function(d) { return d === _previousBackground; })
.call(setTooltips)
@@ -136,7 +136,7 @@ export function uiBackground(context) {
.sources(context.map().extent())
.filter(filter);
var layerLinks = layerList.selectAll('li.layer')
var layerLinks = layerList.selectAll('li')
.data(sources, function(d) { return d.name(); });
layerLinks.exit()
@@ -181,9 +181,9 @@ export function uiBackground(context) {
.text(function(d) { return d.name(); });
layerList.selectAll('li.layer')
layerList.selectAll('li')
.sort(sortSources)
.style('display', layerList.selectAll('li.layer').data().length > 0 ? 'block' : 'none');
.style('display', layerList.selectAll('li').data().length > 0 ? 'block' : 'none');
layerList
.call(updateLayerSelections);
+1 -1
View File
@@ -178,7 +178,7 @@ export function validationHighwayCrossingOtherWays(context) {
if (hasTag(entity1.tags, 'bridge') && hasTag(entity2.tags, 'bridge')) return false;
if (highwaysDisallowingFords.has(entity1.tags.highway) ||
highwaysDisallowingFords.has(entity2.tags.highway)) {
return false
return false;
}
return true;
}