This repository was archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
198 lines (178 loc) · 6.08 KB
/
map.html
File metadata and controls
198 lines (178 loc) · 6.08 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>The map - Yoin</title>
<!-- Included CSS Files (Uncompressed) -->
<!--
<link rel="stylesheet" href="stylesheets/foundation.css">
-->
<!-- Included CSS Files (Compressed) -->
<link rel="stylesheet" href="stylesheets/foundation.min.css">
<link rel="stylesheet" href="stylesheets/app.css">
<script src="javascripts/modernizr.foundation.js"></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="http://cartodb.com/favicon/favicon_32x32.ico" />
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="javascripts/torque/lib/cartodb.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="javascripts/torque/lib/wax.g.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/cartodb-gmapsv3.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/dat.gui.min.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/underscore-min.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/backbone.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/class.js"></script>
<script type="text/javascript" src="javascripts/torque/lib/backbone.cartodb.js"></script>
<script type="text/javascript" src="javascripts/torque/src/canvas_tile_layer.js"></script>
<script type="text/javascript" src="javascripts/torque/src/grid_layer.js"></script>
<script type="text/javascript" src="javascripts/torque/src/torque.js"></script>
<script type="text/javascript">
var gui;
function initialize() {
$(".map_canvas").show();
// initialise the google map
var map = new google.maps.Map(document.getElementById('map_canvas'), {
center:new google.maps.LatLng(30.95940879245423, -0.609375),
zoom:2,
mapTypeId:google.maps.MapTypeId.SATELLITE,
mapTypeControl:false,
minZoom:1
});
var map_style = {};
map_style.google_maps_customization_style = [
{
stylers:[
{ invert_lightness:false },
{ weight:1 },
{ saturation:-100 },
{ lightness:-40 }
]
},
{
elementType:"labels",
stylers:[
{ visibility:"simplified" }
]
}
];
var Soft = function () {
this.Soft = function () {
map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
map.setOptions({styles:map_style.google_maps_customization_style});
}
}
map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
map.setOptions({styles:map_style.google_maps_customization_style});
var TorqueOptions = {
user:'yoin',
table:'venues',
column:'created_at',
steps:1000,
resolution:8,
cumulative:true,
clock:true,
fps:24,
fitbounds:true,
blendmode:'lighter',
trails:true,
point_type:'circle',
countby:'count(i.cartodb_id)',
cellsize:16,
}
var TorqueOptionsCheckins = {
user:'yoin',
table:'checkins',
column:'created_at',
steps:60,
resolution:4,
cumulative:false,
clock:true,
fps:20,
fitbounds:true,
blendmode:'lighter',
trails:true,
point_type:'square',
cellsize:10,
autoplay: false
}
var TorqueOptionsCheckinsHist = {
user:'yoin',
table:'checkinshist',
column:'created_at',
steps:90,
resolution:4,
cumulative:true,
clock:true,
fps:20,
fitbounds:true,
blendmode:'lighter',
trails:true,
point_type:'circle',
countby:'count(i.cartodb_id)',
cellsize:10,
}
var torque = null;
Torque(function (env) {
Torque.app = new env.app.Instance();
//torque = new Torque.app.addLayer(map, TorqueOptions);
//torqueCheckins = new Torque.app.addLayer(map, TorqueOptionsCheckins);
torque = new Torque.app.addLayer(map, TorqueOptionsCheckinsHist);
Torque.env = env;
});
}
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35676190-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body onload="initialize()">
<div id="header">
<div id="header-content" class="row">
<div id="brand" class="three columns">
<a href="/"><img class="brand" src="images/web/logo.png" border="0" /></a>
</div>
<div class="eight columns offset-by-one menu">
<div class="three columns menu-item">
<a href="map.html">
<img src="images/web/map_icon.png" border="0" /><br />
Map
</a>
</div>
<div class="three columns menu-item">
<a href="register.html">
<img src="images/web/register_icon.png" border="0" /><br />
Register
</a>
</div>
<div class="three columns menu-item">
<a href="analytics.html">
<img src="images/web/analytics_icon.png" border="0" /><br />
Analytics
</a>
</div>
<div class="three columns menu-item">
<a href="faq.html">
<img src="images/web/how_to_icon.png" border="0" /><br />
How to
</a>
</div>
</div>
</div>
</div>
<div id="map_canvas"></div>
<div class="torque_time"></div>
<a class="cartodb_logo" href="http://www.cartodb.com" target="_blank">CartoDB</a>
</body>
</html>