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.

Convert template images to SDF icons #7291

Closed

Description

@1ec5

The style image API currently converts native image formats to PNG and back. Developers expect that a template image (aka stencil image) can be recolored according to the tint color of the view; analogously, a template image used in a symbol style layer should be recolored according to the layer’s iconColor property.

We should automatically convert template images to SDF format. Like template images, SDF icons are raster, single-color, resizable icons.

This is needed for our runtime styling API to reach parity with MapKit’s annotation API, in the sense that an MKAnnotationView automatically recolors any template image contained in its image property.

/ref mapbox/mapbox-gl-style-spec#97 mapbox/mapbox-gl-style-spec#444
/cc @kkaefer

Activity

  1. added
    iOS
    macOS
    MapKit parity
    on Dec 5, 2016
  2. 1ec5 commented on Dec 7, 2016

    @1ec5
    ContributorAuthor

    Fixed in #7300 on the v3.4.0 release branch.

  3. added this to the ios-v3.4.0 milestone on Dec 7, 2016
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 parityfeatureiOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions