TNRIS / InteractiveWaterPlan

Source for the TWDB 2012 Interactive State Water Plan
http://2012.texasstatewaterplan.org
6 stars 0 forks source link

Reload CartoDB Source Layers on Error #135

Open jseppi opened 9 years ago

jseppi commented 9 years ago

Since the CartoDB tile layers expire after about 5 minutes, have a listener for errors that re-requests the tile layer and re-adds it to the map.

jseppi commented 9 years ago

This is the error when the layer is cleared on CartoDB's side:

{
"error": "Map config token '7d07fe96886b5b7b32e0709a8584dc99' not found in redis"
}