且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用iOS的mapbox更改showAnnotation缩放?

更新时间: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)