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

Custom user location annotation view #5037

Closed

Description

@1ec5

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

Activity

  1. added
    iOS
    on May 14, 2016
  2. added this to the ios-v3.3.0 milestone on May 14, 2016
  3. 1ec5 commented on May 14, 2016

    @1ec5
    ContributorAuthor

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

  4. added
    annotations
    on May 24, 2016
  5. modified the milestones: ios-v3.4.0, ios-v3.3.0 on Jun 23, 2016
  6. KevinHu2014 commented on Jul 5, 2016

    @KevinHu2014

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

  7. tobrun commented on Jul 5, 2016

    @tobrun
    Member

    @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.

  8. KevinHu2014 commented on Jul 5, 2016

    @KevinHu2014

    @tobrun Thanks a lot~

  9. friedbunny commented on Aug 16, 2016

    @friedbunny
    Contributor

    Fixed by #5882.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

annotationsfeatureiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions