-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
106 lines (89 loc) · 2.14 KB
/
Copy pathtest.html
File metadata and controls
106 lines (89 loc) · 2.14 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>map</title>
<style>
html,
body,
#map {
height: 500px;
width: 650px;
}
.nicebox {
position: absolute;
z-index: 5;
}
#map-controls {
top: 10px;
left: 150px;
width: 200px;
height: 45px;
}
#data-box {
top: 10px;
left: 500px;
height: 45px;
line-height: 45px;
display: none;
}
#map-variable {
width: 150px;
height: 20px;
}
#legend {
display: flex;
display: -webkit-box;
padding-top: 7px
}
.color-key {
background: linear-gradient(to right,
hsl(107, 19%, 89%) 0%,
hsl(168, 40%, 77%) 25%,
hsl(185, 73%, 68%) 50%,
hsl(193, 100%, 56%) 75%,
hsl(209, 85%, 39%) 100%);
flex: 1;
-webkit-box-flex: 1;
margin: 0 5px;
text-align: left;
line-height: 1.0em;
}
#data-label {
font-size: 2.0em;
font-weight: normal;
padding-right: 10px;
}
#data-caret {
margin-left: -5px;
display: none;
font-size: 14px;
width: 14px;
}
</style>
</head>
<body>
<div id="map-controls" class="nicebox">
<div>
<select id="map-variable">
<option value="data-value">Value</option>
<option value="data-count">Count</option>
</select>
</div>
<div id="legend">
<div id="map-min">min</div>
<div class="color-key"><span id="data-caret">◆</span></div>
<div id="map-max">max</div>
</div>
</div>
<div id="data-box" class="nicebox">
<label id="data-label" for="data-value"></label>
<span id="data-value"></span>
</div>
<div id="map"></div>
<script src="map.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDmGnhhccwog6j_hFmAo8zg1VaYWE_m7Ak&callback=initMap">
</script>
</body>
</html>