Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define Location via Coordinates #131

Open
5 tasks
Tracked by #501
stdavis opened this issue Oct 15, 2024 · 0 comments
Open
5 tasks
Tracked by #501

Define Location via Coordinates #131

stdavis opened this issue Oct 15, 2024 · 0 comments

Comments

@stdavis
Copy link
Member

stdavis commented Oct 15, 2024

Change the default coordinate system to "Decimal, degrees" instead of UTM.
Ensure that all fields in the widget are automatically populated when a user clicks a location on the map.

Reduce the number of digits displayed for decimal degree coordinates to six after the decimal point (from 14)

As a user, I should be able to define the spill location by inputting coordinates in a variety of different coordinate types. These should be validated and should directly update the map and underlying Salesforce fields automatically.

Current implementation:
Image
Image

Supported Coordinate Systems:

  • Decimal Degrees (should be set as default)
  • Degrees, Minutes
  • Degrees, Minutes, Seconds
  • UTM

They no longer want to support TRS.

It’s confusing to the user that coordinates show up in both the map widget and the SF form.
Image

I think that we need to keep the inputs in the map widget to support entering non-default coordinate types. However, maybe they can be hidden after typing them in and hitting a submit button. They should definitely be hidden or updated when the location is updated via map click.

Note

This is also a feature that needs to be built for PLSS.

Tasks

  • Build UI for selecting a coordinate type and inputting coordinate values
  • Update pin on map and zoom
  • Update coordinate fields in Salesforce (converting values, if needed)
  • Make sure that if the location is changed by clicking on the map that the coordinates in this UI are updated as well to eliminate confusion. Or create a better UI that does not create the same kind of confusion that the current one does.
  • Reduce number of digits after the decimal point from 14 down to six for the values that are stored in the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant