Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Show 'name' attribute in browser links where available #1777

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 7 comments
Closed

Show 'name' attribute in browser links where available #1777

openstreetmap-trac opened this issue Jul 23, 2021 · 7 comments

Comments

@openstreetmap-trac
Copy link

Reporter: dan[at]karran.net
[Submitted to the original trac issue database at 10.30pm, Thursday, 30th April 2009]

Where an object in the browser section of the site has a name attribute, it would be good to display this as part of the link (along with the ID and version number) to allow users to see at a glance where named objects have are referenced.

For example, in changeset [http://www.openstreetmap.org/browse/changeset/602388 602388], the way [http://www.openstreetmap.org/browse/way/33279387 33279387] would be labeled 'Knighton Avenue' in the list of ways it includes, and in node [http://www.openstreetmap.org/browse/node/14564609 14564609] the ways it belongs to ('Churchfield Lane', 'Woodstock Avenue', 'Glentworth Road'), would have their names displayed instead of just their IDs.

@openstreetmap-trac
Copy link
Author

Author: dan[at]karran.net
[Added to the original trac issue at 10.43pm, Thursday, 30th April 2009]

Perhaps it would also be good to include the ref in brackets if available.

@openstreetmap-trac
Copy link
Author

Author: grand.edgemaster[at]gmail.com
[Added to the original trac issue at 2.21pm, Friday, 1st May 2009]

Yes, I'm a +1 to this, to match the behaviour of the data layer.

@openstreetmap-trac
Copy link
Author

Author: grand.edgemaster[at]gmail.com
[Added to the original trac issue at 11.53pm, Friday, 1st May 2009]

Before I commit to trunk, I would like some views on how I've formatted the appearance of id #/version # details.

The proposed patch is applied to the test API at http://main.dev.openstreetmap.org/browse/changeset/453 (it uses same database and account details as api06.dev.)

@openstreetmap-trac
Copy link
Author

Author: grand.edgemaster[at]gmail.com
[Added to the original trac issue at 11.55pm, Friday, 1st May 2009]

Oh, I've not made the suggested change to how the node is displayed, it simply looks for the name tag on the node, rather than the intersecting ways for now.

@openstreetmap-trac
Copy link
Author

Author: edgemaster
[Added to the original trac issue at 12.26am, Saturday, 2nd May 2009]

(In [14872]) Data browser changes, make links more user friendly, displaying name tag where possible.
Changes to models ok'd (and suggested as temporary solution) by TomH
References #1777

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 11.43am, Sunday, 3rd May 2009]

Change now deployed.

@openstreetmap-trac
Copy link
Author

Author: dan[at]karran.net
[Added to the original trac issue at 12.40pm, Sunday, 3rd May 2009]

Thanks guys, it looks good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant