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.

MGLPinAnnotationView with configurable marker color #2250

Open

Description

@incanus

Once #2106 lands and we have a default marker, we should expose platform-side tinting options that color it on the fly and send it over the MBGL interface to add to the sprite sheet. This would enable mobile APIs similar to Apple MapKit's MKPinAnnotationView.pinColor.

Activity

  1. added
    iOS
    Android
    on Sep 3, 2015
  2. ljbade commented on Oct 2, 2015

    @ljbade
    Contributor

    #2106 landed

  3. ljbade commented on Oct 30, 2015

    @ljbade
    Contributor

    Google Maps also exposes similar in BitmapFactory on Android.

    @incanus Question is, how do we tint just the red part of the marker?

  4. 1ec5 commented on Nov 29, 2015

    @1ec5
    Contributor

    On iOS, you could composite two images: a “template image” that the system can automatically color with the system tint color, and another image that supplies any shadow and shading.

  5. added this to the ios-v3.2.0 milestone on Jan 21, 2016
  6. changed the title [-]default marker annotation imagery with configurable color[/-] [+]MGLPinAnnotationView with configurable marker color[/+] on Jul 8, 2016
  7. modified the milestones: ios-future, ios-v3.4.0 on Aug 12, 2016
  8. added
    MapKit parity
    on Aug 22, 2016
  9. added
    good first issue
    on Oct 18, 2016
  10. 1ec5 commented on Aug 31, 2017

    @1ec5
    Contributor

    This feature was essentially added in mapbox/mapbox-navigation-ios#563 and should be upstreamed to this library.

    /cc @frederoni @bsudekum

  11. stale commented on Oct 28, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  12. added
    archived
    on Oct 28, 2018
  13. removed
    archived
    on Oct 29, 2018
  14. removed
    Android
    on Jan 4, 2019
  15. Skyb0rg commented on May 23, 2019

    @Skyb0rg

    Hi,
    is this availiable right now?
    Cant add MGLPinAnnotationView.
    Did not find it in swift / objective c
    tried to add it in

    func mapView(_ mapView: MGLMapView, viewFor annotation: MGLAnnotation) -> MGLAnnotationView? {
    
    }
    

    Thank you

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

Metadata

Metadata

Labels

MapKit parityfeaturegl-iosgood first issueiOS

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions