From f757bc965ff1de6f515eed775083f051438bc182 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Sun, 3 Mar 2013 21:20:30 -0500 Subject: [PATCH] flush map after changing connection url --- js/id/ui/source_switch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/ui/source_switch.js b/js/id/ui/source_switch.js index 082857a36..8b770269a 100644 --- a/js/id/ui/source_switch.js +++ b/js/id/ui/source_switch.js @@ -4,12 +4,12 @@ iD.ui.SourceSwitch = function(context) { var live = d3.select(this).classed('live'); - context.map() - .flush(); - context.connection() .url(live ? 'http://api06.dev.openstreetmap.org' : 'http://www.openstreetmap.org'); + context.map() + .flush(); + d3.select(this) .text(live ? t('source_switch.dev') : t('source_switch.live')) .classed('live', !live);