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

Adding flyTo interpolator option to CameraKeyframes #87

Merged
merged 1 commit into from
May 16, 2021

Conversation

chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented May 16, 2021

Adds a "fly to" style camera transition for geospatial cameras using @math.gl/web-mercator. This is pretty useful when the camera changes by long distance. Similar to the version in deck.gl view state transitions.

API

new CameraKeyframes({
  interpolators: 'flyTo', // string applies to every transition
  timings: [0, 7000, 9000],
  keyframes: [usa, california, usa],
  easings: [easing.easeInOut, easing.easeInOut]
})
new CameraKeyframes({
  interpolators: ['flyTo', 'linear'], // or specify different option for each transition
  ...
})

@coveralls
Copy link

Pull Request Test Coverage Report for Build 846375068

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 836322689: 0.0%
Covered Lines: 2
Relevant Lines: 2

💛 - Coveralls

@chrisgervang chrisgervang merged commit 8eabc09 into visgl:master May 16, 2021
@chrisgervang chrisgervang deleted the flyto-interpolator branch May 16, 2021 05:32
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

Successfully merging this pull request may close these issues.

2 participants