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

Reload tiles after TileJSON is loaded in VectorTileSource#setSourceProperty #11963

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

stepankuzmin
Copy link
Contributor

@stepankuzmin stepankuzmin commented Jun 7, 2022

This PR postpones tiles reloading until TileJSON is loaded in VectorTileSource#setSourceProperty.

This fixes the race condition in #11952, when tiles are being requested with the old language and worldview options before the requested TileJSON updates the source's tiles property in VectorTileSource#load.

This PR also removes the language checks from client, see #11968

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog></changelog>

@stepankuzmin stepankuzmin added release blocker ⛔ skip changelog Used for PRs that do not need a changelog entry labels Jun 7, 2022
@stepankuzmin stepankuzmin requested a review from ansis June 7, 2022 17:13
@stepankuzmin stepankuzmin requested a review from mourner June 8, 2022 12:39
@ansis
Copy link
Contributor

ansis commented Jun 8, 2022

There are some significant remaining issues with localization such as #11969 that need to be addressed. But we can merge as is to get the partial fix into the release since this is not yet a public feature.

@ansis ansis merged commit 41c4f71 into main Jun 8, 2022
@ansis ansis deleted the i18n-fix-race branch June 8, 2022 20:51
karimnaaji pushed a commit that referenced this pull request Jun 8, 2022
…operty (#11963)

* Reload tiles after TileJSON is loaded in setSourceProperty

* add more i18n tests

* drop the language validation

* mark i18n API as private
karimnaaji added a commit that referenced this pull request Jun 8, 2022
* beta.2

* Reload tiles after TileJSON is loaded in VectorTileSource#setSourceProperty (#11963)

* Reload tiles after TileJSON is loaded in setSourceProperty

* add more i18n tests

* drop the language validation

* mark i18n API as private

* update s3 link to lower res video (#11965)

Co-authored-by: Stepan Kuzmin <[email protected]>
Co-authored-by: Anna Peery <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release blocker ⛔ skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants