posm / OpenMapKitAndroid

http://openmapkit.org
BSD 3-Clause "New" or "Revised" License
128 stars 38 forks source link

Checkout an area from a QR Code #19

Closed dalekunce closed 8 years ago

dalekunce commented 9 years ago

Need the ability to split up an area similar to Field Papers. Users should be able to check out the form, osm file, and mbtiles of the given task area.

jj0hns0n commented 9 years ago

We need a map based way to do this too.

mberg commented 9 years ago

Loading a overpass query via a QR code into OMK would be another cool approach to consider

On Fri, Mar 13, 2015 at 8:29 PM, Jeffrey Johnson notifications@github.com wrote:

We need a map based way to do this too.

— Reply to this email directly or view it on GitHub https://github.com/AmericanRedCross/openmapkit/issues/19#issuecomment-79163040 .

jj0hns0n commented 9 years ago

+1 We should be able to bootstrap the entire set of things needed on the device via a map based interface and then get a QR code so others could also do the same.

dalekunce commented 9 years ago

@jj0hns0n @mberg you guys are thinking exactly what I am. My original idea was a web page with grid overlay that users can then checkout. Users could leave from a central place or checkout a task through a web interface that downloads the overpass and potentially mbtiles to your phone. This would function similar to how the current HOT tasking manager works.

dalekunce commented 9 years ago

After talking with the field paper folks and using it for one day I think this integration needs to be tighter.

hallahan commented 8 years ago

Do we still want to do this?

dalekunce commented 8 years ago

yes!!!!!

hallahan commented 8 years ago

Well then, let's do it!

hallahan commented 8 years ago

One thing we could also do is have OpenMapKit Server generate a QR code for a deployment as well. We don't necessarily need to read a FP QR Code. Deployments are ultimately the responsibility of OpenMapKit Server.

For now, the goal is FP integration, but it's food for thought on a later phase.

https://github.com/soldair/node-qrcode

dalekunce commented 8 years ago

would be cool as well. FP QR code is just a mini deployment :)

hallahan commented 8 years ago

Right now I'm having it automatically download a deployment for a QR code. I'll probably put a button in the map view as well to pan the map to the bounds of the FP scanned with the right MBTiles and OSM activated.

hallahan commented 8 years ago

I'm bumping up the LOE a bit. Checking out an area implies that we activate OSM XML and MBTiles layers associated with a Field Papers deployment. For this to make sense, we need to rearrange how files are laid out in the application.

Right now, they are in /openmapkit/osm and /openmapkit/mbtiles. Now that we are also downloading fp.geojson, it is clear that we really should have files in deployment directories on the phones.

/openmapkit/deployments/<name>/

This will also lend well to constraints, because custom constraints can be associated with a deployment.

hallahan commented 8 years ago

We've got both OSM Layers and Basemap layers working fine with files in deployment directories as well as the original osm and mbtiles dirs.

Next step is checking out the data on the deployment and showing it on the map.

hallahan commented 8 years ago

This is mostly there. I need to have the checkout button show up only when a deployment is done downloading. With that being said, this will close when #122 closes.

hallahan commented 8 years ago

This feature is basically there with the deployments. I'm pulling in what I've got to master, should close this issue, at least for how we've described it.