Skip to content

Interpolate center values (projectionConfig) #369

@DedaDev

Description

@DedaDev

I want to change the center of the map with a button click, but I want the projection to move smoothly.
If I put lat and lng values in a state and change those values in some interval, I'll end up with 50 renders / second which will kill my app.
Is there any better way to do it?

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