Releases: trafficonese/leaflet.extras
leaflet.extras 2.0.1
New Features
addWMSLegend
gained the argumentstitle
,titleStyle
andtitleClass
to . Fix #219addDrawToolbar
gained the argumentsedittoolbar
andedithandlers
, which let's you customize all the tooltips
Bugfixes
- Fixed CRAN devel checks: Found the following Rd file(s) with Rd \link{} targets missing package
leaflet.extras 2.0.0
New Features
-
addDrawToolbar
offers some new options:handlersOptions
andtoolbarOptions
, with which you can customize the drawing toolbar and the tooltipsaddDrawToolbar
got 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
-
searchOSMText
enables setting the OpenStreetMap (OSM) search text directly from R -
clearSearchOSM
allows clearing the search marker associated withaddSearchOSM
. Fix #158, Fix #209 -
clearSearchFeatures
provides functionality to clear the search marker -
addReverseSearchOSM
gained new arguments:marker
allows customization of the icon for the found featureshowFeatureOptions
enables styling options for the found featureshowBoundsOptions
allows customization of the style for the boundary of a found featureshowHighlightOptions
enables customization of the hover effect for a found feature
-
addBounceMarkers
behave 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.
-
addLatLng
foraddGeodesicPolylines
allows 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
. Thelayercategory
should be eithershape
,polyline
, ormarker
. (Thanks to @cmcaine) Seeexamples/shiny/draw-events/draw_mouse_events.R
Improvements
- The
apikey
ofaddSearchGoogle
/addReverseSearchGoogle
/addBingTiles
now has to be notNULL
and also not""
- Extend BingTiles
imagerySet
and emit warnings for deprecated sets - Changed default values in
searchOptions
forurl
/propertyLoc
/propertyName
- Draw events trigger correctly using
priority: "event"
. Fix #89 - Included 12 color gradients from colorbrewer2 for
addWebGLHeatmap
using 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
Bugfixes
v1.0.0
leaflet.extras 1.0.0
leaflet.js
leaflet.extras
depends uponleaflet
(>= 2.0.0). As ofleaflet
2.0.0, it is built usingleaflet.js
version 1.3.1. All plugins have been updated to their latest compatible version ofleaflet.js
v1.3.1.- All javascript dependencies have been updated to the latest stable release.
- @mapbox/[email protected] - https://github.com/mapbox/leaflet-omnivore
- @mapbox/[email protected] - https://github.com/mapbox/togeojson
- [email protected] - https://github.com/henrythasler/Leaflet.Geodesic
- [email protected] - https://github.com/dwilhelm89/Leaflet.StyleEditor
- [email protected] - https://github.com/mapbox/csv2geojson
- [email protected] - https://github.com/krisk/Fuse
- [email protected] - https://github.com/timwis/leaflet-choropleth
- [email protected] - https://github.com/w8r/Leaflet.draw.drag
- [email protected] - https://github.com/Leaflet/Leaflet.draw
- [email protected] - https://github.com/Leaflet/Leaflet.draw
- [email protected] - https://github.com/Leaflet/Leaflet.fullscreen
- [email protected] - https://github.com/stefanocudini/leaflet-gps
- [email protected] - https://github.com/PowerPan/leaflet-hash
- [email protected] - https://github.com/perliedman/leaflet-measure-path
- [email protected] - https://github.com/shramov/leaflet-plugins
- [email protected] - https://github.com/mapshakers/leaflet-icon-pulse
- [email protected] - https://github.com/stefanocudini/leaflet-search
- [email protected] - https://github.com/CliffCloud/Leaflet.Sleep
- [email protected] - https://github.com/ursudio/webgl-heatmap-leaflet
- [email protected] - https://github.com/maximeh/leaflet.bouncemarker
- [email protected] - https://github.com/Leaflet/Leaflet.heat
- [email protected] - https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached
- [email protected] - https://github.com/pouchdb/pouchdb
- [email protected] - https://github.com/mbostock/topojson
- [email protected] - 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".
New Features
Improvements
- Major Changes to search
Release 001
Cutting a first release.