LyonDataViz / occupapp

Occupapp
https://occupapp.now.sh/
GNU General Public License v3.0
3 stars 2 forks source link

Capture image from OSM map #37

Open romsson opened 4 years ago

romsson commented 4 years ago

Related to #20

We want to use the application to pick geo-related information (e.g. cities, metro stations, ..) at different scales. Eventually for different types of map layers. OSM is a good candidate.

The question is how to pick the right location/scale on a map.

The simplest approach might be to add an input field for the OSM map url that should capture all the map infos (lat/lon, scale, layers) see this example.

Then either export the map as an image or use actual OSM map as background (but without interactions) see https://wiki.openstreetmap.org/wiki/Slippy_Map

severo commented 4 years ago

related to #9

Fil commented 4 years ago

On peut faire des scripts pour récupérer les "captures d'écran" de fonds OSM, Google Maps, Bing Maps, et (surtout pour la France) du Géoportail.

Pour Google et Bing il faut passer par puppeteer, ce qui n'est pas très pratique pour une application — pour les autres c'est du slippy maps bien plus facile à gérer (j'utilise d3-tile). Les fonds du géoportail sont hyper riches (par ex: le cadastre).

Pour ce qui est des données plutôt que des images, il faut viser soit les tuiles vectorielles, soit les données OSM avec des query au format Overpass. Ce serait une approche très différente.

A noter je ne connais pas d'outil qui approche ce problème de façon globale, il y a des petits outils dispersés.

romsson commented 4 years ago

Good app using mapbox https://nuclearsecrecy.com/nukemap/

(interesting write-up on using maps in apps http://blog.nuclearsecrecy.com/2019/12/13/why-nukemap-isnt-on-google-maps-anymore/)