- Added check for open popup to rendering logic (PR #464 by olabalboa).
- [website] Added plugins (PR #463 by mhasbie).
- Fixed event listeners removal in
Map
(PR #459 by andersonveiga). - Added support for dynamic handlers in
Map
(PR #452 by jonathanchrisp). - Added
DivOverlay
component as base class forPopup
andTooltip
, now supporting dynamicclassName
prop. - [website] Updated Docusaurus, with added on-page navigation sidebar.
- Fixed
Map
unmounting whenpreferCanvas
is set. - Added
es
folder to npm package (PR #449 by jonathanchrisp). - [website] Fixed link in examples page.
- [internal] Updated examples to webpack 4.
- Fixed
Tooltip
component unmounting. - Updated Flow support for v0.66 (PR #447 by slek22).
- [website] Fixed typo (PR #440 by BartWaardenburg).
- [website] Added plugins (PR #446 by mhasbie).
React-Leaflet now has a website! Check out react-leaflet.js.org to browse the documentation.
If you wish to help out improving the website, this issue is a good starting point!
- Updated documentation and dependency to Leaflet v1.3.
- Added
HTMLImageElement
support toImageOverlay
(new in Leaflet v1.3). - [website] Setup using Docusaurus.
- [website] Fixed links to examples (PR #430 by subelsky).
Update Popup
and Tooltip
layout after render
(PR #423 by jeffchan).
More permissive support for the className
prop of Map
.
- Fixed supporting
Popup
children inCircleMarker
. - Fixed updating multiple classes in the
className
prop ofMap
.
Fixed unmounting Tooltip
with interactive
prop.
Updated Flow types for Flow v0.59 (PR #412 by rsolomon).
Fixed Tooltip
teardown logic.
- Updated docs to use
https
for URLs (PR #403 by sehaas). - Fixed initial props in
WMSTileLayer
(PR #405 by markhepburn). - Added tests for viewport and teardown logic in the
Map
component (PR #406 by uxtx).
- Added UMD build to CDNJS (PR #11863 in cdnjs/cdnjs and #390 by extend1994).
- Fixed setting the default pane for
Popup
andTooltip
(PR #394 by RichardWithnell).
- [internal] Added support for building the library using node 6 (PR #376 by tusbar).
- Added support for React v16 as peer dependency.
- Fixed
Path
options. - Fixed
WMSTileLayer
options.
- [doc] Added
react-leaflet-sidebarv2
to the plugins documentation (PR #369 by markhepburn). - Fixed Flow types in
Map
andPopup
.
Fixed positions
proptype in Polyline
.
Fixed support for Flow types.
Added support for Flow types in CommonJS and ESM builds as Flow comments.
- Fixed
GridLayer
inheritingmaxZoom
andminZoom
fromMap
. - Fixed regression introduced in v1.6.0 with
ScaleControl
.
- [internal] Updated build process (PR #359 by tusbar) - see the UPGRADING guide for more information if you're relying on internals.
- [internal] Fixed hot module reloading in examples (PR #360 by tusbar).
- Updated Flow types to support Flow v0.53.
Updated documentation and dependency to Leaflet v1.2.
Fixed allowing a zoom
value of 0
in Map
.
This release now requires Leaflet v1.1+ as a peer dependency in order to add support for the new features introduced by Leaflet in this release:
- Added support for dynamic
zIndex
property toImageOverlay
. - Added
VideoOverlay
component. - Moved the
prop-types
dependency topeerDependencies
.
See the relevant section of the upgrading guide for more information.
Fixed Popup auto-panning.
- Added
viewport
property toMap
, as an alternative and complementary way to manipulate the map's viewport. - Added
onViewportChange
andonViewportChanged
callbacks toMap
as a simplified way to track the map's viewport changes. - Added
onClose
andonOpen
callbacks toPopup
. - Added
onClose
andonOpen
callbacks toTooltip
.
Fixed updating the Map's zoom
when not previously set.
Removed leftover console.log()
in Polygon
.
- Added support for dynamic
bounds
property inImageOverlay
, PR #326 by Gjum. - Added
whenReady
property toMap
, running the provided function according to Leaflet's documentation.
- Fixed DOM leak when unmounting an unclosed popup, PR #326 by DirtyHairy.
- [doc] Updated Leaflet documentation links, PR #324 by Chris-Petty.
- [doc] Fixed "quick start" link, PR #321 by mojo5000.
- [doc] Added react-leaflet-ant-path to the plugins documentation, PR #318 by rubenspgcavalcante.
- Added support for React v15.5, fixes PropTypes warning.
- [internal] Use Prettier code formatting.
Filter falsy values as event handlers, PR #308 by awinograd.
Fixed updating some properties in TileLayer
and WMSTileLayer
.
Fixed regressions in GridLayer
and Babel configuration.
Make GridLayer
inherit maxZoom
and minZoom
properties from Map
.
- The UMD build is now created using Webpack 2.
- Fixed supporting multiple children in
Marker
. - [internal] Updated Webpack to v2.
- [internal] Small refactoring of the
Map
component. - [doc] Various improvements, including PRs #280 by h4, #282 by cwalv and #283 by YUzhva.
- Added support for
Popup
andTooltip
children toImageOverlay
PR #270 by rjdestigter. - Added
createLeafletElement()
andupdateLeafletElement()
methods to simplify the abstraction between React's lifecycle hooks and Leaflet's APIs. See the relevant section of the upgrading guide for more information.
Fixed updating the className
property of Map
.
Fixed binding events in FeatureGroup
.
- Fixed updating
opacity
andzIndex
inWMSTileLayer
(PR #259 by YannickBochatay). - [doc] Added link to plugins documentation in README (PR #258 by jakehm).
Changes from v0.12.3:
- [BREAKING] Updated Leaflet dependency requirement to v1.0.0.
- [BREAKING] Renamed
GeoJson
toGeoJSON
to match Leaflet's change. - [BREAKING] Removed
MultiPolygon
andMultiPolyline
, now supported byPolygon
andPolyline
respectively. - [BREAKING] Removed
CanvasTileLayer
, replaced byGridLayer
. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()
method inMapComponent
andMapControl
, deprecated since v0.12.0. - [BREAKING] Removed
setIconDefaultImagePath()
helper, setLeaflet.Icon.Default.imagePath
directly using Leaflet if you need. Leaflet.Icon.Default.imagePath
is no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.- The
Map
component no longer creates an unique ID for its container if none is provided. - Added
useFlyTo: bool
property toMap
to useflyTo
instead ofsetView
andflyToBounds
instead offitBounds
when changing the map's view or bounds (PR #148 by jgimbel). - Added
GridLayer
. - Added
Pane
component introduced in Leaflet v1. (PR #227 by rjdestigter). - Added
Tooltip
component introduced in Leaflet v1. See Leaflet's documentation for usage. - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayer
to support dynamicurl
and parameters. - [internal] Fixed Flow errors (PR #251 by joeyrosztoczy).
- [internal] Updated
MapLayer
to only create divs when necessary. - [internal] Removed
BaseTileLayer
, replaced byGridLayer
. - [internal] Removed
bower.json
file.
Updated WMSTileLayer
to support dynamic url
property.
- Added
Pane
component introduced in Leaflet v1. (PR #227 by rjdestigter). - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayer
to support dynamic parameters.
- [BREAKING] Removed
setIconDefaultImagePath()
helper, setLeaflet.Icon.Default.imagePath
directly using Leaflet if you need. - Updated Leaflet dependency requirement to v1.0.0.
Leaflet.Icon.Default.imagePath
is no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.
Fixed Tooltip
removal handling.
- Added
Tooltip
component introduced in Leaflet v1.0.0-rc.2. See Leaflet's documentation for usage. - Updated Leaflet dependency to v1.0.0-rc.3.
- Reverted basing components on
React.PureComponent
, they are now based onReact.Component
.
- [BREAKING] Renamed
GeoJson
toGeoJSON
to match Leaflet's change. - [BREAKING] Removed
MultiPolygon
andMultiPolyline
, now supported byPolygon
andPolyline
respectively. - [BREAKING] Removed
CanvasTileLayer
, replaced byGridLayer
. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()
method inMapComponent
andMapControl
, deprecated since v0.12.0. - Removed
BaseTileLayer
, replaced byGridLayer
. - Removed
bower.json
file. - The
Map
component no longer creates an unique ID for its container if none is provided. - All components now extend from
React.PureComponent
instead ofReact.Component
, as such React v15.3.0+ is now required. - Added
GridLayer
. - Added
useFlyTo: bool
property toMap
to useflyTo
instead ofsetView
andflyToBounds
instead offitBounds
when changing the map's view or bounds (PR #148 by jgimbel).