Skip to content

Releases: trafficonese/leaflet.extras

leaflet.extras 2.0.1

20 Aug 09:28
Compare
Choose a tag to compare

New Features

  • addWMSLegend gained the arguments title, titleStyle and titleClass to . Fix #219
  • addDrawToolbar gained the arguments edittoolbar and edithandlers, 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

10 Jun 14:06
Compare
Choose a tag to compare

New Features

  • addDrawToolbar offers some new options:

    • handlersOptions and toolbarOptions, with which you can customize the drawing toolbar and the tooltips
    • addDrawToolbar got a new argument drag. When set to TRUE, 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 with addSearchOSM. 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 feature
    • showFeatureOptions enables styling options for the found feature
    • showBoundsOptions allows customization of the style for the boundary of a found feature
    • showHighlightOptions 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 for addGeodesicPolylines allows you to append line vertices

  • Emit mouse events (click, mouseover, and mouseout) for drawn features. The event names are suffixed with identifiers based on the layercategory, appended with _draw_click, _draw_mouseover, or _draw_mouseout. The layercategory should be either shape, polyline, or marker. (Thanks to @cmcaine) See examples/shiny/draw-events/draw_mouse_events.R

Improvements

  • The apikey of addSearchGoogle / addReverseSearchGoogle / addBingTiles now has to be not NULL and also not ""
  • Extend BingTiles imagerySet and emit warnings for deprecated sets
  • Changed default values in searchOptions for url / 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

22 Apr 17:44
141ee15
Compare
Choose a tag to compare

leaflet.extras 1.0.0

leaflet.js

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

02 Nov 15:20
Compare
Choose a tag to compare

Cutting a first release.