openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
100 stars 16 forks source link

Style is not loaded - Mapbox #399

Open braddf opened 1 year ago

braddf commented 1 year ago

Describe the bug

Error when loading Quartz UI – if the map has not fully loaded, in particular the internal Style class of the visible mapbox instance, and the data loads in, the app with attempt to apply the data to the map layer styling, resulting in an error.

To Reproduce

Steps to reproduce the behavior:

  1. On refresh, especially if data is cached and returned quickly, sometimes the UI will return this error

Expected behavior

No error 😅