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.

expose more style properties for annotations #1734

Closed

Description

@incanus

Shape annotations need to support more features in the exposed API.

Definite:

  • line join
  • line cap
  • line dash

Maybe:

  • line/fill image
  • translate (for putting lines next to roads? e.g. multiple transit line colors)
  • antialias off?

@friedbunny

Activity

  1. friedbunny commented on Jun 16, 2015

    @friedbunny
    Contributor

    "Line/fill image" could also be useful for specifying symbols, like arrows. CartoCSS supported this via marker-type: arrow.

    Line stroke would also be nice to have.

  2. jfirebaugh commented on Jun 16, 2015

    @jfirebaugh
    Contributor

    Can we expose exactly the set of properties that are in the style spec?

  3. incanus commented on Jul 1, 2015

    @incanus
    ContributorAuthor

    Can we expose exactly the set of properties that are in the style spec?

    In C++, sure. We shouldn't do this all the way up in iOS because it would just crap up the delegate protocol, since that's where we configure these things (on a per-annotation basis).

  4. added this to the iOS Beta 3 milestone on Jul 1, 2015
  5. self-assigned this
    on Jul 1, 2015
  6. incanus commented on Jul 2, 2015

    @incanus
    ContributorAuthor

    Line stroke would also be nice to have.

    BTW, this is in there for polylines already. For polygons, see #1737 for why we can't do this right now.

  7. added a commit that references this issue on Jul 2, 2015
  8. friedbunny commented on Jul 2, 2015

    @friedbunny
    Contributor

    @incanus I suppose I mean "stroke" in the Photoshop sense — an external casing around the filled line. Right now this requires duplicating the line and widening it, unless I'm missing something.

  9. incanus commented on Jul 6, 2015

    @incanus
    ContributorAuthor

    De-prioritizing this in light of #1839, which solves the immediate problem at hand.

  10. removed this from the iOS Beta 3 milestone on Jul 6, 2015
  11. webventil commented on Aug 20, 2015

    @webventil

    What about different colors or each shape point? Than there might be the possibility to make color gradients between each point to have something like heat maps for graphs.

  12. incanus commented on Aug 20, 2015

    @incanus
    ContributorAuthor

    @webventil Interesting idea, but not yet supported in the renderer, let alone exposed. Mind opening a new ticket for the feature so we can track?

  13. webventil commented on Aug 21, 2015

    @webventil

    I created a new issue for it (#2142).

  14. 2 remaining items

  15. ljbade commented on Oct 28, 2015

    @ljbade
    Contributor

    This ticket is superseeded by #837 which will allow the full range of style properties.

  16. incanus commented on Nov 4, 2015

    @incanus
    ContributorAuthor

    @jfirebaugh Should we close this in favor of #837 then?

  17. added
    iOS
    macOS
    MapKit parity
    on Aug 26, 2016
  18. 1ec5 commented on Aug 26, 2016

    @1ec5
    Contributor

    Reopening: the runtime styling API (#837, #5626) has landed on iOS and macOS, but something directly compatible with the existing annotation API would be a boon for developers who have to use that API for various reasons.

    Per #6172 (comment), support for additional annotation properties is mainly a matter of plumbing through style properties that can be applied to the symbol, line, or fill layer that the annotation adds to the style. We want to avoid a proliferation of methods on MGLMapViewDelegate; at the same time, MapKit’s MKOverlayRenderer class hierarchy may be a poor fit for our annotation implementation. Instead, we could introduce the idea of a prototype style layer: a single method on MGLMapViewDelegate, -mapView:prototypeStyleLayerForAnnotation: that returns an MGLStyleLayer object. The SDK would extract the underlying mbgl::style::Layer object and use it in mbgl::LineAnnotationImpl::updateStyle().

  19. reopened this on Aug 26, 2016
  20. removed their assignment
    on Sep 6, 2016
  21. jfirebaugh commented on Sep 27, 2016

    @jfirebaugh
    Contributor

    Re-closing; I feel strongly that we should focus our limited resources on the runtime styling API.

  22. added
    Tangram parity
    on Apr 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MapKit parityTangram parityfeatureiOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions