Is it possible to make a CartoDB map auto-refresh using the latest data every [n] seconds using the web interface? I am using the SQL API to update with new positions and would like to see them reflected on the map automatically.

Disclaimer: I am aware of the CartoDB.js library, specifically the refreshTime option for createLayer(). I have successfully created an HTML file following the tutorial to implement the auto-refresh layer. Just wondering if there is an easier way to do this via CartoDB website directly.

2 Answers 2


I doubt that there's an option for this within the CartoDB website interface. Looks like you'll need to use createLayer(), etc. Perhaps someone from CartoDB will see this and then add it as a feature.


No, you can't set refreshTime from the UI, it should be done using javascript API as you point.

The code for this case would be:

cartodb.createLayer(map, ...., {
   refreshTime: 2000 // 2 seconds
  • Would you be able to edit your answer to expand upon it, please? Anything less than about a paragraph like this gets flagged up for review.
    – PolyGeo
    Commented Aug 14, 2014 at 8:20
  • @PolyGeo What would you add? the answer is as simple as that Commented Aug 18, 2014 at 6:54
  • Anything that would give more context like a link to the relevant part of the documentation, perhaps why you cannot see this being added as a feature to CartoDB, etc, etc You seem well qualified (from your user card) to provide an answer - I'm just hoping that you will provide a longer answer because "about a paragraph" is considered minimum length for answers (and questions) here.
    – PolyGeo
    Commented Aug 18, 2014 at 7:08

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.