Skip to content

Commit

Permalink
avoid use of dev leaflet version
Browse files Browse the repository at this point in the history
By not needing the pane option in the rasters, the specific version of leaflet (rstudio/leaflet#692) isn't required.
  • Loading branch information
RWParsons committed Apr 13, 2022
1 parent 56e3809 commit 32cb9d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ function(input, output, session) {
data=new_layer,
x=raster::raster(new_layer, layer=1),
group=group_name,
options=leafletOptions(pane="layers"),
colors=palNum
)
}
Expand Down Expand Up @@ -335,7 +334,6 @@ function(input, output, session) {
data=new_layer,
x=raster::raster(new_layer, layer=1),
group=group_name,
options=leafletOptions(pane="layers"),
colors=palNum
) %>%
addMarkers(
Expand Down
4 changes: 0 additions & 4 deletions ui.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
library(shiny)
library(shinyWidgets)
library(leaflet)
# To get the pane options in raster layers to work, install leaflet from
# https://github.com/rstudio/leaflet/tree/joe/feature/raster-options
# see associated PR here: https://github.com/rstudio/leaflet/pull/692
# can install directly with `remotes::install_github("rstudio/leaflet", ref="joe/feature/raster-options")`
library(leaflet.extras)
library(leaflegend)
library(RColorBrewer)
Expand Down

0 comments on commit 32cb9d1

Please sign in to comment.