Skip to content

Preserve async tile loading state - #63

Open
janstehno wants to merge 1 commit into
olutter:mainfrom
janstehno:fix/tile-state-async-load
Open

Preserve async tile loading state#63
janstehno wants to merge 1 commit into
olutter:mainfrom
janstehno:fix/tile-state-async-load

Conversation

@janstehno

Copy link
Copy Markdown

This change adds a stable ValueKey to each tile widget based on its zoom level and tile coordinates.

Without a key, Flutter could recreate tile widgets when the tile stack changed during map movement. This caused async tile loading state to be lost and resulted in visible tile flickering.

By preserving tile widget identity, ongoing async loading is maintained across rebuilds.

Fixes flickering during map movement when tiles are loaded asynchronously. This change adds a ValueKey to each tile widget based on its zoom level and tile coordinates.
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.

1 participant