Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change color of circle marker border #354

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion R/Figures.R
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,16 @@ TADA_OverviewMap <- function(.data) {
leaflet::clearShapes() %>% # get rid of whatever was there before if loading a second dataset
leaflet::fitBounds(lng1 = min(sumdat$TADA.LongitudeMeasure), lat1 = min(sumdat$TADA.LatitudeMeasure), lng2 = max(sumdat$TADA.LongitudeMeasure), lat2 = max(sumdat$TADA.LatitudeMeasure)) %>% # fit to bounds of data in tadat$raw
leaflet::addCircleMarkers(
data = sumdat, lng = ~TADA.LongitudeMeasure, lat = ~TADA.LatitudeMeasure, color = "black", fillColor = ~ pal(Parameter_Count), fillOpacity = 0.7, stroke = TRUE, weight = 1.5, radius = sumdat$radius,
data = sumdat,
lng = ~TADA.LongitudeMeasure,
lat = ~TADA.LatitudeMeasure,
# sets color of monitoring site circles
color = "red",
fillColor = ~ pal(Parameter_Count),
fillOpacity = 0.7,
stroke = TRUE,
weight = 1.5,
radius = sumdat$radius,
popup = paste0(
"Site ID: ", sumdat$MonitoringLocationIdentifier,
"<br> Site Name: ", sumdat$MonitoringLocationName,
Expand Down
Loading