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

Browsable HTML form of Data #850

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

Browsable HTML form of Data #850

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

Comments

@openstreetmap-trac
Copy link

Reporter: crschmidt[at]crschmidt.net
[Submitted to the original trac issue database at 3.01pm, Saturday, 19th April 2008]

In order to make it easier to point people to a specific OSM object, it would be nice to have a page which displayed a user-oriented visualization of the OSM objects based on their IDs. (This heads towards making links from editors like Potlatch a standard feature).

@openstreetmap-trac
Copy link
Author

Author: crschmidt[at]crschmidt.net
[Added to the original trac issue at 9.40pm, Saturday, 19th April 2008]

Attached patch creates a BrowseController, which has two views: way_view and node_view. ("view" included because in the future I think an 'edit' or 'history' mode is also possible.)

You can see the code in action on:

http://66.92.66.26:3000/node/300

http://66.92.66.26:3000/way/12

(So long as my internet connection stays up.)

Tested in IE6, FF2, FF3, Safari, and Opera.

@openstreetmap-trac
Copy link
Author

Author: crschmidt[at]crschmidt.net
[Added to the original trac issue at 9.42pm, Saturday, 19th April 2008]

Oh, right, and javascripts/map.js has a minor change so that you can tell it which controls to use as an option: this allows for the small map on that page to use the default osm createMap.

@openstreetmap-trac
Copy link
Author

Author: crschmidt[at]crschmidt.net
[Added to the original trac issue at 10.21pm, Saturday, 19th April 2008]

Latest patch integrates updates to the maxResolution/maxExtent, which (so far as I can tell) shouldn't affect anything: This fixes a .5M offset from vector overlays to OSM tiles.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 12.32pm, Sunday, 20th April 2008]

I've created a branch for this work (http://svn.openstreetmap.org/sites/rails_port_branches/data_browser) and committed your patch to it .

@openstreetmap-trac
Copy link
Author

Author: crschmidt[at]crschmidt.net
[Added to the original trac issue at 12.51pm, Sunday, 20th April 2008]

TomH: So what's the process from here? Is there testing or something else that needs to be written? Should I work on importing a larger subset of OSM data and testing it? What are the 'next steps' to take it from living in a branch to living on the main site?

@openstreetmap-trac
Copy link
Author

@openstreetmap-trac
Copy link
Author

Author: crschmidt[at]crschmidt.net
[Added to the original trac issue at 9.52pm, Sunday, 20th April 2008]

Pages now have links back and forth between nodes, and ways, and also have 'navigation' links to go back and forth between next/prev items.

@openstreetmap-trac
Copy link
Author

Author: crschmidt
[Added to the original trac issue at 4.48pm, Wednesday, 23rd April 2008]

Latest patch also adds a 'data' layer to the main map, and allows users to browse OSM data using the main map through that mechanism.

@openstreetmap-trac
Copy link
Author

Author: crschmidt
[Added to the original trac issue at 5.30pm, Wednesday, 23rd April 2008]

TomH: I made one minor change to the code (removing the nodes from the start action) that I can upload a new patch if you like: it's checked into svn.

At this point, I have no plans to do further work on this: I've tested it in IE6 under wine, FF2, FF3, and Safari 3, with no obvious problems.

@openstreetmap-trac
Copy link
Author

Author: tom[at]compton.nu
[Added to the original trac issue at 8.07pm, Wednesday, 5th November 2008]

This was merged some time ago.

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