-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support different icon sets #3025
Comments
I was thinking about working on this issue. icon = p.icon || (geom === 'line' ? 'other-line' : 'marker-stroked'), we do some logic to determine whether it is coming from maki1, maki2 or fontawesome. |
@kepta, it's more complicated than that.. I started to list out the places in code we would need to change, but it got to be quite a lot of things, and I'm still not sure myself if what I am thinking is the best way to support this. I need to think about it for a few days to decide if it's even worth doing. Key challenges to supporting multiple icon sets are:
Update on above: I didn't search well enough before, but somebody already made a repository with automated extract of the svg and png for all the fontawesome glyphs. It's no surprise that something this useful exists already.. |
For now let's just support maki2 and we will revisit later the idea of supporting multiple spritesheets if an iD fork project needs this. |
This is happening anyway for the cleanups for #3924 |
iD supports several icon sets now! You can use any of the following open source map icon sets as preset icons.
When specifying an icon, use the prefixed version of the name, for example |
One actionable thing we can do to get ready for #3024 would be to support icon namespacing in the presets.
For example, we currently do:
And we use a little bit of magic to know that
bicycle
is a Maki icon, and not one found in the iD spritesheet.We should namespace this string to:
The text was updated successfully, but these errors were encountered: