Skip to content

Commit

Permalink
further adjustments in sits_view
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertocamara committed Jan 22, 2025
1 parent a02b0e8 commit c4097b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion R/api_conf.R
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,13 @@ NULL
leaflet::addProviderTiles(
provider = leaflet::providers[["OpenStreetMap"]],
group = "OSM"
) |>
leaflet::addWMSTiles(
baseUrl = "https://tiles.maps.eox.at/wms/",
layers = "s2cloudless-2023_3857",
group = "Sentinel-2"
)
base_groups <- c("ESRI", "OSM")
base_groups <- c("ESRI", "OSM", "Sentinel-2")
# create a global object for leaflet control
sits_leaflet <- list(leaf_map = leaf_map,
base_groups = base_groups,
Expand Down
4 changes: 2 additions & 2 deletions R/sits_view.R
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ sits_view.raster_cube <- function(x, ...,
max_cog_size = 2048,
first_quantile = 0.02,
last_quantile = 0.98,
leaflet_megabytes = 64,
leaflet_megabytes = 32,
add = FALSE) {
# set caller for errors
.check_set_caller("sits_view_raster_cube")
Expand Down Expand Up @@ -447,7 +447,7 @@ sits_view.class_cube <- function(x, ...,
palette = "Set3",
version = NULL,
opacity = 0.85,
max_cog_size = 1024,
max_cog_size = 2048,
leaflet_megabytes = 32,
add = FALSE){
# set caller for errors
Expand Down

0 comments on commit c4097b8

Please sign in to comment.