whosonfirst/whosonfirst-www-spelunker

Provide visualization of alternate geometries, links to raw data

Opened this issue · 3 comments

Spelunker would be more useful to me if it provided a visualization of the alternate geometries of a record (if any exist) along with links directly to the raw geojson files for those alternate geometries.

I'd propose two changes to provide this functionality.

First, a row of tabs above the slippery map:

geom_alts_visualizations_as_tabs

Second, some more 'raw data' links in the 'Other' section:

geom_alt_raw_data_links

Thoughts? If these changes look acceptable I'll set them up in a pull request.

Hi @mfogel - the short answer is: Yes!

Visualizing alt geometries has always been on the TODO list (although I can't find an actual issue for it...) but until recently there haven't been enough alt geometries to warrant the time to think about the UI/UX questions, relative to all the other things.

I am not sure that I love the idea of tabs, if only because eventually there won't be enough room above the map to show all the options. Mobile will trigger that scenario almost immediately for a significant number of places.

That said what you're proposing meets the general criteria of "better than yesterday" so I would love you see what you're thinking in a PR. So long as there's nothing that makes rejiggering the UI overy-complicated (when the time comes) this would be a definitely improvement.

Thanks!

@thisisaaronland great!

I'm not nuts about the tabs either. I think it might work better to make the alt geometries available via a map control. Unless you like the tabs better, this is what I'll shoot for in a PR.

geom_alts_visualizations_as_map_layers

I was thinking maybe a select menu – or equivalent – under the map but let's start with what you've got and see how it feels / works.