Skip to content

fix: handle center+zoom view changes in MapLibre apply-context-diff#54

Merged
fgravin merged 1 commit intomainfrom
maplibre-view-center
Mar 4, 2026
Merged

fix: handle center+zoom view changes in MapLibre apply-context-diff#54
fgravin merged 1 commit intomainfrom
maplibre-view-center

Conversation

@fgravin
Copy link
Copy Markdown
Member

@fgravin fgravin commented Mar 4, 2026

The MapLibre map was ignoring ViewByZoomAndCenter changes (e.g. from the geocoder), only handling extent-based views. Add an else-if branch to call setCenter/setZoom when center is present, with corresponding tests.

The MapLibre map was ignoring ViewByZoomAndCenter changes (e.g. from the
geocoder), only handling extent-based views. Add an else-if branch to
call setCenter/setZoom when center is present, with corresponding tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fgravin fgravin requested a review from jahow March 4, 2026 08:47
@fgravin fgravin merged commit 5f667ef into main Mar 4, 2026
1 check passed
@fgravin fgravin deleted the maplibre-view-center branch March 4, 2026 09:28
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.

2 participants