-
-
Save ernesmb/80490597ad592a1ce0bd to your computer and use it in GitHub Desktop.
sla-training_session2:createVis()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CartoTemplate | CartoDB</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" /> | |
<!-- | |
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/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 src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script> | |
--> | |
<!-- Drop your code between the script tags below! --> | |
<script> | |
mapUrl='https://sla-training.cartodb.solutions/user/trainer02/api/v2/viz/1f7a4666-ec4f-11e5-a707-0ea72234a96d/viz.json' | |
cartodb.createVis('map', mapUrl, {//options | |
// center_lat:36, | |
// center_lon:0, | |
// zoom:8, | |
// legends:true, | |
// shareable:true, | |
// title:true, | |
// description:true, | |
// search:true, | |
// zoomControl:true, | |
// loaderControl:true, | |
// cartodb_logo:true, | |
// infowindow:true, | |
// time_slider:false, | |
// layer_selector:true, | |
// legends:true, | |
// https:true, | |
// scrollwheel:true, | |
// fullscreen:true, | |
// mobile_layout:true, | |
// force_mobile:false, | |
// no_cdn:false | |
}) | |
.on('done', function(vis,layers) { | |
// perform asynchronous actions | |
}).on('error', function() { | |
console.log("some error occurred"); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment