4

Can you use Torque for country data - polygons instead of points? Make animated maps with polygon data instead of point data? I would like the color of countries to change over time as a particular variable gets smaller and larger.

  • No, you can't do that, torque deals entirely with points. You would either need to use the sql api and set the css on the layer each time or use something like d3js, which will do dynamic chloropleths directly on the client. – John Powell Oct 13 '15 at 7:38
2

What @John Barça says in the comment above is true.

No, Torque does not work with polygons. The Torque wizard is only available for points. Alternatively, there are other options that you could use to show different polygons with respect to time:

The JavaScript API, CartoDB.js, enables you to add interactivity to your maps. In combination with our SQL API, you can build a time-slider and show different polygons depending on how they evolve with respect to time. You can find an example of it here: https://github.com/CartoDB/cartodb.js/blob/develop/examples/time_slider.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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