CartoDB / odyssey.js

Making it easy to merge map and narrative
BSD 3-Clause "New" or "Revised" License
1.62k stars 188 forks source link

Sandbox: Use the layer's sql if available #217

Open ebrelsford opened 8 years ago

ebrelsford commented 8 years ago

Partial fix to #205. Attempt to use the layer's sql in its options, if this fails create the sql statement as it was previously.

The current way of creating sql statements often fails because the layer name is used as the table name, but these often do not match (I'm assuming because the CartoDB UI changed to allow customizing layer names).