Skip to content

v2.0.0

Compare
Choose a tag to compare
@schloerke schloerke released this 22 Apr 17:46
eaee4d5

leaflet 2.0.0

BREAKING CHANGES

BUG FIXES AND FEATURES

  • Relative protocols are used where possible when adding tiles (#526). In RStudio 1.1.x on linux and windows, a known issue of 'https://' routes fail to load, but works within browsers (rstudio/rstudio#2661).

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

  • 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)

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

  • Fix bug where markers would not appear in self contained knitr files (cc79bc3)

  • leaflet-label plugin now L.tooltip in leaflet.js. labelOptions() now translates old options clickable to interactive and noHide to permanent.

  • Fix a bug where the default addTiles() would not work with .html files
    served directly from the filesystem.

  • Add groupOptions function. Currently the only option is letting you specify
    zoom levels at which a group should be visible.

  • Fix bug with accessing columns in formulas when the data source is a Crosstalk
    SharedData object wrapping a spatial data frame or sf object.

  • Fix strange wrapping behavior for legend, especially common for Chrome when
    browser zoom level is not 100%.

  • Fix incorrect opacity on NA entry in legend. (PR #425)

  • Added support for drag events (#405)

  • Ensure type safety of .indexOf(stamp) (#396)

  • validateCoords() warns on invalid polygon data (#393)

  • Added method argument to addRasterImage() to enable nearest neighbor interpolation when projecting categorical rasters (#462)

  • Added an 'auto' method for addRasterImage(). Projected factor results are coerced into factors. (9accc7e)

  • Added data parameter to remaining addXXX() methods, including addLegend. (f273edd, #491, #485)

  • Added preferCanvas argument to leafletOptions() (#521)