40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>GMaps plus Torque | CartoDB.js</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="https://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
|
|
</head>
|
|
<body>
|
|
<div id="map"></div>
|
|
|
|
<!-- include google maps library -->
|
|
<script type="text/javascript" src="http://www.maps.google.com/maps/api/js?sensor=false&v=3.30"></script>
|
|
|
|
<!-- include cartodb.js library -->
|
|
<script src="https://libs.cartocdn.com.s3.amazonaws.com/cartodb.js/v3/3.15/cartodb.js"></script>
|
|
|
|
<script>
|
|
function main() {
|
|
var vizjson_url = "http://team.cartodb.com/api/v2/viz/5d42a76a-96d1-11e4-976b-0e4fddd5de28/viz.json";
|
|
cartodb.createVis("map", vizjson_url, { share: true, title: true, description: true, search: true
|
|
, gmaps_base_type: 'roadmap'
|
|
})
|
|
.done(function(vis, layers) {
|
|
});
|
|
}
|
|
window.onload = main;
|
|
</script>
|
|
</body>
|
|
</html>
|