Improvement: Show POI instead of outline for way search results
Currently, when searching for example "restaurant" category, some are shown as POIs even when zoomed out, but some are shown only as outlines without the name. This makes some results much less visible.
I propose showing the same logo and name which is shown for points, just in the center of the way.
Some restaurants are mapped as nodes on OpenStreetMap while some are ways. I would much prefer to still show the outline as currently but in addition also the center as you proposed.
I won't be able to do it in the coming days, potentially even a few weeks. I''ll first resolve some other issues and also have some personal work to get done. Still your issue is much appreciated, thanks :)
I'm perfectly fine with showing the way still, that kinda was my idea as well with showing a point in the center.
if i understand correctly as a temporary fix it should be possible to change the overpass query generated to always return both the center and geom here: https://github.com/zbycz/osmapp/blob/105aa1cfc2b516c74cfdfcaea1927ff8388a5bff/src/services/overpassSearch.ts#L15
by simply adding out center qt; at the end of the query. This will then always return a center along with the way - though as a separate element, essentially duplicating it.
just throwing the idea out there
It might also be enough to render areas as filled areas instead of just outlines. Only on really small areas or when zooming out this becomes problematic