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

Add video to globe release tests #11929

Merged
merged 6 commits into from
May 31, 2022
Merged

Conversation

avpeery
Copy link
Contributor

@avpeery avpeery commented May 24, 2022

Todo: add the option to enable animation of globe rotation on this example

This PR adds a release test with globe view and video. Attempted combining projections drop down to replace other video debug page, but there are bugs when fully zoomed out in other projections (see #11218)

Screen.Recording.2022-05-24.at.9.47.37.PM.mov

Launch Checklist

  • briefly describe the changes in this PR
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'

@avpeery avpeery added skip changelog Used for PRs that do not need a changelog entry testing 💯 labels May 24, 2022
@avpeery avpeery marked this pull request as ready for review May 24, 2022 20:45
Copy link
Contributor

@SnailBones SnailBones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this looks really cool!

Attempted combining projections drop down to replace other video debug page, but there are bugs when fully zoomed out in other projections.

Do we have a ticket for these bugs? It would be great to keep track of this and consider consolidating the video pages if and when non-Mercator projections have full video support.

Tagging https://github.com/mapbox/gl-js-team/issues/429 since this would be great to include as an example.

hash: false,
projection: 'globe'
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should this have atmosphere?

Suggested change
map.on('style.load', () => {
map.setFog({});
});

@avpeery
Copy link
Contributor Author

avpeery commented May 26, 2022

Do we have a ticket for these bugs? It would be great to keep track of this and consider consolidating the video pages if and when non-Mercator projections have full video support.

Yes it's related to this issue (I edited the PR late last night to add it in: #11218)

Copy link
Contributor

@karimnaaji karimnaaji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Also +1 on @SnailBones comment about adding atmosphere on this example. Otherwise LGTM

@avpeery
Copy link
Contributor Author

avpeery commented May 31, 2022

Thanks @SnailBones and @karimnaaji for the reviews - added in atmosphere:
Screen Shot 2022-05-31 at 10 35 40 AM

@karimnaaji karimnaaji merged commit 22e322b into main May 31, 2022
@karimnaaji karimnaaji deleted the avpeery/globe-view-with-image-test branch May 31, 2022 17:43
karimnaaji pushed a commit that referenced this pull request May 31, 2022
* add ozone video on globe to release tests

* formatting

* formatting

* fix lint issues

* simplify play/pause button

* added atmosphere
SnailBones pushed a commit that referenced this pull request Jun 2, 2022
* add ozone video on globe to release tests

* formatting

* formatting

* fix lint issues

* simplify play/pause button

* added atmosphere
karimnaaji added a commit that referenced this pull request Jun 8, 2022
* Add fog render test for empty update parameters (#11900)

* Add precision qualifiers to globe_raster fragment shader (#11903)

* Add filter features within map view with globe release test (#11888)

* add filter features within map view with globe release test

* Fix incorrect circle bucket up direction (#11904)

* Fix for https://github.com/mapbox/mapbox-gl-native-internal/issues/3426

* Update baselines

* ScaleControl: add i18n support (#11850)

* ScaleControl: add i18n support

* hardcode nautical miles as `nm` for all locales

* Add minimum/maximum fields for center/parallels (#11912)

* Add new render test for globe antialiasing (#11933)

* Fix potential flickering on image source updates (#11928)

* Fix flickering of image source on reload

* Add unit tests

* Fix setStyle breaking with globe view (#11913)

* set draping for terrain

* use map option for terrain draping check

* move to one line

* wip: add render test

* fixed error with render test

* demonstrate issue with mercator

* fix background id to update in second setStyle call

* bring zoom out to show sphere

* Updating expected.png

* better readability

* fix conditional

* fix lint

Co-authored-by: Aidan H <[email protected]>

* Fix tiles not rendering across antimeridian in globe (#11943)

* Add video to globe release tests (#11929)

* add ozone video on globe to release tests

* formatting

* formatting

* fix lint issues

* simplify play/pause button

* added atmosphere

* Do not render atmosphere when fog isn't supported by the projection (#11947)

* Clone stylesheet to allow toggling different styles with `setStyle` (#11942)

* clone stylesheet instead of manipulating it directly

* style should not contain terrain since it is no longer being overwritten

* add unit test

* add in default values for terrain when updating

* Add test for projections

* unit test for terrain exaggeration does not need sources

* should have two calls to setStyle to fully test toggling

* default value does not need to be added if previous terrain style also used the default value

* hasOwnProperty is already a boolean

* no need to check currSpec because checks for deep equals and 1 is already set for default

* fix unit tests

* fix style setting in unit test

* accidental deletion

* switch to deep clone from extend

* better way to find default value

* use hasOwnProperty instead

* convert to false from undefined

* create reusable function for setting transition parameters

* update _setTransitionParameters

* mix up between duraton/delay values

* reduce repetitive code to update style spec and transitions between terrain and fog

* revert change

* minimize scale changes when panning in globe view (#11951)

* adjust scale at low zoom levels in globe view

* improve

* Adding render test catching missing tiles with minzoom

* Allowing lower zoom level tiles toward the poles

* Fix lint

* Updating render tests to pass

* Updating tolerances to fix failing tests

* Updating one more tolerance

* Fixing query tests

* use GLOBE_ZOOM_THRESHOLD_MIN

* rename to mercatorScaleRatio

* add comment about matching scale

* avoid recentering on terrain if rendering globe

* update unit tests

* lint

Co-authored-by: Aidan H <[email protected]>

* Do not set the map language to the user's preferred language by default (#11952)

* Do not set the map language to the user's preferred language by default

* fix unit test

* cleanup

* cleanup

* fix worldview setter

Co-authored-by: Mikko Pulkki <[email protected]>
Co-authored-by: Anna Peery <[email protected]>
Co-authored-by: Stepan Kuzmin <[email protected]>
Co-authored-by: Tristen Brown <[email protected]>
Co-authored-by: Aidan H <[email protected]>
Co-authored-by: Ansis Brammanis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Used for PRs that do not need a changelog entry testing 💯
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants