We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57b356d commit 4937997Copy full SHA for 4937997
1 file changed
Sources/GeoJSONKitTurf/Turf+BoundingBox.swift
@@ -32,7 +32,7 @@ extension GeoJSON.BoundingBox {
32
public var center: GeoJSON.Position {
33
.init(
34
latitude: (southWesterlyLatitude + northEasterlyLatitude) / 2,
35
- longitude: (southWesterlyLongitude + northEasterlyLongitude) / 2
+ longitude: (southWesterlyLongitude + northEasterlyLongitude) / 2 + (spansAntimeridian ? 180 : 0)
36
)
37
}
38
0 commit comments