Apple MapKit 3D flyover

后端 未结 4 817
滥情空心
滥情空心 2021-01-31 12:33

Is there any public iOS 8 API available to implement 3D flyover or at least 3D view as shown on Apple Maps App screenshot below?

4条回答
  •  梦毁少年i
    2021-01-31 13:00

    In order to achieve what you want, you have to play with the camera. You'll have to update the pitch, heading, and altitude if needed.

    Have a look here, you'll find everything : MKMapCamera Class Reference

    Update : Unfortunately, you can't pitch maps who are satellite or hybrid.

    If the map type is MKMapTypeSatellite or MKMapTypeHybrid, the pitch value is clamped to 0.

提交回复
热议问题