Changelog
Source:NEWS.md
leaflet.extras 2.1.0
CRAN release: 2026-09-16
New Features
-
addGeoJSONChoropleth()/addKMLChoropleth()can vary polygon fill opacity per feature viafillOpacityProperty(property name or JS function). Passing a JS function asfillOpacityworks too. Fix #53 -
addHeatmapandaddWebGLHeatmapnow scale intensity values so that raw weights such as 1 vs 500 stay visually distinct. UsescaleIntensity = FALSEfor the previous clipping behavior.addHeatmapalso setsmaxZoom = 0when scaling so Leaflet.heat does not fade points to blue at low zoom. NewaddHeatmapLegend()(also vialegend = TRUE) adds a color guide. Fix #126, Fix #160 - Include the plugin
leaflet-groupedlayercontrol. See the example in/inst/examples/shiny/groupedlayercontrol_app.Rfor a demo of all options and methods. Fix #202 -
addGreatCircles()gainededitable = TRUEto drag a radius handle on the circumference (as in the Leaflet.Geodesic interactive circle demo).showStatsnow reports radius and circumference; Shiny inputMAPID_geodesic_statsincludesradius. Fix #44
Improvements
- Updated GitHub Actions dependencies (
actions/checkoutv6,actions/setup-nodev6,actions/cachev5,actions/upload-artifactv6,JamesIves/github-pages-deploy-action4.7.6) and the npmjs-yamllockfile (4.1.1). - Style GHA no longer runs on
pull_request(detached HEAD madegit pullfail after auto-commits). It now runs on push to the branch instead. - pkgdown reference index includes
addHeatmapLegend.
Bugfixes
- Rd examples no longer download GeoJSON from GitHub during
R CMD check --as-cran(--run-donttest). CI failed with HTTP 429 (rate limit) on ubuntu-latest/oldrel-1. Examples now use local fixtures underinst/examples/data/geojson/. - Tests no longer download example GeoJSON/TopoJSON from the defunct rawgit.com service. CRAN checks failed because those URLs were unreachable (
test-geojson_mini.R,test-heatmaps.R). Local fixtures are used instead, and remaining rawgit links in examples/docs now point toraw.githubusercontent.com. Long example URLs inomnivoreandwebglheatmapdocs are wrapped to stay under the Rd 100-character limit. Thanks @ngoodkind for reporting and opening #251. Fix #250 - New argument
filtersearchforsearchOptionsto limit the Nominatim search area. Fix #168 -
addSearchFeaturesdisplays all matching results, even in the case of duplicates. However, markers and animations are currently only applied to a single result and not to all matching entries. Fix #150 - New argument
fillColorforpulseIcons. Fix #231 - New argument
groupforaddMeasurePathToolbar. Supports single group, multiple groups, or all layers (group = NULL). Fix #233 -
addSearchGoogle/addReverseSearchGoogleload the Google Maps JavaScript API as an htmlDependency instead ofhtmlwidgets::appendContent(), which Shiny ignores (Ignoring appended content). The search control now appears inrenderLeaflet(). Demo:/inst/examples/shiny/search/google_app.R. Fix #112 - Google and OSM search suggestions crashed or showed
undefinedbecause leaflet-search PR 339 calledformatData(control, data)instead offormatData(data). Search formatters now accept both signatures, and Google results unwrapGeocoderResponse.results. -
addReverseSearchGoogleno longer reads minified GoogleLatLngBoundsinternals (viewport.f/viewport.b). Bounds usegetSouthWest()/getNorthEast()(orsouth/west/north/east). -
addLatLngregisters vertex markers in Leaflet’smarkercategory with the geodesic’s group and a unique layer id, and removes them when the line is deleted (removeShape/clearShapes/clearGroup). Hide/show by group still keeps them.
leaflet.extras 2.0.1
CRAN release: 2024-08-19
New Features
-
addWMSLegendgained the argumentstitle,titleStyleandtitleClassto . Fix #219 -
addDrawToolbargained the argumentsedittoolbarandedithandlers, which let’s you customize all the tooltips
leaflet.extras 2.0.0
CRAN release: 2024-06-10
New Features
-
addDrawToolbaroffers some new options:-
handlersOptionsandtoolbarOptions, with which you can customize the drawing toolbar and the tooltips -
addDrawToolbargot a new argumentdrag. When set toTRUE, the drawn features will be draggable during editing, utilizing the Leaflet.Draw.Drag plugin. Otherwise, this library will not be included. Fix #115
-
-
searchOSMTextenables setting the OpenStreetMap (OSM) search text directly from R -
clearSearchOSMallows clearing the search marker associated withaddSearchOSM. Fix #158, Fix #209 -
clearSearchFeaturesprovides functionality to clear the search marker -
addReverseSearchOSMgained new arguments:-
markerallows customization of the icon for the found feature -
showFeatureOptionsenables styling options for the found feature -
showBoundsOptionsallows customization of the style for the boundary of a found feature -
showHighlightOptionsenables customization of the hover effect for a found feature
-
-
addBounceMarkersbehave now like normal Markers (except for clustering) - Update Geodesics functions to show default or custom statistics in Control Info, show (draggable) Markers, use layerManager, enable popup/label/markerOptions/highlightOptions, emit Mouse Events, accept icons.
-
addLatLngforaddGeodesicPolylinesallows you to append line vertices - Emit mouse events (
click,mouseover, andmouseout) for drawn features. The event names are suffixed with identifiers based on thelayercategory, appended with_draw_click,_draw_mouseover, or_draw_mouseout. Thelayercategoryshould be eithershape,polyline, ormarker. (Thanks to @cmcaine) Seeexamples/shiny/draw-events/draw_mouse_events.R
Improvements
- The
apikeyofaddSearchGoogle/addReverseSearchGoogle/addBingTilesnow has to be notNULLand also not"" - Extend BingTiles
imagerySetand emit warnings for deprecated sets - Changed default values in
searchOptionsforurl/propertyLoc/propertyName - Draw events trigger correctly using
priority: "event". Fix #89 - Included 12 color gradients from colorbrewer2 for
addWebGLHeatmapusing this script/scripts/generate_color_gradients.R - In
addReverseSearchOSM, longitudes are now normalized to ensure that the Nominatim search returns features for wrapped tiles. - Updated most JavaScript dependencies, changed Webpack Build, removed source-maps as package size was an R-CMD-check issue
- Include Tests for R functions
- Use Github Actions (R-CMD-check, pkgdown, test-coverage, NPM builds, Styler, PR-commands)
- Fixed & extended examples
leaflet.extras 1.0.0
CRAN release: 2018-04-21
leaflet.js
-
leaflet.extrasdepends uponleaflet(>= 2.0.0). As ofleaflet2.0.0, it is built usingleaflet.jsversion 1.3.1. All plugins have been updated to their latest compatible version ofleaflet.jsv1.3.1. - All javascript dependencies have been updated to the latest stable release.
- @mapbox/leaflet-omnivore@0.3.4 - https://github.com/mapbox/leaflet-omnivore
- @mapbox/togeojson@0.16.0 - https://github.com/mapbox/togeojson
- Leaflet.Geodesic@1.1.0 - https://github.com/henrythasler/Leaflet.Geodesic
- Leaflet.StyleEditor@0.1.6 - https://github.com/dwilhelm89/Leaflet.StyleEditor
- csv2geojson@5.0.2 - https://github.com/mapbox/csv2geojson
- fuse.js@3.2.0 - https://github.com/krisk/Fuse
- leaflet-choropleth@1.1.2 - https://github.com/timwis/leaflet-choropleth
- leaflet-draw-drag@0.4.5 - https://github.com/w8r/Leaflet.draw.drag
- leaflet-draw@0.4.14 - https://github.com/Leaflet/Leaflet.draw
- leaflet-draw@1.0.2 - https://github.com/Leaflet/Leaflet.draw
- leaflet-fullscreen@1.0.2 - https://github.com/Leaflet/Leaflet.fullscreen
- leaflet-gps@1.7.0 - https://github.com/stefanocudini/leaflet-gps
- leaflet-hash@1.0.1 - https://github.com/PowerPan/leaflet-hash
- leaflet-measure-path@1.3.1 - https://github.com/perliedman/leaflet-measure-path
- leaflet-plugins@3.0.2 - https://github.com/shramov/leaflet-plugins
- leaflet-pulse-icon@0.1.0 - https://github.com/mapshakers/leaflet-icon-pulse
- leaflet-search@2.3.7 - https://github.com/stefanocudini/leaflet-search
- leaflet-sleep@0.5.1 - https://github.com/CliffCloud/Leaflet.Sleep
- leaflet-webgl-heatmap@0.2.7 - https://github.com/ursudio/leaflet-webgl-heatmap
- leaflet.BounceMarker@1.0.0 - https://github.com/maximeh/leaflet.bouncemarker
- leaflet.heat@0.2.0 - https://github.com/Leaflet/Leaflet.heat
- leaflet.tilelayer.pouchdbcached@0.4.0 - https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached
- pouchdb-browser@6.4.3 - https://github.com/pouchdb/pouchdb
- topojson@1.6.26 - https://github.com/mbostock/topojson
- topojson@3.0.2 - https://github.com/topojson/topojson
leaflet-omnivore
- Leaflet.label has updated to v1.x of leaflet.js changing default behavior. Mainly… “bindLabel, openLabel and so should be replaced by bindTooltip, openTooltip, etc”.
leaflet.extras 0.2
CRAN release: 2017-06-25
Bug Fixes
- Fixed #86
- Made CRAN Ready #87 (Thanks @timelyportfolio!)
leaflet.extras 0.1.9008
New Features
- Another option for heatmaps via Leaflet.heat
- Also fixed gradientTexture option of WebGLHeatmap.
leaflet.extras 0.1.9007
New Features
- Ability to suspend scrolling using Leaflet.Sleep
leaflet.extras 0.1.9006
Improvements
- Major performance boost to addWebGLHeatmap function. Closes #42.
leaflet.extras 0.1.9004
New Features
- Added support for Leaflet-GPS.
leaflet.extras 0.1.9003
New Features
- Added support for Leaflet-search plugin. Contributed by Bangyou Zheng.
leaflet.extras 0.1.9002
New Features
- Added support for Leaflet-measure-path plugin.
leaflet.extras 0.1.9
New Features
- Added support for Leaflet.Draw plugin.
- Added support of Style Editor plugin.
leaflet.extras 0.1.4
New Features
- Added addTopoJSONChoropleth (Thanks TrantorM).
leaflet.extras 0.1.3
New Features
- Added WMS Legend Control.
leaflet.extras 0.1.2
New Features
- Added Leaflet Hash Plugin for bookmarkable/sharable URLs.
leaflet.extras 0.1.1
New Features
- Added Tile Caching ability
leaflet.extras 0.1.0
New Features
- Added webgl-heatmap plugin
- Added geojson-choropleth plugin
- Added Weather Markers plugin
- Added Pulse Icon plugin