forked from facebook/Rapid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.83 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>RapiD</title>
<link rel='stylesheet' href='dist/iD.css'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no'/>
<meta name='apple-mobile-web-app-capable' content='yes'/>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'/>
<script src='dist/iD.js'></script>
</head>
<body>
<div id='id-container'></div>
<script>
id = iD.coreContext()
.assetPath('dist/');
// 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': 'MlAcABGGdqadlgrjpmG6qSQu3bwbAgxC7hW0vRwm',
'oauth_secret': 'M0g3lCJTvpnwMic0HYYwwTMpVvugNRlkycQL7so5'
},
{
'urlroot': 'https://api06.dev.openstreetmap.org',
'oauth_consumer_key': 'jrdtIekJNeJmWQClObYPpYqpgJEtopCPrXNT45B8',
'oauth_secret': 'acxu9WuIR4r2x9rr2jGgMEVned63bmh2Yqv6kB2Q'
}
])
);
});
</script>
</body>
</html>