Commit Graph
12 Commits
Author SHA1 Message Date
Daniel García Aubert e7e3d612a1 Use strict mode in modules under lib folder (except lib/cartodb/models/resource-locator.js) 2018-10-23 17:45:42 +02:00
Javier Goizueta e89503e1fa Subsitute tokens to get columns for dates_as_numbers
Fixes #980
2018-06-18 13:16:49 +02:00
Javier Goizueta 4a52620d83 Various fixes
This avoids errors when trying to wrap dates or detect wrapped dates in non-mapnik layers
2018-06-12 12:05:31 +02:00
Javier Goizueta 660c1777e3 Fix per-layer date wrapping 2018-06-11 19:31:42 +02:00
IagoLast a883514c8a Remove control flag 2018-06-05 09:35:01 +02:00
IagoLast 9ee6d7fc91 Implement multiple layer date wrapping 2018-06-05 09:34:44 +02:00
IagoLast 2ee6c8487d PR style fixes 2018-06-05 08:44:20 +02:00
IagoLast 8ec2b35557 Fix tests 2018-06-01 12:25:36 +02:00
Ubuntu ae4b233458 Pass tests 2018-06-01 10:18:07 +00:00
elenatorro d4c6282455 Refactor date wrapper 2018-05-31 18:53:01 +02:00
elenatorro db3370cd21 Use wrapDates function from vector adapter 2018-05-31 18:46:23 +02:00
IagoLast 3850bbb68e Send dates as unix epoch instead strings in .mvt files
This commit creates a new ConfigAdapter used in vector maps instantiations.
This adapter generates a new sql query for ONE SINGLE LAYER (carto-vl currently only supports one layer per mvt)
where the date columns are wrapped into a epoch using the `date_part` function.

Due this mvt files are smaller since we use numbers instead strings to represent dates, this is also faster in carto-gl
where we interpolate linearly between 0 and 1 to create animations.

Notice we should add a parameter to make this transformation optional.
We also should take into account the epoch precission.
2018-05-31 17:49:40 +02:00