Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Custom user location annotation view #5037

Closed
1ec5 opened this issue May 14, 2016 · 5 comments
Closed

Custom user location annotation view #5037

1ec5 opened this issue May 14, 2016 · 5 comments
Assignees
Labels
annotations Annotations on iOS and macOS or markers on Android feature iOS Mapbox Maps SDK for iOS
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented May 14, 2016

MGLMapView should call -[MGLMapViewDelegate mapView:viewForAnnotation:] to get the MGLAnnotationView to display for MGLUserLocation. This would allow client code to completely customize the user dot’s appearance. If -mapView:viewForAnnotation: returns nil, MGLMapView should use an MGLUserLocationAnnotationView by default.

/cc @boundsj @friedbunny

@1ec5
Copy link
Contributor Author

1ec5 commented May 14, 2016

This will be a lot more elegant once we implement #5039.

@KevinHu2014
Copy link

@1ec5
How about Android?
Is it possible to custom user location annotation view?

@tobrun
Copy link
Member

tobrun commented Jul 5, 2016

@KevinHu2014 at this point we haven't migrated the MyLocationView component on Android to use annotation views yet but we expose some API to customise it. Take a look at MyLocationViewSettings, this class contains our public API to change the appearance of MyLocationView.

@KevinHu2014
Copy link

@tobrun Thanks a lot~

@friedbunny
Copy link
Contributor

Fixed by #5882.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android feature iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

6 participants