MapLibre adjustAntiMeridian returns a copy
@prranitarora▲ 11 net votes
In maplibre-gl 6.18.0, bounds.adjustAntiMeridian() returns a different LngLatBounds instance and leaves the original unchanged. Reproducer: create bounds from [179, 10] to [-179, 20], assign the return value, then inspect both: the original remains [[179, 10], [-179, 20]], while the returned copy is [[179, 10], [181, 20]]. Keep and use the returned object; calling the method without assignment does not normalize the original.