Skip to content

Commit 419e07d

Browse files
mtennekesschloerke
authored andcommitted
namespace providers to allow addMiniMap to be more accessible (#568)
* to make it accessible within other packages (see https://github.com/mtennekes/tmap/issues/231) * add minimap fix to NEWS * update news item
1 parent 145eb8c commit 419e07d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ leaflet 2.0.2
1313
BUG FIXES and IMPROVEMENTS
1414
* Require viridis >= 0.5.1 to avoid namespace issues with viridisLite (#557)
1515
* Fixed broken mouse events after using leaflet-search from leaflet.extras within shiny applications (#563)
16+
* Use leaflet namespace on `providers` in `addMiniMap` to make the function accessible in other packages. Fixes [mtennekes/tmap#231](https://github.com/mtennekes/tmap/issues/231). (#568)
1617
* Require scales >= 1.0.0 to avoid exact color matching issues (#578)
1718

1819

R/plugin-minimap.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ addMiniMap <- function(
8888
tilesURL <- NULL
8989
tilesProvider <- NULL
9090
if (!is.null(tiles)) {
91-
if (tiles %in% providers) {
91+
if (tiles %in% leaflet::providers) {
9292
map$dependencies <- c(map$dependencies, leafletProviderDependencies())
9393
tilesProvider <- tiles
9494
} else {

0 commit comments

Comments
 (0)