gisaia / ARLAS-wui

Visualize collections of geo referenced data from your Arlas-server
Other
5 stars 2 forks source link

Add find place function in the map control panel #758

Closed sylvaingaudan closed 5 months ago

sylvaingaudan commented 6 months ago

Description of the current behavior

To find a specific address, we need to use another tool than arlas (gmaps), and then go back to arlas and to move around and zoom in/out on the map.

Description of the desired behavior

To find a place, we click on the find location button that is located next to the map control buttons. A pop up opens with free text input field, a "Search" button and a close button.

We can close that popup or we can type text. If we type text and then RETURN or click "search", then a search is done on nominatim. If there's a result, the display_name field value of each entry is displayed in a table, each entry is clickable: if clicked, the map pans to that entry (field lat and lon of the nominatim result) and zooms to the level provided in the environment variable FIND_PLACE_ZOOM_TO, which has a default of 11. If no result, then indicate "No place found"

Note: the current langage must be provided in the url: accept-language=en or accept-language=es. See the nominatim documentation.

Button's icon: location searching

Important:

Nice to have: