Skip to content

Instantly share code, notes, and snippets.

@matallo
Created June 1, 2015 16:49
Show Gist options
  • Select an option

  • Save matallo/0ffb28ccafe1ded67574 to your computer and use it in GitHub Desktop.

Select an option

Save matallo/0ffb28ccafe1ded67574 to your computer and use it in GitHub Desktop.
<!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://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.14/themes/css/cartodb.css" />
</head>
<body>
<div id="map"></div>
<!-- include cartodb.js library -->
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.14/cartodb.js"></script>
<script>
function main() {
cartodb.createVis('map', 'https://siggyf.cartodb.com/api/v2/viz/a6363032-75b0-11e4-9185-0e4fddd5de28/viz.json', {
https: true,
time_slider: false,
zoomControl: false,
legends: false,
scrollwheel: false
})
.error(function(err) {
console.log(err);
});
}
window.onload = main;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment