flush map after changing connection url

This commit is contained in:
Ansis Brammanis
2013-03-03 21:20:30 -05:00
parent 5b86325b92
commit f757bc965f

View File

@@ -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);