Soil-Carbon-Coalition / atlasbiowork

App framework based on wq for entering georeferenced data about landscape function
4 stars 2 forks source link

latitude and longitude fields #16

Open managingwholes opened 8 years ago

managingwholes commented 8 years ago

Most of our data will be point data, but it is great to be able to specify geometries for sites.

Can the latitude and longitude fields be made editable in boxed fields? What would this involve?

Also, on my Android phone the "number" input type does not give me a keypad with a negative sign, just 0-9 and a decimal point, so if I choose "Enter coordinates" on the locate template, I am stuck in the eastern hemisphere.

sheppard commented 8 years ago

Yes, this could be done by re-using or re-purposing the lat/long editor in "New Site + Observation". One trick will be to convert seamlessly between a geometry field and separate lat/long fields. I have one part of that conversion in the code for saving a new site + observation. The other trick will be to have both Leaflet.draw and wq/locate running on the same map - it should be doable, but might take a little hacking.

For lat/long (and potentially all numbers) we might want to try using <input type=tel> rather than <input type=number>. Using a "telephone" input often brings up a more usable keypad on mobile devices.