From cefa1d96f1bdda1c0833d4dccd87506eb546c252 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 21 Mar 2014 17:34:34 -0700 Subject: [PATCH] Correctly update UI after choosing GPX file (#2144) --- js/id/ui/background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/id/ui/background.js b/js/id/ui/background.js index bd3f5677c..7287b462d 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -323,6 +323,10 @@ iD.ui.Background = function(context) { context.map() .on('move.background-update', _.debounce(update, 1000)); + + context.background() + .on('change.background-update', update); + update(); setOpacity(opacityDefault);