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(landing): Fix the zoom to extend by using maplibre to adjust AntiMeridian. BM-1155 #3384

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Wentao-Kuang
Copy link
Contributor

Motivation

The zoom to extend feature is broken after upgrade the maplibre to latest release. It always zoom back to the whole world when switching layer, seems the caused by the anti Meridian. And this only happens to the Web Mercator

Modifications

Maplibre got a fix of adjustAntiMeridian between v4.5 to v4.71.
I believe that causes some conflicts with the pre-adjust in our system, and this is fixed after we do a maplibre.LngLatBounds.convert for Web Mercator as well.

Verification

Local tested, all zoom to layer working fine for Web Mercator and NZTM now.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner December 19, 2024 21:56
@tawera-manaena
Copy link
Contributor

I've also tested this locally. The 'zoom to layer' function now works again as expected. The failing visual snapshot tests appear to be changes made to the topographic imagery, not something affected by this work. Approving this pull request now.

@tawera-manaena tawera-manaena added this pull request to the merge queue Dec 20, 2024
Merged via the queue into master with commit bd6f001 Dec 20, 2024
11 of 12 checks passed
@tawera-manaena tawera-manaena deleted the fix/zoom-to-layer branch December 20, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants