Skip to content

Commit 982c37f

Browse files
schloerkejcheng5
andauthored
v2.0.4 (#719)
* v2.0.4 * Update docs, fix a couple of partial match warnings, update revdep * Fix broken leaflet doc links * Fix more broken links * More links * Sigh, more links. * Remove obsolete links * DESCRIPTION link http->https * Don't launch browsers during R CMD check * Fix link * More links Co-authored-by: Joe Cheng <[email protected]>
1 parent 5bf15ec commit 982c37f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+10261
-9826
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: leaflet
22
Type: Package
33
Title: Create Interactive Web Maps with the JavaScript 'Leaflet' Library
4-
Version: 2.0.3.9000
4+
Version: 2.0.4.1
55
Authors@R: c(
66
person("Joe", "Cheng", email = "[email protected]", role = c("aut", "cre")),
77
person("Bhaskar", "Karambelkar", role = c("aut")),
@@ -31,7 +31,7 @@ Description: Create and customize interactive maps using the 'Leaflet'
3131
directly from the R console, from 'RStudio', in Shiny applications and R Markdown
3232
documents.
3333
License: GPL-3
34-
URL: http://rstudio.github.io/leaflet/
34+
URL: https://rstudio.github.io/leaflet/
3535
BugReports: https://github.com/rstudio/leaflet/issues
3636
Depends: R (>= 3.1.0)
3737
Imports:

NEWS

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
leaflet 2.0.3.9000
1+
leaflet 2.0.4
22
--------------------------------------------------------------------------------
33

4-
BREAKING CHANGES
5-
*
6-
74
FEATURES
85
* Updated proj4.js to 2.6.2
96

107
BUG FIXES and IMPROVEMENTS
11-
*
8+
* Minor tweaks to example data and tests, required to stay on CRAN
129

1310

1411

@@ -60,7 +57,7 @@ leaflet 2.0.0
6057

6158
BREAKING CHANGES
6259

63-
* Update to latest leaflet.js v1.3.1 (#453, 314616f) Please see http://leafletjs.com/reference-1.3.0.html for the latest documentation
60+
* Update to latest leaflet.js v1.3.1 (#453, 314616f) Please see https://leafletjs.com/reference-1.3.4.html for the latest documentation
6461

6562
* All plugins updated to versions compatible with leaflet > 1.0 (#458)
6663

@@ -91,7 +88,7 @@ BUG FIXES AND FEATURES
9188

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

94-
* `L.multiPolyline` was absorbed into `L.polyline`, which accepts multiple an array of polyline information. http://leafletjs.com/reference-1.3.0.html#polyline. (#515)
91+
* `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)
9592

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

R/colors.R

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,20 @@ colorFactor <- function(palette, domain, levels = NULL, ordered = FALSE,
260260
#' pal <- colorBin("Greens", domain = 0:100)
261261
#' pal(runif(10, 60, 100))
262262
#'
263-
#' \donttest{
264-
#' # Exponential distribution, mapped continuously
265-
#' previewColors(colorNumeric("Blues", domain = NULL), sort(rexp(16)))
266-
#' # Exponential distribution, mapped by interval
267-
#' previewColors(colorBin("Blues", domain = NULL, bins = 4), sort(rexp(16)))
268-
#' # Exponential distribution, mapped by quantile
269-
#' previewColors(colorQuantile("Blues", domain = NULL), sort(rexp(16)))
263+
#' if (interactive()) {
264+
#' # Exponential distribution, mapped continuously
265+
#' previewColors(colorNumeric("Blues", domain = NULL), sort(rexp(16)))
266+
#' # Exponential distribution, mapped by interval
267+
#' previewColors(colorBin("Blues", domain = NULL, bins = 4), sort(rexp(16)))
268+
#' # Exponential distribution, mapped by quantile
269+
#' previewColors(colorQuantile("Blues", domain = NULL), sort(rexp(16)))
270270
#'
271-
#' # Categorical data; by default, the values being colored span the gamut...
272-
#' previewColors(colorFactor("RdYlBu", domain = NULL), LETTERS[1:5])
273-
#' # ...unless the data is a factor, without droplevels...
274-
#' previewColors(colorFactor("RdYlBu", domain = NULL), factor(LETTERS[1:5], levels = LETTERS))
275-
#' # ...or the domain is stated explicitly.
276-
#' previewColors(colorFactor("RdYlBu", levels = LETTERS), LETTERS[1:5])
271+
#' # Categorical data; by default, the values being colored span the gamut...
272+
#' previewColors(colorFactor("RdYlBu", domain = NULL), LETTERS[1:5])
273+
#' # ...unless the data is a factor, without droplevels...
274+
#' previewColors(colorFactor("RdYlBu", domain = NULL), factor(LETTERS[1:5], levels = LETTERS))
275+
#' # ...or the domain is stated explicitly.
276+
#' previewColors(colorFactor("RdYlBu", levels = LETTERS), LETTERS[1:5])
277277
#' }
278278
#' @rdname colorNumeric
279279
#' @name colorNumeric

R/data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ NULL
3838
#' @name gadmCHE
3939
#' @title Administrative borders of Switzerland (level 1)
4040
#' @description Administrative borders of Switzerland (level 1)
41-
#' @details This dataset comes from \url{http://gadm.org}.
41+
#' @details This dataset comes from \url{https://gadm.org}.
4242
#' It was downloaded using \code{\link{getData}}.
4343
#' @format \code{sp::SpatialPolygonsDataFrame}
4444
#' @source
45-
#' \url{http://gadm.org}
45+
#' \url{https://gadm.org}
4646
NULL
4747

4848
#'

R/layers.R

Lines changed: 10 additions & 10 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{http://leafletjs.com/reference-1.3.1.html}
150+
#' \url{https://leafletjs.com/reference-1.3.4.html}
151151
#' @describeIn map-layers Add a tile layer to the map
152152
#' @export
153153
addTiles <- function(
@@ -340,7 +340,7 @@ clearImages <- function(map) {
340340
#' @param
341341
#' minZoom,maxZoom,maxNativeZoom,tileSize,subdomains,errorTileUrl,tms,noWrap,zoomOffset,zoomReverse,zIndex,unloadInvisibleTiles,updateWhenIdle,detectRetina
342342
#' the tile layer options; see
343-
#' \url{http://leafletjs.com/reference-1.3.1.html#tilelayer}
343+
#' \url{https://leafletjs.com/reference-1.3.4.html#tilelayer}
344344
#' @param ... extra options passed to underlying Javascript object constructor.
345345
#' @describeIn map-options Options for tile layers
346346
#' @export
@@ -482,7 +482,7 @@ addPopups <- function(
482482
#' @param className a CSS class name set on an element
483483
#' @param
484484
#' maxWidth,minWidth,maxHeight,autoPan,keepInView,closeButton,closeOnClick
485-
#' popup options; see \url{http://leafletjs.com/reference-1.3.1.html#popup-option}
485+
#' popup options; see \url{https://leafletjs.com/reference-1.3.4.html#popup-option}
486486
#' @describeIn map-options Options for popups
487487
#' @export
488488
popupOptions <- function(
@@ -550,13 +550,13 @@ safeLabel <- function(label, data) {
550550

551551
#' @param
552552
#' noHide,direction,offset,permanent
553-
#' label options; see \url{http://leafletjs.com/reference-1.3.1.html#tooltip-option}
554-
#' @param opacity Tooltip container opacity. Ranges from 0 to 1. Default value is \code{1} (different from leaflet.js \code{0.9}); see \url{http://leafletjs.com/reference-1.3.1.html#tooltip-opacity}
553+
#' label options; see \url{https://leafletjs.com/reference-1.3.4.html#tooltip-option}
554+
#' @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}
555555
#' @param textsize Change the text size of a single tooltip
556556
#' @param textOnly Display only the text, no regular surrounding box.
557557
#' @param style list of css style to be added to the tooltip
558558
#' @param zoomAnimation deprecated. See \url{https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#api-changes-5}
559-
#' @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{http://leafletjs.com/reference-1.3.1.html#tooltip-sticky}
559+
#' @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}
560560
#' @describeIn map-options Options for labels
561561
#' @export
562562
labelOptions <- function(
@@ -880,7 +880,7 @@ b64EncodePackedIcons <- function(packedIcons) {
880880
#' @param clickable DEPRECATED! Use the \code{interactive} option.
881881
#' @param
882882
#' draggable,keyboard,title,alt,zIndexOffset,riseOnHover,riseOffset
883-
#' marker options; see \url{http://leafletjs.com/reference-1.3.1.html#marker-option}
883+
#' marker options; see \url{https://leafletjs.com/reference-1.3.4.html#marker-option}
884884
#' @describeIn map-options Options for markers
885885
#' @export
886886
markerOptions <- function(
@@ -913,7 +913,7 @@ markerOptions <- function(
913913
#' spiderfy it so you can see all of its markers
914914
#' @param removeOutsideVisibleBounds clusters and markers too far from the
915915
#' viewport are removed from the map for performance
916-
#' @param spiderLegPolylineOptions Allows you to specify PolylineOptions (\url{http://leafletjs.com/reference-1.3.1.html#polyline-option}) to style spider legs. By default, they are { weight: 1.5, color: "#222", opacity: 0.5 }
916+
#' @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 }
917917
#' @param freezeAtZoom Allows you to freeze cluster expansion to a zoom level.
918918
#' Can be a zoom level e.g. 10, 12 or "max" or "maxKeepSpiderify"
919919
#' See \url{https://github.com/ghybs/Leaflet.MarkerCluster.Freezable#api-reference}
@@ -949,7 +949,7 @@ markerClusterOptions <- function(
949949
#' @param fillColor fill color
950950
#' @param fillOpacity fill opacity
951951
#' @param dashArray a string that defines the stroke
952-
#' \href{https://developer.mozilla.org/en/SVG/Attribute/stroke-dasharray}{dash
952+
#' \href{https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray}{dash
953953
#' pattern}
954954
#' @describeIn map-layers Add circle markers to the map
955955
#' @export
@@ -1287,7 +1287,7 @@ clearGeoJSON <- function(map) {
12871287
#' Add UI controls to switch layers on and off
12881288
#'
12891289
#' Uses Leaflet's built-in
1290-
#' \href{http://leafletjs.com/reference-1.3.1.html#control-layers}{layers control}
1290+
#' \href{https://leafletjs.com/reference-1.3.4.html#control-layers}{layers control}
12911291
#' feature to allow users to choose one of several base layers, and to choose
12921292
#' any number of overlay layers to view.
12931293
#'

R/leaflet.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ mapOptions <- function(map, zoomToLimits = c("always", "first", "never")) {
147147
#' @param preferCanvas Whether leaflet.js Paths should be rendered on a Canvas renderer.
148148
#' @param ... other options used for leaflet.js map creation.
149149
#' @describeIn leaflet Options for map creation
150-
#' @seealso See \url{http://leafletjs.com/reference-1.3.1.html#map-option} for details and more options.
150+
#' @seealso See \url{https://leafletjs.com/reference-1.3.4.html#map-option} for details and more options.
151151
#' @export
152152
leafletOptions <- function(
153153
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{http://www.leafletjs.com/reference-1.3.0.html#map-pane} for details.
12+
#' See \url{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{http://leafletjs.com/reference-1.3.1.html#zoom/pan-options})
10-
#' @references \url{http://leafletjs.com/reference-1.3.1.html#map-methods-for-modifying-map-state}
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}
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
@@ -15,7 +15,7 @@ leafletGraticuleDependencies <- function() {
1515
#' @param map a map widget object
1616
#' @param interval The spacing in map units between horizontal and vertical lines.
1717
#' @param sphere boolean. Default FALSE
18-
#' @param style path options for the generated lines. See \url{http://leafletjs.com/reference-1.3.1.html#path-option}
18+
#' @param style path options for the generated lines. See \url{https://leafletjs.com/reference-1.3.4.html#path-option}
1919
#' @param layerId the layer id
2020
#' @param group the name of the group this layer belongs to.
2121
#' @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
@@ -13,7 +13,7 @@ leafletMeasureDependencies <- function() {
1313
#' Add a measure control to the map.
1414
#'
1515
#' @param map a map widget object
16-
#' @param position standard \href{http://leafletjs.com/reference-1.3.1.html#control-positions}{Leaflet control position options}.
16+
#' @param position standard \href{https://leafletjs.com/reference-1.3.4.html#control-positions}{Leaflet control position options}.
1717
#' @param primaryLengthUnit,secondaryLengthUnit units used to display length
1818
#' results. secondaryLengthUnit is optional.
1919
#' Valid values are \code{"feet"}, \code{"meters"}, \code{"miles"}, and \code{"kilometers"}.
@@ -28,7 +28,7 @@ leafletMeasureDependencies <- function() {
2828
#' Value should be a color represented as a hexadecimal string.
2929
#' @param popupOptions \code{list} of options applied to the popup
3030
#' of the resulting measure feature.
31-
#' Properties may be any \href{http://leafletjs.com/reference-1.3.1.html#popup-option}{standard Leaflet popup options}.
31+
#' Properties may be any \href{https://leafletjs.com/reference-1.3.4.html#popup-option}{standard Leaflet popup options}.
3232
#' @param captureZIndex Z-index of the marker used to capture measure clicks.
3333
#' Set this value higher than the z-index of all other map layers to
3434
#' disable click events on other layers while a measurement is active.

0 commit comments

Comments
 (0)