forked from kennethlee/old-la-restaurants
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cartodb.html
39 lines (35 loc) · 1.09 KB
/
cartodb.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
<!DOCTYPE html>
<html>
<head>
<title>Map: The Oldest Surviving Los Angeles Restaurants</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
</head>
<body>
<div id="map"></div>
<!-- include cartodb.js library -->
<script src="http://libs.cartocdn.com/cartodb.js/v3/3.15/cartodb.js"></script>
<script>
function main() {
cartodb.createVis('map', 'https://danhillreports.cartodb.com/api/v2/viz/2c22e308-3cb1-11e5-b527-0e853d047bba/viz.json', {
})
.done(function(vis, layers) {
window.layers = layers;
})
.error(function(err) {
console.log(err);
});
}
window.onload = main;
</script>
</body>
</html>