Select first available imagery layer

This commit is contained in:
Aaron Lidman
2014-10-21 17:27:31 -04:00
committed by John Firebaugh
parent dd0e08b244
commit 90b0f1c5bf
+1 -1
View File
@@ -240,7 +240,7 @@ iD.Background = function(context) {
if (chosen && chosen.indexOf('custom:') === 0) {
background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
} else {
background.baseLayerSource(findSource(chosen) || findSource('Bing'));
background.baseLayerSource(findSource(chosen) || findSource('Bing') || backgroundSources[1]);
}
var locator = _.find(backgroundSources, function(d) {