Skip to content

[SPIKE] Capturing geotrace and geoshape #187

@ifirmawan

Description

@ifirmawan

Asana task: https://app.asana.com/1/77063628301548/project/1204166279674278/task/1212235435727537?focus=true

User AC

  • The app should offer the same location options as typical Kobo collect (mobile apps):
  • Option 1: Tap to record the current position
  • Option 2: Manual location entry
  • Option 3: Automatic location recording (optional for this Phase)
  • Users can start, pause, and save recorded location points (latitude, longitude[, timestamp]).
  • Users can reset/clear existing recorded locations.

Tech AC

  • Use the native JavaScript Geolocation API: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API/Using_the_Geolocation_API
  • Add a layer control (UI) to Start / Pause / Save location recording.
  • Add a button to Reset / Clear existing recorded locations.
  • Store recorded locations in Antd global store values form. this value can get by this function
  •    `const currentValue = form.getFieldValue([id]);`
    
  • Ensure saved entries include latitude and longitude (and optionally timestamp) for each point.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions