CartoDB / airship

A design library for building Location Intelligence applications.
https://carto.com/developers/airship/
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

Default animation for filter property does not work with other filters #639

Open elenatorro opened 5 years ago

elenatorro commented 5 years ago

What is happening?

Right now, we're creating an animation expression after the layer has loaded. In order to combine this animation with other filters, the current way of doing so is to assign this property to a CARTO VL variable (in order to be able to control the animation). We need the variable because if we combine filters in VL, although the filter property is animated, it is not possible to control the animation from the property if this is not composed by only an animation expression. As explained in this CARTO VL issue:

Having this filter:

filter: animation($date, 30, [0.5, 0.5])

We can:

viz.filter.play()

But with:

filter: animation($date, 30, [0.5, 0.5]) and $num > 80

But we can not do it, that's why we use a variable. However, CARTO VL does not allow to assign a new expression to a variable once the layer has been initialized.

What should happen?

We should be able to create an animation or time series widget that creates an animation by default applied to the filter property that can be combined with other filters.

CARTO VL issues: