-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
107 lines (95 loc) · 2.31 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" />
<meta charset="utf-8">
<script src="https://unpkg.com/leaflet@1.0.1/dist/leaflet.js"></script>
<script src="lib/leaflet-hash.js"></script>
<script src="https://mapzen.com/tangram/0.9/tangram.min.js"></script>
<style>
html, body {
margin: 0;
font-family: 'Roboto', sans-serif;
font-size: 16px;
}
#wrapper {
position: relative;
}
canvas {position: absolute; top:0; left:0;}
.leaflet-container{ background: black;}
#intro {
position: absolute;
top: 8px;
width: 100%;
z-index: 1000;
color: white;
text-align: center;
}
#intro p {
margin: 0;
text-shadow: 0px 0px 4px rgba(0,0,0,1);
}
.button {
display: inline-block;
padding: 7px;
margin: 10px;
background-color: rgba(255,255,255,.8);
border: 1px solid rgba(0,130,200,.8);
border-radius: 5px;
color: rgba(0,130,200,1);
cursor: pointer;
}
.button#toggle-terrain {
font-size: 12px;
}
.button:hover {
background-color: white;
}
#credit {
position: absolute;
z-index: 1000;
bottom: 5px;
left: 5px;
font-size: 12px;
color: white;
margin: 0;
}
#credit a {
color: white;
}
#drawing {
height: 50px;
width: 100%;
margin-top: -25px;
font-size: 40px;
color: rgba(255,255,255,0.75);
text-align: center;
position: absolute;
top: 50%;
left: 0;
z-index: 1000;
display: none;
}
#search {
border-radius: 3px;
padding-left: 30px;
background: rgba(255,255,255,.8) url(search.png) no-repeat 5px center;
cursor: text;
color: #333;
}
</style>
</head>
<body>
<div id='wrapper'>
<div id='map' style='width:800px;height:530px;'></div>
<div id='intro'>
<p>Move the map to explore the world's flowing terrain, or try one of the example locations below.</p>
<input type='text' size='16' id='search' class='button'></input>
</div>
<div id='drawing'>
Loading...
</div>
</div>
<script src='flows.js'></script>
</body>
</html>