Closed danrademacher closed 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.
Note: I updated links in previous comment to work in GH Pages
This work has been done, and continued in OpenHistoricalMap/issues#758 where the content has been fleshed out more fully.
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:
0.6
globally but could change in future so let's make a place to definenod
,,way
,relation
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?