openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.38k stars 1.21k forks source link

Content in info panels is not copyable #4406

Closed yaugenka closed 7 years ago

yaugenka commented 7 years ago

It would be nice to have current object id displayed somewhere and have a possibility to copy it. The current workarround is to open it in the openstreetmap.org and copy from the url, but that's not a comfortable thing.

bhousel commented 7 years ago

iD now has a feature called "Panels" to show more information to advanced users:

⌘ Cmd+⇧ Shift+B: Toggle background panel ⌘ Cmd+⇧ Shift+H: Toggle history panel ⌘ Cmd+⇧ Shift+L: Toggle location panel ⌘ Cmd+⇧ Shift+M: Toggle measurement panel

(note if you are on Windows or Linux, change ⌘ Cmd to Ctrl)

Both the History and the Measurement panels will show you the osm id of the selected feature. Can you try this and let me know if it's what you are looking for?

I'm leaving this open because I think we have a bug that prevents users from copying the stuff that is displayed in these panels.

yaugenka commented 7 years ago

Yes, there is a bug that you cannot copy data from the pannels. Anyway the pannels seem to be a bit excessive for the purpose of getting just the id.

yaugenka commented 7 years ago

When you launch iD from OSM with some object selected, it displays its id in the url. How about changing the id in the url whenever selection is changed?

bhousel commented 7 years ago

When you launch iD from OSM with some object selected, it displays its id in the url. How about changing the id in the url whenever selection is changed?

iD actually does this - but you won't see the url bar change on openstreetmap.org because iD runs in an iframe. This is what I see when I run iD locally:

url_with_selection

Anyway, please just pop open an info panel if you want to look at osm ids. I added these specifically for users with more advanced needs.

yaugenka commented 7 years ago

I noticed that the coordinates in the url change when I move the map in iD on openstreetmap.org, so thought id can be changed as well. But ok if that is not possible.

bhousel commented 7 years ago

I noticed that the coordinates in the url change when I move the map in iD on openstreetmap.org, so thought id can be changed as well. But ok if that is not possible.

It's possible but requires special code to push location updates between the iframe and the parent frame.. I'd rather not complicate that code right now.