Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolate center values (projectionConfig) #369

Open
DedaDev opened this issue Jan 15, 2025 · 0 comments
Open

Interpolate center values (projectionConfig) #369

DedaDev opened this issue Jan 15, 2025 · 0 comments

Comments

@DedaDev
Copy link

DedaDev commented Jan 15, 2025

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?

@DedaDev DedaDev changed the title Interpolate zoom and center values Interpolate scale and center values (projectionConfig) Jan 15, 2025
@DedaDev DedaDev changed the title Interpolate scale and center values (projectionConfig) Interpolate center values (projectionConfig) Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant