mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
55 lines
2.4 KiB
HTML
55 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<title>iD</title>
|
|
<link rel='stylesheet' href='iD.css'>
|
|
<link rel='icon' type='image/png' href='data:image/png;base64,iVBORw0KGgo='>
|
|
|
|
<!-- mobile devices -->
|
|
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'>
|
|
<meta name='apple-mobile-web-app-capable' content='yes' />
|
|
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />
|
|
|
|
<!--[if !IE]>-->
|
|
<script src='iD.js'></script>
|
|
<!--<![endif]-->
|
|
</head>
|
|
<body>
|
|
<div id='id-container'></div>
|
|
<script>
|
|
if (typeof iD == 'undefined' || !iD.utilDetect().support) {
|
|
document.getElementById('id-container').innerHTML = 'Sorry, your browser is not currently supported. Please use Potlatch 2 to edit the map.';
|
|
document.getElementById('id-container').className = 'unsupported';
|
|
|
|
} else {
|
|
var id = iD.coreContext();
|
|
|
|
// disable boundaries (unless we have an explicit disable_features list)
|
|
var q = iD.utilStringQs(window.location.hash.substring(1));
|
|
if (!q.hasOwnProperty('disable_features')) {
|
|
id.features().disable('boundaries');
|
|
}
|
|
|
|
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'
|
|
}
|
|
])
|
|
);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|