Skip to content

Commit 8d14a9c

Browse files
committed
Merge tag 'v2.1.2'
2 parents 57ea627 + 9ab0d73 commit 8d14a9c

32 files changed

+26666
-4908
lines changed

NEWS

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
leaflet 2.1.1.9000
1+
leaflet 2.1.2.9000
22
--------------------------------------------------------------------------------
33

44
BUG FIXES and IMPROVEMENTS
@@ -10,6 +10,14 @@ BUG FIXES and IMPROVEMENTS
1010

1111
* Remove dependencies on rgdal and rgeos. (#837)
1212

13+
14+
leaflet 2.1.2
15+
--------------------------------------------------------------------------------
16+
17+
BUG FIXES and IMPROVEMENTS
18+
* Removed S3 warnings found on R devel (#848)
19+
20+
1321
leaflet 2.1.1
1422
--------------------------------------------------------------------------------
1523

@@ -90,7 +98,7 @@ leaflet 2.0.0
9098

9199
BREAKING CHANGES
92100

93-
* Update to latest leaflet.js v1.3.1 (#453, 314616f) Please see https://leafletjs.com/reference-1.3.4.html for the latest documentation
101+
* 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
94102

95103
* All plugins updated to versions compatible with leaflet > 1.0 (#458)
96104

@@ -121,7 +129,7 @@ BUG FIXES AND FEATURES
121129

122130
* Added more providers for `addProviderTiles()`: "OpenStreetMap.CH", "OpenInfraMap", "OpenInfraMap.Power", "OpenInfraMap.Telecom", "OpenInfraMap.Petroleum", "OpenInfraMap.Water", "OpenPtMap", "OpenRailwayMap", "OpenFireMap", "SafeCast". (4aea447)
123131

124-
* `L.multiPolyline` was absorbed into `L.polyline`, which accepts multiple an array of polyline information. https://leafletjs.com/reference-1.3.4.html#polyline. (#515)
132+
* `L.multiPolyline` was absorbed into `L.polyline`, which accepts multiple an array of polyline information. https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#polyline. (#515)
125133

126134
* Fix bug where icons where anchored to the top-center, not center-center (2a60751)
127135

R/layers.R

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ groupOptions <- function(map, group, zoomLevels = NULL) {
147147
#' \code{\link{popupOptions}}, \code{\link{markerOptions}},
148148
#' \code{\link{pathOptions}}
149149
#' @references The Leaflet API documentation:
150-
#' \url{https://leafletjs.com/reference-1.3.4.html}
150+
#' \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html}
151151
#' @describeIn map-layers Add a tile layer to the map
152152
#' @export
153153
addTiles <- function(
@@ -486,7 +486,7 @@ clearImages <- function(map) {
486486
#' @param
487487
#' minZoom,maxZoom,maxNativeZoom,tileSize,subdomains,errorTileUrl,tms,noWrap,zoomOffset,zoomReverse,zIndex,unloadInvisibleTiles,updateWhenIdle,detectRetina
488488
#' the tile layer options; see
489-
#' \url{https://leafletjs.com/reference-1.3.4.html#tilelayer}
489+
#' \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tilelayer}
490490
#' @param ... extra options passed to underlying Javascript object constructor.
491491
#' @describeIn map-options Options for tile layers
492492
#' @export
@@ -628,7 +628,7 @@ addPopups <- function(
628628
#' @param className a CSS class name set on an element
629629
#' @param
630630
#' maxWidth,minWidth,maxHeight,autoPan,keepInView,closeButton,closeOnClick
631-
#' popup options; see \url{https://leafletjs.com/reference-1.3.4.html#popup-option}
631+
#' popup options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#popup-option}
632632
#' @describeIn map-options Options for popups
633633
#' @export
634634
popupOptions <- function(
@@ -696,13 +696,13 @@ safeLabel <- function(label, data) {
696696

697697
#' @param
698698
#' noHide,direction,offset,permanent
699-
#' label options; see \url{https://leafletjs.com/reference-1.3.4.html#tooltip-option}
700-
#' @param opacity Tooltip container opacity. Ranges from 0 to 1. Default value is \code{1} (different from leaflet.js \code{0.9}); see \url{https://leafletjs.com/reference-1.3.4.html#tooltip-opacity}
699+
#' label options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-option}
700+
#' @param opacity Tooltip container opacity. Ranges from 0 to 1. Default value is \code{1} (different from leaflet.js \code{0.9}); see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-opacity}
701701
#' @param textsize Change the text size of a single tooltip
702702
#' @param textOnly Display only the text, no regular surrounding box.
703703
#' @param style list of css style to be added to the tooltip
704704
#' @param zoomAnimation deprecated. See \url{https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#api-changes-5}
705-
#' @param sticky If true, the tooltip will follow the mouse instead of being fixed at the feature center. Default value is \code{TRUE} (different from leaflet.js \code{FALSE}); see \url{https://leafletjs.com/reference-1.3.4.html#tooltip-sticky}
705+
#' @param sticky If true, the tooltip will follow the mouse instead of being fixed at the feature center. Default value is \code{TRUE} (different from leaflet.js \code{FALSE}); see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-sticky}
706706
#' @describeIn map-options Options for labels
707707
#' @export
708708
labelOptions <- function(
@@ -1024,7 +1024,7 @@ b64EncodePackedIcons <- function(packedIcons) {
10241024
#' @param clickable DEPRECATED! Use the \code{interactive} option.
10251025
#' @param
10261026
#' draggable,keyboard,title,alt,zIndexOffset,riseOnHover,riseOffset
1027-
#' marker options; see \url{https://leafletjs.com/reference-1.3.4.html#marker-option}
1027+
#' marker options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#marker-option}
10281028
#' @describeIn map-options Options for markers
10291029
#' @export
10301030
markerOptions <- function(
@@ -1057,7 +1057,7 @@ markerOptions <- function(
10571057
#' spiderfy it so you can see all of its markers
10581058
#' @param removeOutsideVisibleBounds clusters and markers too far from the
10591059
#' viewport are removed from the map for performance
1060-
#' @param spiderLegPolylineOptions Allows you to specify PolylineOptions (\url{https://leafletjs.com/reference-1.3.4.html#polyline-option}) to style spider legs. By default, they are { weight: 1.5, color: "#222", opacity: 0.5 }
1060+
#' @param spiderLegPolylineOptions Allows you to specify PolylineOptions (\url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#polyline-option}) to style spider legs. By default, they are { weight: 1.5, color: "#222", opacity: 0.5 }
10611061
#' @param freezeAtZoom Allows you to freeze cluster expansion to a zoom level.
10621062
#' Can be a zoom level e.g. 10, 12 or "max" or "maxKeepSpiderify"
10631063
#' See \url{https://github.com/ghybs/Leaflet.MarkerCluster.Freezable#api-reference}
@@ -1431,7 +1431,7 @@ clearGeoJSON <- function(map) {
14311431
#' Add UI controls to switch layers on and off
14321432
#'
14331433
#' Uses Leaflet's built-in
1434-
#' \href{https://leafletjs.com/reference-1.3.4.html#control-layers}{layers control}
1434+
#' \href{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#control-layers}{layers control}
14351435
#' feature to allow users to choose one of several base layers, and to choose
14361436
#' any number of overlay layers to view.
14371437
#'

R/leaflet.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ mapOptions <- function(map, zoomToLimits = c("always", "first", "never")) {
146146
#' @param preferCanvas Whether leaflet.js Paths should be rendered on a Canvas renderer.
147147
#' @param ... other options used for leaflet.js map creation.
148148
#' @describeIn leaflet Options for map creation
149-
#' @seealso See \url{https://leafletjs.com/reference-1.3.4.html#map-option} for details and more options.
149+
#' @seealso See \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#map-option} for details and more options.
150150
#' @export
151151
leafletOptions <- function(
152152
minZoom = NULL,

R/mapPane.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#' over the order of the layers, e.g. points always on top of polygons.
1010
#' If two layers are provided to the same pane, overlay will be determined by
1111
#' order of adding. See examples below.
12-
#' See \url{https://leafletjs.com/reference-1.3.4.html#map-pane} for details.
12+
#' See \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#map-pane} for details.
1313
#'
1414
#' If the error "Cannot read property 'appendChild' of undefined" occurs, make
1515
#' sure the pane being used for used for display has already been added to the map.

R/methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#' @param lat The latitude of the map center
77
#' @param zoom the zoom level
88
#' @param options a list of zoom/pan options (see
9-
#' \url{https://leafletjs.com/reference-1.3.4.html#zoom/pan-options})
10-
#' @references \url{https://leafletjs.com/reference-1.3.4.html#map-methods-for-modifying-map-state}
9+
#' \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#zoom/pan-options})
10+
#' @references \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#map-methods-for-modifying-map-state}
1111
#' @return The modified map widget.
1212
#' @describeIn map-methods Set the view of the map (center and zoom level)
1313
#' @export

R/plugin-graticule.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ leafletGraticuleDependencies <- function() {
1616
#' @param map a map widget object
1717
#' @param interval The spacing in map units between horizontal and vertical lines.
1818
#' @param sphere boolean. Default FALSE
19-
#' @param style path options for the generated lines. See \url{https://leafletjs.com/reference-1.3.4.html#path-option}
19+
#' @param style path options for the generated lines. See \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#path-option}
2020
#' @param layerId the layer id
2121
#' @param group the name of the group this layer belongs to.
2222
#' @param options the path options for the graticule layer

R/plugin-measure.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ leafletMeasureDependencies <- function() {
1414
#' Add a measure control to the map.
1515
#'
1616
#' @param map a map widget object
17-
#' @param position standard \href{https://leafletjs.com/reference-1.3.4.html#control-positions}{Leaflet control position options}.
17+
#' @param position standard \href{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#control-positions}{Leaflet control position options}.
1818
#' @param primaryLengthUnit,secondaryLengthUnit units used to display length
1919
#' results. secondaryLengthUnit is optional.
2020
#' Valid values are \code{"feet"}, \code{"meters"}, \code{"miles"}, and \code{"kilometers"}.
@@ -29,7 +29,7 @@ leafletMeasureDependencies <- function() {
2929
#' Value should be a color represented as a hexadecimal string.
3030
#' @param popupOptions \code{list} of options applied to the popup
3131
#' of the resulting measure feature.
32-
#' Properties may be any \href{https://leafletjs.com/reference-1.3.4.html#popup-option}{standard Leaflet popup options}.
32+
#' Properties may be any \href{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#popup-option}{standard Leaflet popup options}.
3333
#' @param captureZIndex Z-index of the marker used to capture measure clicks.
3434
#' Set this value higher than the z-index of all other map layers to
3535
#' disable click events on other layers while a measurement is active.

R/plugin-minimap.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ leafletMiniMapDependencies <- function() {
4646
#' Especially useful when 'zoomLevelFixed' is set.
4747
#' @param minimized Sets whether the minimap should start in a minimized position.
4848
#' @param aimingRectOptions Sets the style of the aiming rectangle by passing in
49-
#' a Path.Options (\url{https://leafletjs.com/reference-1.3.4.html#path-options}) object.
49+
#' a Path.Options (\url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#path-options}) object.
5050
#' (Clickable will always be overridden and set to false.)
5151
#' @param shadowRectOptions Sets the style of the aiming shadow rectangle by passing in
52-
#' a Path.Options (\url{https://leafletjs.com/reference-1.3.4.html#path-option}) object.
52+
#' a Path.Options (\url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#path-option}) object.
5353
#' (Clickable will always be overridden and set to false.)
5454
#' @param strings Overrides the default strings allowing for translation.
5555
#' @param tiles URL for tiles or one of the pre-defined providers.

R/plugin-providers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ addProviderTiles <- function(
4646
#' @param
4747
#' errorTileUrl,noWrap,opacity,zIndex,updateWhenIdle,detectRetina
4848
#' the tile layer options; see
49-
#' \url{https://leafletjs.com/reference-1.3.4.html#tilelayer}
49+
#' \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tilelayer}
5050
#' @param ... named parameters to add to the options
5151
#' @rdname addProviderTiles
5252
#' @export

R/scalebar.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Add or remove a scale bar
22
#'
33
#' Uses Leaflet's built-in
4-
#' \href{https://leafletjs.com/reference-1.3.4.html#control-scale}{scale bar}
4+
#' \href{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#control-scale}{scale bar}
55
#' feature to add a scale bar.
66
#'
77
#' @param map the map to add the scale bar to

0 commit comments

Comments
 (0)