seasketch / next

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

Interactivity for optional basemap layers not working in Fiji MPA review survey #819

Closed petermenzies closed 1 week ago

petermenzies commented 1 week ago

While taking a survey in the Fiji project, in a map-based survey element, interactivity (tooltip, etc.) for optional layers in the basemap aren't working. I'm getting the following error in the chrome console when I move the cursor around the map viewer:

Screenshot 2024-09-25 at 9 23 45 AM



It seems to works fine in the survey editing interface with map-based elements.

Here's the survey that I noticed the issue in: https://www.seasketch.org/fiji/surveys/444/0/practice. In the "Fiji Satellite - Bounds" basemap, the optional layers "Allen Coral - Benthic" and "Allen Coral - Geomorphic" are supposed to have tooltip info. Those layers do overlap the antimeridian - I tried basemaps that used layers split at 180 and layers with longitudes shifted up both with the same result.

Weirdly, I tried replicating this in a survey in my test project using the same mapbox basemap, optional layers, and survey elements, and I wasn’t getting the same error unless I refreshed the page while taking the survey and then the error would occur. Refreshing would also cause the error with different basemaps unrelated to Fiji that had no additional layers overlapping the antimeridian.