-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update sources and markers while fog transitioning #10691
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me, nice find! Just some minor suggestion.
These type of fixes should directly target the main
branch so we're sure to not forget about them. Could you cherry-pick this change + #10679 to merge back in main
?
Is there any reasonable way we could unit test that? e.g. confirm that a transition results in a fog update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for release branch, and remainder (unit tests) to be addressed when targeting the main
branch.
* Update sources while fog transitioning * Apply fix to markers * Remove unnecessary comment
* Update sources while fog transitioning * Apply fix to markers * Remove unnecessary comment
* Implement dual ESM + CJS compatibility in style-spec (#10718) * Implement dual ESM + CJS compatibility in style-spec * Try to catch additional references to non-cjs files * Remove accidentally-committed files * Revert main entry point * Revert module field as well * Update sources and markers while fog transitioning (#10691) * Update sources while fog transitioning * Apply fix to markers * Remove unnecessary comment * Include dist/package.json in npm published files (#10668) * Disable fog tile culling with low horizon-blend (#10679) * Cherry-pick changelogs
* Implement dual ESM + CJS compatibility in style-spec (mapbox#10718) * Implement dual ESM + CJS compatibility in style-spec * Try to catch additional references to non-cjs files * Remove accidentally-committed files * Revert main entry point * Revert module field as well * Update sources and markers while fog transitioning (mapbox#10691) * Update sources while fog transitioning * Apply fix to markers * Remove unnecessary comment * Include dist/package.json in npm published files (mapbox#10668) * Disable fog tile culling with low horizon-blend (mapbox#10679) * Cherry-pick changelogs
Addresses #10686
Since fog affects tile culling and marker appearance, this PR checks whether fog is transitioning and updates sources and markers during the transition.
Before this fix (tiles do not load and marker reflects state at the start of the transition rather than during or after it):
After this fix (marker and sources update during transition):
Note:
_updateFog()
alone was not adequate to solve the problem since even if it computes an updated tile culling threshold, it does not apply it.Launch Checklist
@mapbox/map-design-team
@mapbox/static-apis
if this PR includes style spec API or visual changes@mapbox/gl-native
if this PR includes shader changes or needs a native portmapbox-gl-js
changelog:<changelog></changelog>