From 232fbf13c8f004f653db6062830ad18f0f9888ab Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 3 May 2017 17:44:54 -0400 Subject: [PATCH] Don't show overlay layers in the walkthrough (re: #4007) --- modules/ui/intro/intro.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui/intro/intro.js b/modules/ui/intro/intro.js index 0682857c5..c87e2aa6a 100644 --- a/modules/ui/intro/intro.js +++ b/modules/ui/intro/intro.js @@ -60,6 +60,7 @@ export function uiIntro(context) { center = context.map().center(), zoom = context.map().zoom(), background = context.background().baseLayerSource(), + overlays = context.background().overlayLayerSources(), opacity = d3.selectAll('#map .layer-background').style('opacity'), loadedTiles = context.connection().loadedTiles(), baseEntities = context.history().graph().base().entities, @@ -74,6 +75,7 @@ export function uiIntro(context) { context.history().merge(d3.values(coreGraph().load(introGraph).entities)); context.history().checkpoint('initial'); context.background().bing(); + overlays.forEach(function (d) { context.background().toggleOverlayLayer(d); }); // Mock geocoder services.geocoder.countryCode = function(location, callback) { @@ -110,6 +112,7 @@ export function uiIntro(context) { context.connection().toggle(true).reset().loadedTiles(loadedTiles); context.history().reset().merge(d3.values(baseEntities)); context.background().baseLayerSource(background); + overlays.forEach(function (d) { context.background().toggleOverlayLayer(d); }); if (history) context.history().fromJSON(history, false); context.map().centerZoom(center, zoom); window.location.replace(hash);