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

[enhancement] Correct zoom scale and bounds in kepler video export #136

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

chrisgervang
Copy link
Collaborator

@chrisgervang chrisgervang commented Jul 1, 2021

Modifies the export window's viewState to match the main map bounds using WebMercatorViewport.fitBounds.

Screen Shot 2021-07-05 at 4 17 22 PM

TODO

  • Disconnect kepler mapState from animation viewState.
  • Scale export viewState to match bounds of main map
  • Layer zoom scale modified to match main map

References from kepler (using a different approach):

https://github.com/keplergl/kepler.gl/blob/master/src/utils/export-utils.js#L70-L91
https://github.com/keplergl/kepler.gl/blob/master/src/components/plot-container.js#L160-L172

@coveralls
Copy link

coveralls commented Jul 1, 2021

Pull Request Test Coverage Report for Build 1005365957

  • 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 16.701%

Totals Coverage Status
Change from base Build 990848113: 0.0%
Covered Lines: 142
Relevant Lines: 667

💛 - Coveralls

@chrisgervang chrisgervang marked this pull request as ready for review July 6, 2021 17:54
@chrisgervang chrisgervang merged commit 6029126 into master Jul 6, 2021
@chrisgervang chrisgervang deleted the chr/internal-map-state branch October 14, 2021 19:46
@chrisgervang chrisgervang added this to the 1.3 milestone Oct 15, 2021
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