Changelog
Source:NEWS.md
leaflet.extras2 1.3.4
CRAN release: 2026-09-16
- Stop importing
grDevicesin NAMESPACE and drop it from Suggests. - Uptade GitHub Actions to actions/checkout@v6
leaflet.extras2 1.3.3
CRAN release: 2026-09-09
- Included Leaflet.VectorGrid for tiled GeoJSON (
addVectorgrid()) and protobuf vector tiles (addProtobuf()).addProtobuf()acceptspopupandlabelas property names (not formulas): click popup and hover tooltip. Hovering point features (place/street labels) no longer crashes Leaflet (getLatLng/latundefined). Examples:inst/examples/vectorgrid_app.Randinst/examples/vectorgrid_pbf_app.R. Tests cover Spatial/GeoJSON/URL inputs and missingsf/yyjsonr. -
spinWhile()shows a map spinner in Shiny around server work.startSpinner()/stopSpinner()in onerenderLeaflet()chain cannot do that. The spinner stays visible until the work finishes. Fixes #48. - Sidebar no longer steals clicks or wheel events from Shiny inputs (
selectInput/ Selectize, including Firefox). While a dropdown is open the map ignores pointer events. Fixes #78, #66. -
addWMS()now hides its attribution when the layer group is hidden, matchingleaflet::addWMSTiles(). -
addWMS(headers = ...)sends Authorization (Basic/Bearer) and other custom headers with tiles, the overlay image and GetFeatureInfo (#54). The WMS must allow CORS for those headers. GetFeatureInfo no longer opens a blocked iframe on 401/403; it shows an unauthorized message. Example:inst/examples/wms_geoserver_app.R. -
setWMSParams()updates WMS request parameters (e.g.time) on an existing layer vialeafletProxy(), so Shiny apps no longer need to rebuild the map (#52). -
addWMS()GetFeatureInfo popups work behind HTTPS reverse proxies: HTTP→HTTPS redirects (301/302) are followed on the same host, andhttp://WMS URLs are upgraded on HTTPS pages (#14). - Replaced deprecated
structure(..., .Label = )withlevels =in tests (test-mapkeyicon.R,test-playback.R) to clear the R-devel NOTE. - Documented Shiny mouse events for
addAntpath(): useinput$MAPID_antpath_click/_mouseover/_mouseoutinstead ofshape_*. -
addEasyprint()custom export sizes no longer need extra CSS. Pass them ineasyprintOptions(sizeModes = ...)as R lists, for examplelist(scale = 3, name = "3x current view")(same zoom and labels, more pixels) orlist(width = 3000, height = 1800, name = "High res").CurrentSizestill exports at the widget size (often low-res in Quarto/HTML). Custom width/height sizes keep the current map view by default (keepView = TRUEin the size-mode list). SetkeepView = FALSEto keep the zoom level and export a larger area. Seeinst/examples/easyprint.R.
leaflet.extras2 1.3.2
CRAN release: 2025-08-27
- Included Leaflet.Geosearch plugin
- Fixed missing OpenWeather loading GIF and layers/group matching.
- Fixed missing heightgraph icons. (Thanks @hungkitwchi)
- Fixed tests using
leaflet::atlStorms2005, as it will be ansfobject. (Thanks @olivroy) - Fixed reachability icon handling: check for dependencies in options and extend the example app.
leaflet.extras2 1.3.0
CRAN release: 2025-01-12
- Included LayerGroup.Collision plugin
- Included LayerGroup.Conditional plugin
- Included OSM Buildings plugin
- New Function
addDiviconaddsDivIconmarkers to Leaflet maps with support for custom HTML and CSS classes. See the example in./inst/examples/divicons_html_app.R - Added
addClusterChartsto enable pie and bar charts in Marker clusters usingLeaflet.markercluster,d3andL.DivIcon, with support for customizable category styling and various aggregation methods like sum, min, max, mean, and median. - The opened sidebar tab is returned as Shiny input using the
sidebar_tabsID. #67 - allow
...inantpathOptionsto be able to set the pane (e.g.:renderer= JS('L.svg({pane: "my-pane"})')) - Switched from
geojsonsftoyyjsonr(heightgraph, timeslider, clustercharts) - Fix for roxygen2 > 7.0.0. #1491
leaflet.extras2 1.2.2
CRAN release: 2023-08-21
- Added
enableContextmenuanddisableContextmenu - Fixed tests for leaflet v2.2.0. Thanks to @gadenbuie (#60)
leaflet.extras2 1.2.1
CRAN release: 2023-04-20
- Bugfix when Sidebar is used inside Shiny modules. The sidebar functions
addSidebarandopenSidebarnow have an argumentns, where Shiny’s namespacing function (e.g: session$ns) can be included. - Arrowheads now passes all options in
arrowheadOptionstoL.polyline - Update
leaflet.heightgraphto 1.3.2. Has no dependency tod3anymore. - Skip tests which use an internet connection
- Adapted URLs and deleted old Mapkey URL
leaflet.extras2 1.2.0
CRAN release: 2022-05-10
- Included Arrowheads plugin
- Included Leaflet.Sync plugin
- Included Leaflet MovingMarkers plugin
- Included Leaflet Spin plugin. Thanks to @radbasa
- Included Labelgun plugin.
-
addTimeslidergained styling options and the argumentslabel,labelOptions,sameDateandordertimeand works for Point / Linestring Simple Feature Collections - Enable multiple sidebars. Thanks to @jeffreyhanson
- Option
fitremoved for sidebars as plugin CSS/JS was adapted - Deprecated
menuItem/mapmenuItems/markermenuItemsand renamed with prefixcontext_. Fixes #10 and #17 - Some improvement for the
easyprintplugin: (Fixes #31)- It is now possible to include multiple custom
sizeModesineasyprintOptions. The example easyprint_app.R has been extended to demonstrate the new functionalities. - The
tileLayeroption now accepts a group name for a tilelayer for which printing will wait until the layer is fully loaded.
- It is now possible to include multiple custom
- The
addPlaybackis now capable of displaying labels and popups for every timestep. The transition of labels and popups can be controlled withtransitionpopupandtransitionlabel. - The function
addHistorynow requires the fontawesome package, since the dependency is not included in shiny’s shared directory anymore. - The function
addWMSgained the argumentcheckempty, which will check the returning HTML-body tag. If the body is empty, no popup is opened. - The function
addMovingMarkernow accepts icons created bymakeAwesomeIcon.
leaflet.extras2 1.1.0
CRAN release: 2020-10-20
- Included Leaflet Contextmenu plugin
- Included Leaflet TimeSlider plugin
-
addWMSgained thelayerIdargument and works likeleaflet::addWMSTilesexcept for thepopupOptions -
Side-by-Sidedoesn’t propagate click events when dragging. Thanks tof905a47of #23