Adding a direction arrow to your current location on Mapbox (iOS)

I have an application that uses Mapboxto represent a map with a user's location, it looks like this:

Mapbox

I want to add a direction arrow to the current location marker, which shows you the direction you are going, for example:

with arrow

Does anyone know how to add this arrow using Mapbox iOS SDK?

Thank!

+4
source share
1 answer

Mapbox Maps SDK iOS v3.6.3 MGLMapView.showsUserHeadingIndicator. , :

stroked-arrow

. , .

, .


v3.4.0, .

SDK MGLUserLocationAnnotationView, MGLFaux3DUserLocationAnnotationView, .

" ", MGLMapView - , .FollowWithHeading.

+2

Source: https://habr.com/ru/post/1659029/


All Articles