Switch to EsriWorldImagery background layer for the tutorial..

This commit is contained in:
Bryan Housel
2017-10-06 00:31:28 -04:00
parent 3714486ad3
commit 7a616cc49f
+10 -2
View File
@@ -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) {