mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 23:43:46 +00:00
flush map after changing connection url
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user