bcgov / invasivesbc

Inventory and database repository for the creation, treatment, and report on BC Invasive plants and animals.
Apache License 2.0
13 stars 4 forks source link

Mobile: trying to use geometry tracker with location tracker off causes crash #3574

Closed brennanwebster closed 1 month ago

brennanwebster commented 1 month ago

After selecting linestring or polygon and clicking ok. TypeError: null is not an object (evaluating 'coords.hasOwnProperty').

I don't know what the best solution is for this. It would be nice if clicking the geometry tracker turned on location tracking automatically because I can see people forgetting to do it themselves. But I don't know if the gps accuracy will be bad for the first few seconds and therefor mess up the geometry...we can talk about this.

An easy fix would probably be just popping an error/suggestion in the top right that says you need to turn on location tracking to use the geometry tracker.