In geo widgets containing a default point `0.0 0.0 ` the trace/shape/point isn't displayed on the map

Open
#942 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

The payload names no source files, so start by reproducing the bug: load a form whose geo widget has a default of 0.0 0.0 (the attached xlsx or an equivalent XForm) and confirm the point, trace or shape is missing from the map. Then find where the geo widget reads its default value and renders it on the map, and check whether a zero coordinate is treated as empty. Done when the default point displays and is saved, matching Enketo's behaviour. Expect to need familiarity with the geo widget first.

Written by the indexing model from the issue text.

Description

Problem description

In geo widgets containing a default point 0.0 0.0 the trace/shape/point isn't displayed on the map .
There is also information that no trace/shape is saved.
There is a similar issue in Collect. issue in Collect
In Enketo the shape/trace/point is displayed on the map

URL of the page

https://test.getodk.cloud/projects/662/forms/geowidgets_with_zero__defaults/draft
https://staging.getodk.cloud/projects/275/forms/geowidgets_with_zero__defaults/draft

Steps to reproduce the problem
  1. Open the form
    https://test.getodk.cloud/projects/662/forms/geowidgets_with_zero__defaults/draft
    geowidgets_with_zero_defaults.xlsx.txt
  2. Check if geo widgets with 0.0 0.0 point are displayed on the map.
Web forms version

1.1.1

Dominant language
TypeScript
Stars
38
Forks
24
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getodk/web-forms

All issues in getodk/web-forms

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.