earthobservations / luftdatenpumpe

Acquire and process live and historical air quality data without efforts. Filter by station-id, sensor-id and sensor-type, apply reverse geocoding, store into time-series and RDBMS databases, publish to MQTT, output as JSON, or visualize in Grafana. Data sources: Sensor.Community (luftdaten.info), IRCELINE, and OpenAQ.
https://luftdatenpumpe.readthedocs.io/
GNU Affero General Public License v3.0
35 stars 3 forks source link

Extend map view to include city/town border when a city/town is selected #62

Open ohobby opened 1 year ago

ohobby commented 1 year ago

Hi,

would it be possible to extend the map view so that you can activate the display of the city/town boundaries when you select a city?

Regards, Oliver

amotl commented 1 year ago

Hi Oliver,

thanks for your suggestion. This will probably have to be handled as a feature request to panodata-map-panel, but let's discuss it here beforehand.

Let's use a map of Italy ^1 as an example. How would you like to improve the interaction with the map, i.e. how do you define "extend", "activate", "display", and "select"? What should be "extended", and how, and which "display" should be "activated", and how?

Also, with "select a city", do you refer to the location chooser component at the top of the page?

image

Are you exclusively referring to the map display component? Do you want it to automatically pan/zoom the map somewhere when interacting with it?

With kind regards, Andreas.

amotl commented 1 year ago

Do you want the map component to automatically pan/zoom the map somewhere?

The feature you are asking for might be the Fit to data functionality implemented in our fork of Worldmap. Maybe turning on that option already solves your needs.

image

ohobby commented 1 year ago

Hi Andreas, yes the "Fit to data" is good to zoom in to the selected city. (At the linked Italy Map, it is not possible to activate, because the Map is only readonly ;-) ) To activate the city/town border view, is possible a point to place under the Visual options or as option button near the City select field. Sorry, that i don't place it under panodata-map-panel

ohobby commented 1 year ago

City (and possible State) border like this https://nominatim.openstreetmap.org/ui/search.html?q=verona (This is also a possible source for the City Borders.)

amotl commented 1 year ago

yes the "Fit to data" is good to zoom in to the selected city

👍

At the linked Italy Map, it is not possible to activate, because the Map is only readonly ;-)

That's true. Did you manage to turn it on on your own installation?

Sorry, that i don't place it under panodata-map-panel.

Your request is very welcome here, in order to get that into the same context. I found those issues, and I think they might reflect your request already?

To activate the city/town border view, is possible a point to place under the Visual options or as option button near the City select field.

If this feature would be in place, I am sure we will find a smart way to "activate" it.