From 2f81cd672986276df896c09b05c9dd53cdb3afc2 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 12 Nov 2017 11:37:53 -0500 Subject: [PATCH] Add source switcher to dist/index.html (closes #4405) --- dist/index.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/dist/index.html b/dist/index.html index d8fa8ab1b..0246a2cf5 100644 --- a/dist/index.html +++ b/dist/index.html @@ -46,7 +46,23 @@ id.features().disable('boundaries'); } - id.ui()(document.getElementById('id-container')); + id.ui()(document.getElementById('id-container'), function() { + id.container().select('#about-list') + .insert('li', '.user-list') + .attr('class', 'source-switch') + .call(iD.uiSourceSwitch(id) + .keys([{ + 'urlroot': 'https://www.openstreetmap.org', + 'oauth_consumer_key': '5A043yRSEugj4DJ5TljuapfnrflWDte8jTOcWLlT', + 'oauth_secret': 'aB3jKq1TRsCOUrfOIZ6oQMEDmv2ptV76PA54NGLL' + }, { + 'urlroot': 'https://api06.dev.openstreetmap.org', + 'oauth_consumer_key': 'zwQZFivccHkLs3a8Rq5CoS412fE5aPCXDw9DZj7R', + 'oauth_secret': 'aMnOOCwExO2XYtRVWJ1bI9QOdqh1cay2UgpbhA6p' + } + ]) + ); + }); }