Skip to content

Commit

Permalink
Expose GeoJSON.BoundingBox.append(_:allowSpanningAntimeridian:)
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Dec 7, 2023
1 parent 286a462 commit 99c542f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/GeoJSONKitTurf/Turf+BoundingBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extension GeoJSON.BoundingBox {
self.init(positions: geometries.flatMap(\.positions), allowSpanningAntimeridian: allowSpanningAntimeridian)
}

mutating func append(_ position: GeoJSON.Position, allowSpanningAntimeridian: Bool = true) {
public mutating func append(_ position: GeoJSON.Position, allowSpanningAntimeridian: Bool = true) {
guard !contains(position) else { return }
let north = max(northEasterlyLatitude, position.latitude)
let south = min(southWesterlyLatitude, position.latitude)
Expand Down

0 comments on commit 99c542f

Please sign in to comment.