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

An EMPTY tile stays EMPTY #16513

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

ahocevar
Copy link
Member

Since #16455, a tile gets a TileState.EMPTY state when it is disposed. Currently we don't abort tile loading upon disposal, so listeners will still try to set a TileState.LOADED or TileState.ERROR on the tile. This violates the tile loading sequence assertion on the Tiles's setState() method.

This pull request changes the setState() method so it returns early when the tile's state is TileState.EMPTY.

In the future, we could/should abort tile loading upon tile disposal.

Copy link

📦 Preview the website for this branch here: https://deploy-preview-16513--ol-site.netlify.app/.

Copy link
Contributor

@jahow jahow left a comment

Choose a reason for hiding this comment

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

Thanks!

@ahocevar ahocevar merged commit 6d9af58 into openlayers:main Dec 30, 2024
8 checks passed
@ahocevar ahocevar deleted the empty-stays-empty branch December 30, 2024 10:15
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