From 643df21cd9b4940447e45ebbf067445b16bedb25 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 3 Mar 2016 13:19:49 -0500 Subject: [PATCH] Fix selector for .layer-background opacity (fixes #3010) --- js/id/ui/intro.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/ui/intro.js b/js/id/ui/intro.js index 11feb1557..3938cad2d 100644 --- a/js/id/ui/intro.js +++ b/js/id/ui/intro.js @@ -58,7 +58,7 @@ iD.ui.intro = function(context) { center = context.map().center(), zoom = context.map().zoom(), background = context.background().baseLayerSource(), - opacity = d3.select('.background-layer').style('opacity'), + opacity = d3.selectAll('#map .layer-background').style('opacity'), loadedTiles = context.connection().loadedTiles(), baseEntities = context.history().graph().base().entities, introGraph, name; @@ -81,7 +81,7 @@ iD.ui.intro = function(context) { context.history().merge(d3.values(iD.Graph().load(introGraph).entities)); context.background().bing(); - d3.select('.background-layer').style('opacity', 1); + d3.selectAll('#map .layer-background').style('opacity', 1); var curtain = d3.curtain(); selection.call(curtain); @@ -106,7 +106,7 @@ iD.ui.intro = function(context) { steps[steps.length - 1].on('startEditing', function() { curtain.remove(); navwrap.remove(); - d3.select('.background-layer').style('opacity', opacity); + d3.selectAll('#map .layer-background').style('opacity', opacity); context.connection().toggle(true).flush().loadedTiles(loadedTiles); context.history().reset().merge(d3.values(baseEntities)); context.background().baseLayerSource(background);