Skip to content

Commit 14f7ae6

Browse files
committed
have examples print the leaflet objects created
1 parent c54878f commit 14f7ae6

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

R/plugin-easybutton.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ easyButton <- function(
8282
#' addEasyButton(easyButton(
8383
#' icon = htmltools::span(class = "star", "&starf;"),
8484
#' onClick = JS("function(btn, map){ map.setZoom(1);}")))
85+
#' leaf
8586
#'
8687
#' @describeIn easyButton add an EasyButton to the map
8788
#' @export
@@ -138,6 +139,7 @@ addEasyButton <- function(
138139
#' easyButton(
139140
#' icon = htmltools::span(class = "star", "&target;"),
140141
#' onClick = JS("function(btn, map){ alert(\"Button 2\");}")))
142+
#' leaf
141143
#'
142144
#'
143145
#' @describeIn easyButton add an EasyButton to the map

R/plugin-minimap.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ leafletMiniMapDependencies <- function() {
6060
#' leaf <- leaflet() %>%
6161
#' addTiles() %>%
6262
#' addMiniMap()
63+
#' leaf
6364
#'
6465
#' @seealso \code{\link{providers}}
6566
#' @export

R/plugin-terminator.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ leafletTerminatorDependencies <- function() {
2727
#' leaf <- leaflet() %>%
2828
#' addTiles() %>%
2929
#' addTerminator()
30+
#' leaf
3031
#'
3132
#' @export
3233
addTerminator <- function(

man/addMiniMap.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/addTerminator.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/easyButton.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)