Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
caropradier committed Sep 11, 2023
1 parent b7a0bfa commit 13a8784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/map_agglomerates.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ map_agglomerates <- function(.data, agglomerates, indicator, alpha = .75, palett
dplyr::left_join(centroides_aglomerados, by = "AGLOMERADO")

pal <- leaflet::colorNumeric(
palette = "viridis",
palette = palette,
domain = df$indicator
)

Expand All @@ -37,7 +37,7 @@ map_agglomerates <- function(.data, agglomerates, indicator, alpha = .75, palett

leaflet::leaflet(df) %>%
leaflet::addTiles() %>%
leaflet::addProviderTiles(leaflet::providers$Wikimedia) %>%
#leaflet::addProviderTiles(leaflet::providers$Wikimedia) %>%
leaflet::addCircleMarkers(
fillColor = ~ pal(indicator),
fillOpacity = alpha,
Expand Down

0 comments on commit 13a8784

Please sign in to comment.