umap icon indicating copy to clipboard operation
umap copied to clipboard

Ease OSM objects integration through Overpass with a dedicated simple UI

Open yohanboniface opened this issue 11 years ago • 13 comments

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

yohanboniface avatar Sep 12 '14 17:09 yohanboniface

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 :)

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

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)

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

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?

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

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 :)

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

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 :)

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

Original comment by BitBucket: clkao, GitHub: clkao:


but the point is to track that object and make use of the name/address etc.

yohanboniface avatar Sep 12 '14 15:09 yohanboniface

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.

yohanboniface avatar Sep 12 '14 16:09 yohanboniface

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

yohanboniface avatar Sep 12 '14 16:09 yohanboniface

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.

yohanboniface avatar Oct 10 '14 07:10 yohanboniface

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 avatar Oct 21 '17 09:10 datendelphin

@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?

yohanboniface avatar Oct 31 '17 09:10 yohanboniface

Here is a screenshot:

screenshot from 2017-11-01 09-30-33

There are open issues:

  • as soon as the settings screen is left, the overpass query disappears
  • the turbo usual {{bbox}} is not yet supported

datendelphin avatar Nov 01 '17 08:11 datendelphin

We might want to use https://geodatamine.fr/ through the dedicated API either as a remote layer or as a local copy.

davidbgk avatar Mar 18 '24 16:03 davidbgk