-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (45 loc) · 1.51 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
48
49
50
51
<!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap
http://github.com/tangrams/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Simple demo – Tangram</title>
<link rel="stylesheet" href="libs/leaflet/1.0.3/leaflet.css"/>
<style>
body {
margin: 0px;
border: 0px;
padding: 0px;
}
#map {
height: 100%;
width: 100%;
position: absolute;
}
</style>
</head>
<body>
<div id="map"></div>
<!-- leaflet -->
<script src="libs/leaflet/1.0.3/leaflet.js"></script>
<!-- Main tangram library -->
<script src="libs/tangram/0.14/tangram.min.js"></script>
<!-- Demo setup -->
<script src="/mappings/cur_tiles.js"></script>
<script src="main.js"></script>
<div style="display:block; z-index: 9999; position: absolute;">
<form>
<input name="layer" type="radio" onclick="set_style('streetcomplete-light', scene);update_ancor(map);">Streetcomplete
Style</input>
<input name="layer" type="radio" onclick="set_style('streetcomplete-dark', scene);update_ancor(map);">StreetComplete Dark Style</input>
<input name="layer" type="radio" onclick="set_style('cinnabar', scene);update_ancor(map);">Cinnabar</input>
</form>
</div>
</body>
</html>