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

Convert template images to SDF icons #7291

Closed
1ec5 opened this issue Dec 5, 2016 · 1 comment
Closed

Convert template images to SDF icons #7291

1ec5 opened this issue Dec 5, 2016 · 1 comment
Labels
feature iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS MapKit parity For feature parity with MapKit on iOS or macOS runtime styling
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Dec 5, 2016

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

@1ec5
Copy link
Contributor Author

1ec5 commented Dec 7, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS MapKit parity For feature parity with MapKit on iOS or macOS runtime styling
Projects
None yet
Development

No branches or pull requests

1 participant