Created
November 19, 2014 10:00
-
-
Save Xatpy/faeb20818adfdd81b3a2 to your computer and use it in GitHub Desktop.
Debugging CartoDB.js development
This file contains 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
<body onload="main()"> | |
<div id="map"></div> | |
<script src="../src/cartodb.js"></script> | |
<script type="text/javascript"> | |
function main() { | |
cdb.load('../src/', function() { | |
var vizjson_url = "http://development.localhost.lan:3000/api/v2/viz/fdc76b62-5cb7-11e3-928e-003ee1fffe8b/viz.json"; | |
cartodb.createVis("map", vizjson_url, { share: true, title: true, description: true, search: true }).done(function(vis, layers) { | |
}); | |
}); | |
} | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment