Wiki
Clone wikignd / Debug_UI
Introduction
We're going to be testing the backend database by putting data into OpenLayers.
Steps v1
This needs a very simple web-app, as shown below.
I guess these are the steps:
- Get OL working as local, static html
- Create custom OL app that meets UI spec below
- Move the app into the developer's CouchDb instance, as a CouchApp
- Move the app into my hosted CouchDb instance
- Trim/minify the OL distribution to be as small as possible
Steps v2
An alternate strategy, that doesn't involve CouchApp is:
- Get OL working a local, static html. The OL Vector example should be fine for this
- Commit the OL to a BitBucket Mercurial repository https://bitbucket.org/ianmayo/ianmayo.bitbucket.org. Note, BitBucket is able to serve these sources, so the 'live' copy of the software can be run from there.
- Extend the app to include the requirements recorded below
OpenLayers classes
It is expected that the OL app will read JSON and present it as vector data as demonstrated in: http://openlayers.org/dev/examples/vector-formats.html
The sample track data does actually also contain times. So the demonstrator will be extended to support Time data, as shown in this openlayers sandbox: http://dev.openlayers.org/addins/timedpointtrack/trunk/examples/time-select-control-geojson.html
Data URLS
- Here's a URL for a list of the documents: http://gnd.iriscouch.com/ian_gnd/_all_docs
- And here's a URL for one of the documents (a track in GeoJSON): http://gnd.iriscouch.com/ian_gnd/a245d4184dfc4e11baf2269ded0c180c
NOTE: there's now an updated URL for the list, it's described at https://bitbucket.org/ianmayo/gnd/wiki/CouchViewsShows#!track_listing
NOTE: we now use a *_show* function to view the document in geoJson format, as desribed at: https://bitbucket.org/ianmayo/gnd/wiki/CouchViewsShows#!geojson
Mockup of UI & process
Other details as shown below
Updated