Commit bd6f001
authored
### 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](https://github.com/maplibre/maplibre-gl-js/blob/87486a5ef2085e600e8fa4e31252629dd8488dcd/src/geo/lng_lat_bounds.ts#L342)
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.
1 parent 7f4d1f7 commit bd6f001
1 file changed
+20
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments