Commit e3bd938
committed
fix(geojson-layer): enable wrapLongitude for antimeridian crossing polygons
Enable wrapLongitude on GeoJSON layers so that polygons crossing the
-180/180 longitude boundary (antimeridian) are rendered correctly and
can be displayed simultaneously.
The base layer already sets wrapLongitude: true, but the GeoJSON layer
was overriding it to false without a specific reason. This caused
polygons on opposite sides of the antimeridian to not be visible at
the same time.
Fixes #2668
Signed-off-by: pierreeurope <pierre.europe@pm.me>1 parent cec11f3 commit e3bd938
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| |||
0 commit comments