umap
umap copied to clipboard
Ease OSM objects integration through Overpass with a dedicated simple UI
Originally reported by: BitBucket: clkao, GitHub: clkao
It'd be great if we can simply add way/node/relation from osm as data entries in a layer, and apply styles like current layer nodes.
This allows reusing POI/objects, tracking changes from OSM, and encourages people to edit things on OSM first and simply reference them in umap.
- Bitbucket: https://bitbucket.org/yohanboniface/umap/issue/112
Original comment by Yohan Boniface (BitBucket: yohanboniface, GitHub: yohanboniface):
You can do that with "remote data" layer and overpass, see http://www.mappa-mercia.org/2014/09/creating-an-always-up-to-date-map.html :)
Original comment by BitBucket: clkao, GitHub: clkao:
ok, so this is mostly about having a nicer UI for doing such thing.
The particular use case is to simplify the workflow for adding one single object. Ideally i want to be able to simply paste in specific object id, like https://www.openstreetmap.org/node/2857339218 (which can be transformed to a much more complicated overpass query under the hood)
Original comment by BitBucket: clkao, GitHub: clkao:
I tried adding https://www.openstreetmap.org/api/0.6/node/2857339218 as remote data with type osm in a new layer, but it doesn't seem to work?
Original comment by Yohan Boniface (BitBucket: yohanboniface, GitHub: yohanboniface):
You should be able to download your OSM object in osm.xml and paste it into the import panel, with "osm" format, and import it :)
Original comment by Yohan Boniface (BitBucket: yohanboniface, GitHub: yohanboniface):
Humm, at this point you want to import it, so you should just copy-paste it in the import panel.
See http://umap.openstreetmap.fr/en/map/dgom_1#18/25.05140/121.56426 :)
Original comment by BitBucket: clkao, GitHub: clkao:
but the point is to track that object and make use of the name/address etc.
Original comment by Yohan Boniface (BitBucket: yohanboniface, GitHub: yohanboniface):
About the name/address, you need to change the popup template. See http://i.imgur.com/Wo1pqnk.gif
About tracking, so yeah you need to use "remote data" as you were doing before. That should work in theory, BUT I don't think you should use osm.org for this, osm.org is not made to be loaded. Overpass is what you want.
Original comment by BitBucket: clkao, GitHub: clkao:
sure thing, it's definitely not about loading osm.org, but it should be as easy as pasting the object from osm, and use overpass under the hood, without requiring users to craft the raw overpass queries
Original comment by Guillaume Rischard (BitBucket: grischard, GitHub: grischard):
As discussed on IRC, it would also be nice to have a field for overpass queries in overpass QL, XML or wizard. A simple radio button could work to say what type of external layer this is.
I started with a prototype of integrating overpass: https://github.com/sosm/Leaflet.Storage/commit/ec280b45dd0b8a7a534b866d617bc706ce6a60a8 For now it adds a separate category overpass next to remote data. How would that look with the radio button you proposed? I can't find a radio button example in the UI of umap.
@datendelphin cool! Can you share some screenshots of your work so far? And maybe open a pull request so it's easier to review/discuss?
Here is a screenshot:

There are open issues:
- as soon as the settings screen is left, the overpass query disappears
- the turbo usual {{bbox}} is not yet supported
We might want to use https://geodatamine.fr/ through the dedicated API either as a remote layer or as a local copy.