diff --git a/js/id/ui/background.js b/js/id/ui/background.js index fa34aceec..364161115 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -8,7 +8,7 @@ iD.ui.Background = function(context) { ['bottom', [0, 1]]], opacityDefault = (context.storage('background-opacity') !== null) ? (+context.storage('background-opacity')) : 0.5, - customTemplate = ''; + customTemplate = context.storage('background-custom-template') || ''; // Can be 0 from <1.3.0 use or due to issue #1923. if (opacityDefault === 0) opacityDefault = 0.5; @@ -64,6 +64,7 @@ iD.ui.Background = function(context) { function setCustom(template) { context.background().baseLayerSource(iD.BackgroundSource.Custom(template)); selectLayer(); + context.storage('background-custom-template', template); } function clickSetOverlay(d) {