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

Generate outlines for symbols using SDF #84

Closed
hiddewie opened this issue Aug 3, 2024 · 2 comments
Closed

Generate outlines for symbols using SDF #84

hiddewie opened this issue Aug 3, 2024 · 2 comments

Comments

@hiddewie
Copy link
Owner

hiddewie commented Aug 3, 2024

From

// TODO https://github.com/maplibre/martin/issues/1075

Ref maplibre/martin#1075 and https://docs.mapbox.com/help/troubleshooting/using-recolorable-images-in-mapbox-maps/#using-sdf-enabled-images

Using SDF sprites will allow defining outlines.

Problem: currently symbols are multi-color. Possible solution is to layer two symbols on top of each other with overlap, one an SDF symbol with outline, the other multi-color static icon.

This also allows hover styles for all icons.

@hiddewie
Copy link
Owner Author

maplibre/martin#1492 implements this in Martin

@hiddewie
Copy link
Owner Author

maplibre/martin#1492 is merged, and this is implemented in #128

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

1 participant