This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Show search results as icons on map

0

If you do a search on openstreetmap.org, the results are listed in the left side, as clickable links, zoomed in on #1 of the results.

It would be really great if it was possible to see the results directly on the map, for example if you search for libraries in Copenhagen:

https://www.openstreetmap.org/search?query=bibliotek%20københavn

In stead of zooming on #1 in the result, I think it would be a great feature if the map was zoomed out like below, with the matches shown on the maps as clickable/hoverable icons:

https://www.openstreetmap.org/#map=14/55.6732/12.5921

To avoid over-loading the server a link could be shown next to the search result with the text "Show results on map", and not done by default, the number of entities shown on the map could be limited to for example 50, and the extend of the zoom could be limited to 100x100 Km.

For the sub-feature of making the icons clickable, see "Clickable map icons, for easier access to data" https://help.openstreetmap.org/questions/71485/clickable-map-icons-for-easier-access-to-data

asked 06 Nov '19, 16:58

ragit's gravatar image

ragit
52349
accept rate: 0%

edited 06 Nov '19, 19:47

(06 Nov '19, 17:11) SomeoneElse ♦

That's interesting, thanks for sharing! I do think I prefer to free text search as on openstreetmap.org, and not be limited to filter by category.

(06 Nov '19, 17:24) ragit

Actually, that works quite well, though some amenities such as community_centre is missing, but I found https://facilmap.org/#q=community%20centre%20k%C3%B8benhavn where you can free text search.

(22 Nov '23, 12:03) ragit

Source code available on GitHub .