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

fix: eagerly listen to TileLayer.reset stream to ensure handler is fired #1943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JaffaKetchup
Copy link
Member

Also added refreshing of reset listener when reset stream changes within widget lifecycle.

Fixes #1808. However, the behaviour is still not correct, because the tile loading logic is incorrect. This looks like #1813:

  • If the urlTemplate does not change, tiles are evicted but not loaded until the map is moved (and possibly the tiles are not evicted correctly because they appear to reload quickly, so maybe from cache, but reset should empty cache)
  • If the urlTemplate does change, tiles are evicted but then instantly reloaded (see above), and new tiles load in gradually replacing/overlaying the old ones - the old tiles should not become visible in-between

Therefore, this will need a follow up PR.

Added refreshing of reset listener when reset stream changes within widget lifecycle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

[BUG] TileLayer.reset internal listener never triggers
1 participant