mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-30 17:00:35 +02:00
Restore the source switcher
This commit is contained in:
31
index.html
31
index.html
@@ -13,6 +13,7 @@
|
||||
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />
|
||||
|
||||
<script src='dist/iD.js'></script>
|
||||
<script src='../node_modules/d3-selection/build/d3-selection.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id='id-container'></div>
|
||||
@@ -25,21 +26,21 @@
|
||||
|
||||
id.ui()(document.getElementById('id-container'));
|
||||
|
||||
// d3.select('#about-list').insert('li', '.user-list')
|
||||
// .attr('class', 'source-switch')
|
||||
// .call(iD.ui.SourceSwitch(id)
|
||||
// .keys([
|
||||
// {
|
||||
// 'url': 'http://www.openstreetmap.org',
|
||||
// 'oauth_consumer_key': '5A043yRSEugj4DJ5TljuapfnrflWDte8jTOcWLlT',
|
||||
// 'oauth_secret': 'aB3jKq1TRsCOUrfOIZ6oQMEDmv2ptV76PA54NGLL'
|
||||
// },
|
||||
// {
|
||||
// 'url': 'http://api06.dev.openstreetmap.org',
|
||||
// 'oauth_consumer_key': 'zwQZFivccHkLs3a8Rq5CoS412fE5aPCXDw9DZj7R',
|
||||
// 'oauth_secret': 'aMnOOCwExO2XYtRVWJ1bI9QOdqh1cay2UgpbhA6p'
|
||||
// }
|
||||
// ]));
|
||||
d3.select('#about-list').insert('li', '.user-list')
|
||||
.attr('class', 'source-switch')
|
||||
.call(iD.ui.SourceSwitch(id)
|
||||
.keys([
|
||||
{
|
||||
'url': 'http://www.openstreetmap.org',
|
||||
'oauth_consumer_key': '5A043yRSEugj4DJ5TljuapfnrflWDte8jTOcWLlT',
|
||||
'oauth_secret': 'aB3jKq1TRsCOUrfOIZ6oQMEDmv2ptV76PA54NGLL'
|
||||
},
|
||||
{
|
||||
'url': 'http://api06.dev.openstreetmap.org',
|
||||
'oauth_consumer_key': 'zwQZFivccHkLs3a8Rq5CoS412fE5aPCXDw9DZj7R',
|
||||
'oauth_secret': 'aMnOOCwExO2XYtRVWJ1bI9QOdqh1cay2UgpbhA6p'
|
||||
}
|
||||
]));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user