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

Ensure a unique tile key for each tile coordinate #11646

Merged
merged 1 commit into from
Oct 20, 2020

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Oct 13, 2020

Instead of providing a getKey() method for each subclass of ol/Tile, we can use the one from ol/Tile if we set the key on the instance.

In particular, this pull request fixes issues with custom tileLoadFunctions in applications, in which case there is no need to configure the tile source with a unique url for each tile coordinate. The ol/Tile getKey() function ensures that the tile coordinate is part of the key, to make it unique. The unique key is needed for the tile queue.

Fixes #11626

@ahocevar ahocevar changed the title Use a unique key for all tile classes Ensure a unique tile key for each tile coordinate Oct 17, 2020
@tschaub
Copy link
Member

tschaub commented Oct 20, 2020

Thanks for the additional explanation (wasn’t obvious looking at the diff alone).

@ahocevar ahocevar merged commit 9c964ce into openlayers:main Oct 20, 2020
@ahocevar ahocevar deleted the unique-tile-key branch October 20, 2020 19:12
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.

TileImage/tileLoadFunction: (slow) sequentially tile loading / pause between tileloadend/start
2 participants