Back in December it seemed there was no way to bring in a CartoDB layer into a Mapbox.js or Tilemill project.

Has this changed?


I'd like to implement this on a few local government projects I'll be working on shortly.


1 Answer 1


another example that may be useful:

<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.uncompressed.js"></script>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.standalone.js'></script>
function main() {
  var map = new L.Map('map', {
    zoomControl: false,
    center: [43, 0],
    zoom: 3

  cartodb.createLayer(map, 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json').addTo(map)

full example here: https://gist.github.com/javisantana/7200781


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.