Skip to content

Promote to production: fix blank tiles after GeolocateControl flyTo - #167

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 7, 2026
Merged

Promote to production: fix blank tiles after GeolocateControl flyTo#167
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Promotes fix/map-explorer-blank-tiles-v3 (#166) to production.

Kresna and others added 2 commits August 7, 2026 17:08
Three root causes addressed:

1. Spurious setStyle: the re-style effect was calling map.setStyle() even
   when the resolved URL hadn't changed (e.g. 'auto'→'liberty' with light
   theme resolves to the same URL). MapLibre treats any setStyle call as a
   full style reload, cancelling in-flight tile requests. Added appliedStyleUrl
   ref to skip no-op calls.

2. triggerRepaint after moveend: map.resize() is a no-op when canvas
   dimensions haven't changed (container CSS doesn't change during flyTo),
   so it doesn't kick off tile fetching. Added map.triggerRepaint() after
   resize() to force a render cycle that discovers and requests missing tiles.

3. Explicit minZoom/maxZoom: avoids the MapLibre v6 circular 'get minZoom'
   getter bug (seen in the earlier stack overflow) by giving the transform
   concrete values instead of relying on the derived getter chain.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(maps): prevent blank tiles after GeolocateControl flyTo
@slaveofcode
slaveofcode merged commit 924662c into main Aug 7, 2026
2 of 3 checks passed
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