Skip to content

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

@elenatorro

Description

@elenatorro

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions