OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
19 stars 1 forks source link

Set up basic app page and structure #759

Closed danrademacher closed 5 years ago

danrademacher commented 5 years ago

Based on the pattern in this example: https://greeninfo-network.github.io/cnra-gazetteer/

Let's set up basic sample app and underlying structure.

Inputs:

Let's also add links to make it easy to load these two examples:

We probably want the configuration of the app itself to include setting the AIP root URL, in our case http://www.openhistoricalmap.org/api/

Maybe first pass here is that we can set these variables and get the output of the XML on the page?

gregallensworth commented 5 years ago

The basic build system and demo page concept are in place. Upon cloning and running nvm use and npm start per the docs, one may visit localhost to get a demo page. This demo page is a form using GET method to itself, therefore supports URL params to pre-load a given way/node/relation

Examples: https://openhistoricalmap.github.io/ohm-inspector/ https://openhistoricalmap.github.io/ohm-inspector/?osmtype=way&osmid=198293468 https://openhistoricalmap.github.io/ohm-inspector/?osmtype=way&osmid=198180481 https://openhistoricalmap.github.io/ohm-inspector/?osmtype=way&osmid=198099635 https://openhistoricalmap.github.io/ohm-inspector/?osmtype=way&osmid=198287637

This is merely placeholder functionality, for how the site would eventually have routing to a URL, e.g. /way/198287637 would fill in some JavaScript parameters, or take some other server-side behavior... We need to find out how they want to detect params and instantiate the widget, so we can code for that.

danrademacher commented 5 years ago

Note: I updated links in previous comment to work in GH Pages

gregallensworth commented 5 years ago

This work has been done, and continued in OpenHistoricalMap/issues#758 where the content has been fleshed out more fully.