seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Map does not load for one SAP sector #649

Closed wmcclin closed 10 months ago

wmcclin commented 10 months ago

Each time I take this survey (https://www.seasketch.org/curacao/surveys/299/9/) and try to answer the SAP question for subsistence fishing, the map does not load:

Screenshot 2023-10-18 at 10 41 50 AM

If I refresh the page...

Screenshot 2023-10-18 at 10 44 31 AM

And then check the subsistence fishing box, I return to the question and the map loads just fine.

Screenshot 2023-10-18 at 10 45 31 AM

I can repeat this bug by backing up to previous questions about districts & towns. If I select Subsistence Fishing, once again, the map will not load until I repeat the above steps.

underbluewaters commented 10 months ago

The measurement tools update introduced some instability in loading maps in a few different scenarios, possibly because of upgrading Mapbox GL. I've put in some different mitigations that should avoid crashes.