Skip to content

Commit 32cb9d1

Browse files
committed
avoid use of dev leaflet version
By not needing the pane option in the rasters, the specific version of leaflet (rstudio/leaflet#692) isn't required.
1 parent 56e3809 commit 32cb9d1

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

server.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ function(input, output, session) {
171171
data=new_layer,
172172
x=raster::raster(new_layer, layer=1),
173173
group=group_name,
174-
options=leafletOptions(pane="layers"),
175174
colors=palNum
176175
)
177176
}
@@ -335,7 +334,6 @@ function(input, output, session) {
335334
data=new_layer,
336335
x=raster::raster(new_layer, layer=1),
337336
group=group_name,
338-
options=leafletOptions(pane="layers"),
339337
colors=palNum
340338
) %>%
341339
addMarkers(

ui.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
library(shiny)
22
library(shinyWidgets)
33
library(leaflet)
4-
# To get the pane options in raster layers to work, install leaflet from
5-
# https://github.com/rstudio/leaflet/tree/joe/feature/raster-options
6-
# see associated PR here: https://github.com/rstudio/leaflet/pull/692
7-
# can install directly with `remotes::install_github("rstudio/leaflet", ref="joe/feature/raster-options")`
84
library(leaflet.extras)
95
library(leaflegend)
106
library(RColorBrewer)

0 commit comments

Comments
 (0)