cdb
This commit is contained in:
49
lib/assets/javascripts/cdb/examples/odyssey_test.html
Normal file
49
lib/assets/javascripts/cdb/examples/odyssey_test.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user