Working on icons in my #openstreetmap vector style.
-
Working on icons in my #openstreetmap vector style. I found a really nice icon collection in the #osmapp repository.
Then I started to edit the sprite.json file(s) a bit to make the correct icons display, and the style.json file (originally from #openmaptiles) so that it tries the object 'subclass' property and then the 'class' to select an icon.
That works pretty well in most cases, but the tourist information with 'information=terminal" at the local busstation leads to a fun result. I'm not sure what to do about that yet, but maybe havning an icon named 'terminal' is not the best ting.
Some icons at itti-bitty tiny, like the bike parking one. They become more or less unrecognizable. And after some looking around, I ended using a building icon for 'office' - not sure how well that works if there is no name attached.
-
Working on icons in my #openstreetmap vector style. I found a really nice icon collection in the #osmapp repository.
Then I started to edit the sprite.json file(s) a bit to make the correct icons display, and the style.json file (originally from #openmaptiles) so that it tries the object 'subclass' property and then the 'class' to select an icon.
That works pretty well in most cases, but the tourist information with 'information=terminal" at the local busstation leads to a fun result. I'm not sure what to do about that yet, but maybe havning an icon named 'terminal' is not the best ting.
Some icons at itti-bitty tiny, like the bike parking one. They become more or less unrecognizable. And after some looking around, I ended using a building icon for 'office' - not sure how well that works if there is no name attached.
@anderslund does "terminus" work better than "terminal"?
-
@anderslund does "terminus" work better than "terminal"?
@HumanMapping The issue is the way the vector tiles work. These objects has a class of 'information' and a subclass of 'terminal', so given that I try the subclass and then the class for icon name, I end up with 'terminal'.
I can't change the vector tile information, but I can manipulate which icons are available, og even point certain objects to certain icons - but that will creat A LOT of extra code if it becoms a common strategy.
Openstreetmap have several objects with terminal - aeroway=terminal, ferry_terminal, payment=terminal etc. I don't know how most of those translates to openmaptiles data, so I do not know it a 'terminal' icon will be relevant in any case.
For now, I just disabled it, and then the information boards gets a proper 'information' icon
