更新时间:2023-01-01 22:12:42
What I did is I used the following to make the zoom look much better. Check out here for more info and other versions of this zoom.
let cam2 = mapView.cameraThatFitsShape(object.polyline!, direction: 0.0, edgePadding: .init(top: 20, left: 30, bottom: 100, right: 30))
mapView.fly(to: cam2, withDuration: 0.25, completionHandler: nil)