EmilyMarkowitz-NOAA / survey-live-temperature-shiny

These scripts create daily survey station daily temperature and anomaly plots as the ships work their way through the survey.
https://www.fisheries.noaa.gov/alaska/science-data/near-real-time-temperatures-bering-sea-bottom-trawl-survey
MIT License
1 stars 0 forks source link

Survey stations won't plot w/o error. #8

Closed MichaelSchram-NOAA-Affiliate closed 2 months ago

MichaelSchram-NOAA-Affiliate commented 3 months ago

When 'station points' are toggled in on the application UI, the map fails to render and reports the following error:

Don't know how to get location data from object of class sfc_GEOMETRY,sfc

Unclear what is happening since it's the same st_transform as the strata toggle. Must be related to the underlying data structure in shp_all$survey.grid whereas stratum refers to shp_all$survey.strata

MichaelSchram-NOAA-Affiliate commented 3 months ago

Look into use of addCircleMarkers vs. add Polygons. shp_all$survey.grid contains polygon geometries,

Is addCircleMarkers used for the corner stations rather than the center-point station grid(s)?

MichaelSchram-NOAA-Affiliate commented 2 months ago

Fixed w/ commit 9094a63c9f3f17756486b1391abf7b60ef55f34e