mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Fix background layer UI bugs
Add semicolon
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user