Don't add "None" to imagery_used tag when other imagery was used

(closes #5565)
This commit is contained in:
Bryan Housel
2018-12-11 16:37:52 -05:00
parent 0d958f04c1
commit 577e0c6503
3 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -164,7 +164,12 @@ export function rendererBackground(context) {
window.location.replace('#' + utilQsString(q, true));
}
var imageryUsed = [b.imageryUsed()];
var imageryUsed = [];
var current = b.imageryUsed();
if (current) {
imageryUsed.push(current);
}
_overlayLayers
.filter(function (d) { return !d.source().isLocatorOverlay() && !d.source().isHidden(); })
+1 -1
View File
@@ -467,7 +467,7 @@ rendererBackgroundSource.None = function() {
source.imageryUsed = function() {
return 'None';
return null;
};
+3 -1
View File
@@ -92,7 +92,9 @@ export function uiCommit(context) {
}
tags = _clone(_changeset.tags);
tags.imagery_used = context.history().imageryUsed().join(';').substr(0, 255);
var imageryUsed = context.history().imageryUsed().join(';').substr(0, 255);
tags.imagery_used = imageryUsed || 'None';
_changeset = _changeset.update({ tags: tags });
var header = selection.selectAll('.header')