/
nyc.html
124 lines (111 loc) · 2.83 KB
/
nyc.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<title>Sunset map</title>
<script type="text/javascript" src="/js/core.js"></script>
<script type="text/javascript" src="/js/settings.js"></script>
<script type="text/javascript" src="/js/mercator.js"></script>
<script type="text/javascript" src="/js/geometry.js"></script>
<script type="text/javascript" src="/js/model.js"></script>
<script type="text/javascript" src="/js/renderer.js"></script>
<script type="text/javascript" src="/js/shader.js"></script>
<script type="text/javascript" src="/js/cartodb.sql.js"></script>
<script type="text/javascript" src="/js/cartodb.provider.js"></script>
<!-- carto -->
<script src='../libs/underscore.js' type='text/javascript'></script>
<script src='../libs/carto.js' type='text/javascript'></script>
<script type="text/javascript" src="/libs/suncalc.js"></script>
<script type="text/javascript" src="/libs/modestmaps.js"></script>
<script type="text/javascript" src="/js/vecnik.modestmaps.js"></script>
<script type="text/javascript" src="/js/carto.js"></script>
<style>
html, body, #map {
width: 100%; height: 100%;
padding: 0;
margin: 0;
}
.tod {
position: absolute;
right: 30px;
top: 200px;
background-color: #AAA;
border-radius: 4px;
color: white;
text-decoration: none;
padding: 10px;
font: bold 16px Helvetica;
}
#livecode {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 450px;
padding-left: 10px;
box-shadow: 0px 0px 5px 6px #ccc;
}
textarea {
color: rgba(0,0,0,0.9);
background-color:rgba(255,255,255,0.7);
position: absolute;
left: 10px;
top: 0;
bottom: 0;
padding: 0;
margin: 0;
border: none;
font-family: monospace;
font-size: 19px;
width: 450px;
border: 0;
outline: none;
}
.highlight {
font-family: monospace;
font-size: 19px;
}
.button {
position: absolute;
left: 30px;
bottom: 40px;
background-color: #AAA;
border-radius: 4px;
color: white;
text-decoration: none;
padding: 10px;
font: bold 16px Helvetica;
/*width: 114px;*/
}
input[type="range"] {
-webkit-appearance: none;
background-color: gray;
height: 2px;
position: absolute;
bottom: 56px;
left: 180px;
width: 50%;
z-index: 111;
}
input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
background-color: #aaaaaa;
width: 13px;
height: 20px;
}
</style>
</head>
<body>
<div id="map"></div>
<!--<div id="livecode" class="highlight">-->
</div>
<a href='#' class="button" id="start_animation">start animation</a>
<div class="tod" id="tod"></div>
<input type="range" id="rangeinput" value="1" min="1" max="365"/>
<script type="text/javascript" src="/js/nyc.js"></script>
<script type="text/javascript">
window.onload = function(){
initMap({y: 40.734698,x: -73.995667, z: 13, account: 'viz2', table: 'ny', offset: '-4'});
}
</script>
</body>
</html>