Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Halo around Icons #323

Open
ingalls opened this issue Sep 5, 2024 · 2 comments
Open

Investigate Halo around Icons #323

ingalls opened this issue Sep 5, 2024 · 2 comments

Comments

@ingalls
Copy link
Member

ingalls commented Sep 5, 2024

Context

Icons often don't have a high degree of contrast with the base map, investigate adding a halo affect to the icons to increase visibility

image

This could be accomplished one of two possible ways

  • Investigate support for a render-side halo effect in GL - I want to avoid another layer so if it is required I'm less keen on this approach
  • Automatically add a halo affect on the backend during spritesheet generation
@bobgann
Copy link

bobgann commented Sep 5, 2024

This would help us significantly with accessibility. Also the text is too small - it can be zoomed, but if we can make the default a little bigger

@ingalls
Copy link
Member Author

ingalls commented Sep 5, 2024

Maplibre supports this for icons in the SDF format.

Ref: https://maplibre.org/maplibre-style-spec/sprite/#optional-properties

Work would likely require

  • Automatically detecting eligible PNGs for conversion to SDF - not all would be
  • Converting to SDF and adding sdf: true to sprite json output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants