This is a cool tool that lets you check out different basemap providers and gives you the references to the tiles for your code. It's based on leaflet but could still be helpful to you. leaflet basemap provider demo
There is this example at github https://github.com/clhenrick/BushwickCommunityMap
It uses the createLayer and createSubLayers options to define different cartodb layers into the map and then it toggles them using buttons and checkboxes that are inside a panel.And also, the layers are added or removed depending of which part of the story you are.
It uses ...
Using Odyssey.js with Cartodb.js is a big problem for using viz.json (vizjson) in odyssey.js.
The CARTO Builder does not have the option to share the viz.json URL due to the current version of CARTO.js (v3.15). This version is not compatible with the Builder. The new version of CARTO.js (v4) will be released by March/April 2017 and CARTO says that it will be ...
Unfortunately, the new version of Builder visualizations are not compatible with Odyssey.js. But as explained in this CARTO HELP article, you can use CARTO.js (and CARTO VL!) in combination with other storytelling libraries to create your own storymap.
You can generate the viz.json by taking the key from the vizualisation link or url:
and appending it in the following format:
Currently, however, this will not contain legend info.
A bit of a hack, but it should do the trick for now, while we wait ...
The Tech Crunch article CartoDB’s Odyssey.js Is An Open-Source Tool For Telling Stories With Interactive Maps points at Daring Fireball as the type of markdown.
There is an associated discussion list on the Daring Fireball site so perhaps it would be the resource from which to get a definitive answer.
I've worked on something similar. You can see and implementation here:
I forget exactly what I did to get the layers turning on and off but I remember that going backwards caused a bit of glitch. That said the following piece of code might help you out:
// fire this each time the user changes a slide