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

Trouble with Sprites #584

Closed wmcclin closed 1 year ago

wmcclin commented 1 year ago

I'm having a hard time getting certain sprites to show up as symbols for point data. I've uploaded some sprites that work. Others, don't for reasons that escape me. I also tried cycling through various sprite id's and some work while others don't. The default sprite ID (21) always shows while 49 does not.

Screenshot 2023-04-06 at 5 53 15 PM

Here are some sprites I uploaded and that work:

Mining_small_green Fish_small_red Port_Infrastructure_small Protection_Shield buoy_small

Subsequently, I tried uploading these and none of them work (meaning they upload but they don't show up on the map):

Caution Radio_small azores_place swimming_small

It's almost like the feature to choose custom sprites stopped working.

underbluewaters commented 1 year ago

I think Chrome issued an update that changes CORS behavior, so now SeaSketch is having trouble fetching sprites from s3. This will probably take most of today to fix.

underbluewaters commented 1 year ago

Fixed by making sprite requests same origin and modifying cloudfront to intercept /sprites directory requests.