From 7a616cc49f9015a5deb5159f1f361f82d2363de8 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 6 Oct 2017 00:31:28 -0400 Subject: [PATCH] Switch to EsriWorldImagery background layer for the tutorial.. --- modules/ui/intro/intro.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/ui/intro/intro.js b/modules/ui/intro/intro.js index 7bc72bdff..678625d7a 100644 --- a/modules/ui/intro/intro.js +++ b/modules/ui/intro/intro.js @@ -83,8 +83,16 @@ export function uiIntro(context) { context.history().reset(); context.history().merge(_values(coreGraph().load(introGraph).entities)); context.history().checkpoint('initial'); - context.background().bing(); - overlays.forEach(function (d) { context.background().toggleOverlayLayer(d); }); + + var esri = context.background().findSource('EsriWorldImagery'); + if (esri) { + context.background().baseLayerSource(esri); + } else { + context.background().bing(); + } + overlays.forEach(function (d) { + context.background().toggleOverlayLayer(d); + }); // Mock geocoder services.geocoder.countryCode = function(location, callback) {