cartodb-4.42/lib/assets/javascripts/cdb/examples/odyssey_test.html
2024-04-06 05:25:13 +00:00

50 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Easy example | 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 cartodb.js library -->
<script src="../dist/cartodb.uncompressed.js"></script>
<script src="../dist/cartodb.mod.torque.uncompressed.js"></script>
<script src="../odyssey.js"></script>
<script>
function main() {
cartodb.createVis('map', '/odyseey_vizjson/od.json', {
shareable: true,
title: true,
description: true,
search: true,
tiles_loader: true,
center_lat: 0,
center_lon: 0,
zoom: 2,
no_cdn: true
})
.done(function(vis, layers) {
})
.error(function(err) {
console.log(err);
});
}
window.onload = main;
</script>
</body>
</html>