Skip to content

Commit 934c0ff

Browse files
authored
v2.2.0 (#876)
1 parent 421ee6b commit 934c0ff

19 files changed

+461
-268
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@
3333
^cran-comments\.md$
3434
^revdep$
3535
^\.github$
36+
^CRAN-SUBMISSION$

DESCRIPTION

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Type: Package
22
Package: leaflet
33
Title: Create Interactive Web Maps with the JavaScript 'Leaflet' Library
4-
Version: 2.1.2.9000
4+
Version: 2.2.0
55
Authors@R: c(
6-
person("Joe", "Cheng", , "[email protected]", role = c("aut", "cre")),
7-
person("Barret", "Schloerke", role = "aut"),
6+
person("Joe", "Cheng", , "[email protected]", role = c("aut", "cre")),
7+
person("Barret", "Schloerke", , "[email protected]", role = "aut",
8+
comment = c(ORCID = "0000-0001-9986-114X")),
89
person("Bhaskar", "Karambelkar", role = "aut"),
910
person("Yihui", "Xie", role = "aut"),
1011
person("Hadley", "Wickham", role = "ctb"),
@@ -46,7 +47,7 @@ License: GPL-3
4647
URL: https://rstudio.github.io/leaflet/,
4748
https://github.com/rstudio/leaflet
4849
BugReports: https://github.com/rstudio/leaflet/issues
49-
Depends:
50+
Depends:
5051
R (>= 3.1.0)
5152
Imports:
5253
crosstalk,

NEWS renamed to NEWS.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
## leaflet 2.1.2.9000
1+
# leaflet 2.2.0
22

3-
FEATURES
3+
### Features
44

55
- Added support for SpatRaster and SpatVector objects from the terra package. (#728)
66

7-
BUG FIXES and IMPROVEMENTS
7+
- `leaflet()` now uses jQuery 3.6.0 provided via the `{jquerylib}`package. As a result of this change, the HTML dependencies for `leaflet()` are included in the `dependencies` item of the htmlwidget object it returns. (#817, #821)
88

9-
- Use correct license in OpenStreetMap attribution. (#811)
9+
## Bug fixes and improvements
1010

11-
- Update jQuery to utilize `{jquerylib}`. (#817)
11+
- Use correct license in OpenStreetMap attribution. (#811)
1212

1313
- Use `xfun::base64_uri()` for base64 encoding instead of **markdown** and **base64enc**. (#823)
1414

@@ -18,49 +18,49 @@ BUG FIXES and IMPROVEMENTS
1818

1919
- Fixed #866: Correctly call `terra::has.RGB()` in `addRasterImage()` for a `SpatRaster` object. (#869)
2020

21-
## leaflet 2.1.2
21+
# leaflet 2.1.2
2222

23-
BUG FIXES and IMPROVEMENTS
23+
## Bug fixes and improvements
2424

2525
- Removed S3 warnings found on R devel (#848)
2626

27-
## leaflet 2.1.1
27+
# leaflet 2.1.1
2828

29-
BUG FIXES and IMPROVEMENTS
29+
## Bug fixes and improvements
3030

3131
- The default marker icon for `addMarkers` no longer worked, due to the CDN we were relying on apparently being retired. Fixed by pointing to a new CDN. (#782)
3232

3333
- New behavior from tile.openstreetmap.org caused `addTiles` default tileset to break when viewed under non-https protocol on recent versions of Chrome. Fixed by always using the https protocol to connect to openstreetmap. (#786)
3434

35-
## leaflet 2.1.0
35+
# leaflet 2.1.0
3636

37-
BUG FIXES and IMPROVEMENTS
37+
## Bug fixes and improvements
3838

3939
- Enable JS function literals (wrapped in `htmlwidgets::JS()`) to be included in arguments to methods invoked on `leafletProxy` objects. (JS function literals could already be included with methods invoked on `leaflet` objects, so this change just brings `leafletProxy` to parity.) (#420)
4040

4141
- Add missing CSS rule to show `<img>` in right-pane and left-pane (rstudio/rmarkdown/issues#1949, #770)
4242

4343
- Allow for _hidden_ but not suspended leaflet maps to queue calls (such as add raster images) until they are rendered. If a new leaflet map is created, all pending calls are removed. (#771)
4444

45-
## leaflet 2.0.4.1
45+
# leaflet 2.0.4.1
4646

47-
FEATURES
47+
## Features
4848

4949
- Updated proj4.js to 2.6.2
5050

51-
BUG FIXES and IMPROVEMENTS
51+
## Bug fixes and improvements
5252

5353
- Minor tweaks to example data and tests, required to stay on CRAN
5454

5555
- Fixes broken URL (#742) and updated examples to run from system files (#576) including updated .Rmd and .html docs.
5656

57-
## leaflet 2.0.3
57+
# leaflet 2.0.3
5858

59-
BREAKING CHANGES
59+
## Breaking changes
6060

6161
- `data("providers")` and `data("providers.details")` no longer exist. Please use `leaflet::providers` and `leaflet::providers.details`. (#636)
6262

63-
BUG FIXES and IMPROVEMENTS
63+
## Bug fixes and improvements
6464

6565
- Integrated data from `leaflet.providers` package. See [leaflet.providers](https://rstudio.github.io/leaflet.providers/) for details. (#636)
6666
- Fixed [rstudio/crosstalk#58](https://github.com/rstudio/crosstalk/issues/58), which caused Leaflet maps that used Crosstalk shared data in Shiny apps, to be redrawn at incorrect times.
@@ -69,32 +69,32 @@ BUG FIXES and IMPROVEMENTS
6969
- `sf` objects with `names` attributes in the `st_geometry` now visualise correctly (#595)
7070
- GeoJSON objects missing `properties` can now be displayed (#622)
7171

72-
## leaflet 2.0.2
72+
# leaflet 2.0.2
7373

74-
BUG FIXES and IMPROVEMENTS
74+
## Bug fixes and improvements
7575

7676
- Require viridis >= 0.5.1 to avoid namespace issues with viridisLite (#557)
7777
- Fixed broken mouse events after using leaflet-search from leaflet.extras within shiny applications (#563)
78-
- 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)
78+
- Use leaflet namespace on `providers` in `addMiniMap` to make the function accessible in other packages. Fixes [r-tmap/tmap#231](https://github.com/r-tmap/tmap/issues/231). (#568)
7979
- Require scales >= 1.0.0 to avoid exact color matching issues (#578)
8080

81-
## leaflet 2.0.1
81+
# leaflet 2.0.1
8282

83-
FEATURES
83+
## Features
8484

8585
- Added method `addMapPane` to add custom pane layers to have fine tune control over layer ordering. New feature from within leaflet.js v1.x. (#549)
8686
- Exposed htmlwidgets sizingPolicy in leaflet() (#548)
8787

88-
BUG FIXES and IMPROVEMENTS
88+
## Bug fixes and improvements
8989

9090
- Default marker icon locations will now use unpkg.com instead of the leaflet cdn when using https or file protocols. (#544)
9191
- `.leaflet-map-pane` `z-index` switched to 'auto'. Allows for map panes to appear above the map if they appear later in the dom. (#537)
9292
- Use correct Leaflet.js scale control remove method. (#547)
9393
- Start from world view if using flyTo or flyToBounds. (#552)
9494

95-
## leaflet 2.0.0
95+
# leaflet 2.0.0
9696

97-
BREAKING CHANGES
97+
## Breaking changes
9898

9999
- Update to latest leaflet.js v1.3.1 (#453, 314616f) Please see https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html for the latest documentation
100100

@@ -121,7 +121,7 @@ BREAKING CHANGES
121121
- Tooltips are now displayed with default Leaflet.js styling
122122
- In custom javascript extensions, change all `*.bindLabel()` to `*.bindTooltip()`
123123

124-
BUG FIXES AND FEATURES
124+
## Bug fixes and features
125125

126126
- Relative protocols are used where possible when adding tiles (#526). In RStudio 1.1.x on linux and windows, a known issue of 'https://' routes fail to load, but works within browsers (rstudio/rstudio#2661).
127127

@@ -163,7 +163,7 @@ BUG FIXES AND FEATURES
163163

164164
- Added `preferCanvas` argument to `leafletOptions()` (#521)
165165

166-
## leaflet 1.1.0
166+
# leaflet 1.1.0
167167

168168
- Add support for sf. sf, sfc, and sfg classes are supported with POINT,
169169
LINESTRING, MULTILINESTRING, POLYGON, and MULTIPOLYGON geometries (note
@@ -202,7 +202,7 @@ BUG FIXES AND FEATURES
202202

203203
- Added a way for the Map instance to be instantiated via a factory.
204204

205-
## leaflet 1.0.2
205+
# leaflet 1.0.2
206206

207207
- When used with `leafletProxy`, `fitBounds` did not return its input object as
208208
output, so magrittr chains would break after `fitBounds` was called.
@@ -238,10 +238,10 @@ BUG FIXES AND FEATURES
238238
- `addScaleBar` and related functions added, for showing Leaflet's built-in
239239
scale bar in one of the corners of the map. (PR #201. Thanks Kent Johnson!)
240240

241-
## leaflet 1.0.1
241+
# leaflet 1.0.1
242242

243243
- Fix #242: Compatibility with htmlwidgets 0.6 (thanks byzheng).
244244

245-
## leaflet 1.0.0
245+
# leaflet 1.0.0
246246

247247
- Initial release

R/layers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ addRasterImage <- function(
301301
#' @param layer the layer of the raster to target
302302
#' @param ... additional arguments to pass through to [addLegend()]
303303
#' @seealso [addRasterImage()]
304-
#' @examples
304+
#' @examplesIf interactive()
305305
#'
306306
#' library(terra)
307307
#'

R/leaflet-package.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ NULL
2020
#' @export JS
2121
NULL
2222

23+
# Added to the `use_release_issue()` checklist
2324
release_bullets <- function() {
2425
c(
2526
"Update static imports: `staticimports::import()`",
26-
"`system(\"npm run build\")`",
27-
"Rebuild website: `source(\"scripts/docs_update.R\")",
27+
"Rebuild website: `source(\"scripts/docs_update.R\")`",
2828
'Check Super Zip example: `shiny::runGitHub("rstudio/shiny-examples", subdir = "063-superzip-example")`',
2929
"Check licenses if bundled dependencies were updated",
3030
'`source("scripts/viztest.R")`'

cran-comments.md

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,18 @@
11
## Comments
22

3-
#### 2023-03-10
4-
5-
Fixing S3 method warnings for R Devel prompted by Kurt.
6-
7-
Please let me know if I can provide any more information.
8-
9-
Thank you,
10-
Joe
11-
12-
## Test environments
13-
14-
* local macOS, R 4.2
15-
* GitHub Actions
16-
* macOS
17-
* 4.2
18-
* windows
19-
* 4.2
20-
* ubuntu20
21-
* devel, 4.2, 4.1, 4.0, 3.6, 3.5
22-
* devtools::
23-
* check_win_devel()
24-
25-
## R CMD check results
26-
27-
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
3+
This release removes dependencies on rgdal and rgeos, in addition to other general improvements and bug fixes.
284

5+
Please let us know if we can provide any more information.
296

307
## revdepcheck results
318

32-
We checked 159 reverse dependencies (158 from CRAN + 1 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
9+
We checked 165 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3310

34-
* We saw 0 new problems
35-
* We failed to check 1 package
11+
* We saw 1 new problems
12+
* We failed to check 0 packages
3613

3714
Issues with CRAN packages are summarised below.
3815

39-
### Failed to check
16+
### New problems
4017

41-
* geocmeans (NA)
18+
* leaflet.opacity: We provided a fix to the maintainer in a pull request on 2023-08-15 (https://github.com/be-marc/leaflet.opacity/pull/3).

docs/basemaps.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<script src="libs/Proj4Leaflet/proj4leaflet.js"></script>
4141
<link href="libs/rstudio_leaflet/rstudio_leaflet.css" rel="stylesheet" />
4242
<script src="libs/leaflet-binding/leaflet.js"></script>
43-
<script src="libs/leaflet-providers/leaflet-providers_1.9.0.js"></script>
43+
<script src="libs/leaflet-providers/leaflet-providers_1.13.0.js"></script>
4444
<script src="libs/leaflet-providers-plugin/leaflet-providers-plugin.js"></script>
4545

4646
<style type="text/css">

docs/choropleths.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<script src="libs/Proj4Leaflet/proj4leaflet.js"></script>
4141
<link href="libs/rstudio_leaflet/rstudio_leaflet.css" rel="stylesheet" />
4242
<script src="libs/leaflet-binding/leaflet.js"></script>
43-
<script src="libs/leaflet-providers/leaflet-providers_1.9.0.js"></script>
43+
<script src="libs/leaflet-providers/leaflet-providers_1.13.0.js"></script>
4444
<script src="libs/leaflet-providers-plugin/leaflet-providers-plugin.js"></script>
4545

4646
<style type="text/css">

0 commit comments

Comments
 (0)