Opened 11 years ago

Closed 11 years ago

#850 closed enhancement (fixed)

Browsable HTML form of Data

Reported by: crschmidt@… Owned by: Tom Hughes
Priority: minor Milestone:
Component: website Version:
Keywords: Cc:

Description

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

Attachments (3)

databrowse.patch (6.0 KB) - added by crschmidt@… 11 years ago.
databrowse.2.patch (6.0 KB) - added by crschmidt@… 11 years ago.
databrowser.patch (32.8 KB) - added by crschmidt 11 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 11 years ago by crschmidt@…

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.

comment:2 Changed 11 years ago by crschmidt@…

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.

Changed 11 years ago by crschmidt@…

Attachment: databrowse.patch added

Changed 11 years ago by crschmidt@…

Attachment: databrowse.2.patch added

comment:3 Changed 11 years ago by crschmidt@…

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.

comment:4 Changed 11 years ago by Tom Hughes

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

comment:5 Changed 11 years ago by crschmidt@…

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?

comment:7 Changed 11 years ago by crschmidt@…

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.

Changed 11 years ago by crschmidt

Attachment: databrowser.patch added

comment:9 Changed 11 years ago by crschmidt

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.

comment:10 Changed 11 years ago by crschmidt

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.

comment:11 Changed 11 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

This was merged some time ago.

Note: See TracTickets for help on using tickets.