Grab set of datapoints for each step for CartoDB torque timeSlider (through JavaScrip

المشرف العام

Administrator
طاقم الإدارة
So I have a regular CartoDB map that has a torque layer with a timeSlider. I know how to access the date for the slider object, but is there a way to access the datapoints for each step as it goes along?

What I want to try and do is access the set of datapoints for each 'step' of the timeSlider, which would be each day in this case. So as the slider moves or steps, I'd have access to the set of data points for that particular day/step.

window.onload = function () { cartodb.createVis('map', 'https://wkaravites.cartodb.com/api/v2/viz/e04e6a5e-8e2e-11e5-9b84-0e787de82d45/viz.json', { zoom: 11 }) .done(function(vis, layers) { var slider = vis.timeSlider; }) .error(function(err) { console.log(err); }); }



أكثر...
 
أعلى