osmapp icon indicating copy to clipboard operation
osmapp copied to clipboard

Improvement: Show POI instead of outline for way search results

Open laundmo opened this issue 1 year ago • 4 comments

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.

laundmo avatar Oct 27 '24 16:10 laundmo

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 :)

Dlurak avatar Oct 28 '24 22:10 Dlurak

I'm perfectly fine with showing the way still, that kinda was my idea as well with showing a point in the center.

laundmo avatar Oct 28 '24 22:10 laundmo

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

laundmo avatar Oct 28 '24 23:10 laundmo

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

Dlurak avatar Oct 31 '24 11:10 Dlurak