question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option for disabling interim tiles

See original GitHub issue

When displaying a tile, if that tile is not loaded yet, OpenLayers assumes that it is pertinent to display an “interim tile”, that is a tile that has the same tile coordinates as the parent tile but with a different key – different PARAMS for a WMS source. The relevant code is here.

That behavior is appropriate for some use-cases, as in the wmts-dimensions example. But it is not for other use-cases. For example think about the case of a WMS source where the LAYERS and FILTER params change based on user selections. In that case when the user unselects a layer in the UI you don’t want to show “old” tiles. I am seeing very disturbing artifacts in an OL application because of interim tiles.

So I think it would make sense to add a useInterimTiles option to the tile sources. That option would default to true, but users would be able to set it to false for cases where “interim tiles” do not make sense.

Note that the issue I describe here is completely different from https://github.com/openlayers/openlayers/issues/5251. With “interim tiles” the latter refers to parent tiles at lower resolutions, while this issue refers to tiles with the same x/y/z but with different keys/params.

What do you think?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
elemoinecommented, Apr 11, 2019

@elemoine If you can, I’d suggest using v6, currently at 6.0.0-beta.5. We’ll be releasing 6.0 final very soon.

Yep, maybe. The application I am working on (with others) is about to be released, so I guess it’s not a good time for updating it to using 6.0.0-beta.5.

Your fix above makes sense though. If you want, you can create a pull request against the v5.3.x branch, from which we can release v5.3.2.

Cool. I’ll do that then. I can also provide an example demonstrating the problem.

1reaction
ahocevarcommented, Apr 11, 2019

@elemoine If you can, I’d suggest using v6, currently at 6.0.0-beta.5. We’ll be releasing 6.0 final very soon.

Your fix above makes sense though. If you want, you can create a pull request against the v5.3.x branch, from which we can release v5.3.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable interim tiles for tile layer - openlayers 3 - Stack Overflow
Is there a way to disable creating of these interim tiles, just for a specific layer? It would be disappointing if I'd need...
Read more >
Disable interim tiles for tile layer · Issue #5251 - GitHub
I'm using an OSM source. Just tried the opaque option and that actually changes the behavior to what OpenLayers 3.12 did, great! I...
Read more >
Manage hosted tile layers—ArcGIS Online Help | Documentation
Configure raster tile layer settings​​ Open the tile layer's item page. Click the Settings tab. Scroll to the Tile Layer (hosted) Settings section....
Read more >
Idea to fill the tile gap after removing the wall
Fill the gaps with mortar or any old tile of appropriate thickness., and carpet the whole ... A full replacement would be the...
Read more >
[Updated] Want to disable Tab Groups in Chrome on Android ...
Not everyone is a fan of the new tab groups and grid layout added in Chrome for Android recently and here is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found