30 KiB
v2.8.0 (2020-10-22)
- Added React v17 to peer dependencies (PR #773 by anajavi).
- [website] Added
react-esri-leafletplugin (PR #768 by slutske22).
v2.7.0 (2020-05-06)
- Added
viewBoxandpreserveAspectRatioprops toSVGOverlaycomponent (PR #704 by spectras). - [website] Bump Leaflet docs links to v1.6.0 (PR #686 by moondef).
- [website] Set react-leaflet-markercluster v2 support (PR #693 by yuzhva).
- [website] Added react-leaflet-kml plugin (PR #707 by aviklai).
v2.6.3 (2020-03-13)
Fixed regression in v2.6.2 handling maxZoom and minZoom options in Map component.
v2.6.2 (2020-03-12)
- Fixed applying
maxZoomandminZoomoptions to tile layers. - [website] Added
react-leaflet-geodesicplugin (PR #656 by dcdourado). - [website] Added
react-leaflet-arrowheadsandreact-leaflet-editable-popupplugins (PR #678 by slutske22). - [internal] Set babel runtime version (PR #670 by anajavi).
v2.6.1 (2019-12-14)
Fixed catching falsy values in utils/pick (PR #649 by CaptainLexington).
v2.6.0 (2019-11-18)
- Updated Leaflet dependency to v1.6.
- Added support for
doubleClickZoomoption'scentersetting to theMapcomponent (PR #633 by DerGuteMoritz). - Added
markersInheritOptionsprop toGeoJSONcomponent. - [website] Updated
react-leaflet-bingplugin (PR #634 by Charmatzis). - [website] Updated
react-leaflet-googleplugin (PR #635 by Charmatzis). - [website] Added
react-leaflet-curveplugin (PR #636 by Shadowman4205).
v2.5.0 (2019-10-19)
- Added
SVGOverlaycomponent (PR #630 by fenech). - Added a
GeoJSONwithPopupexample (PR #608 by hackleman). - Fixed wrongly injecting the
leafletparameter in theWMSTileLayerURL. - [website] Added logo and branding guidelines (PR #629 by colbyfayock).
- [website] Added
react-leaflet-enhanced-markerplugin (PR #610 by ishaan6395). - [website] Added
leaflet-drift-markerplugin (PR #615 by hugobarragon). - [website] Added
react-leaflet-street-viewplugin (PR #616 by ishaan6395). - [website] Removed unmaintained plugin
react-leaflet-rotatedmarkerplugin (PR #617 by verdie-g). - [website] Added
react-leaflet-d3-svg-overlayplugin (PR #628 by johannesloetzsch).
v2.4.0 (2019-06-09)
- Added
ZoomPanOptionsandFitBoundsOptionstoMapcomponent (PR #593 by scailbc). - Updated Flow types support for Flow v0.100.
- [website] Updated Docusaurus.
v2.3.0 (2019-05-12)
- Updated Leaflet dependency to v1.5.
- Updated React dependency to v16.8.
- Added
useLeaflethook (PR #571 by vadzim). - [website] Added
react-leaflet-google-layerplugin (PR #576 by aviklai). - [internal] Replaced deprecated
webpack-servelibrary bywebpack-dev-serverto run the examples.
v2.2.1 (2019-02-17)
- Fixed passing options in the
LayerGroupcomponent (PR #570 by failociraptor). - [website] Added
react-leaflet-textpathplugin (PR #556 by clementallen). - [website] Minor text fixes to components docs (PR #558 by arthurRuf).
- [website] Updated compatibility info for 5 plugins and added 2 new plugins (PR #560 and PR #564 by mhasbie).
- [website] Updated
react-leaflet-controlcompatibility status (PR #567 by robinmetral). - [website] Updated third party compatibility docs for 2 plugins (PR #568 by renanbandeira).
v2.2.0 (2019-01-12)
- Updated Leaflet dependency to v1.4.
- Fixed duplicate element creation in
Path(PR #549 by vadzim). - Changed
whenReadylogic inMapto get triggered after React reference is bound. - [internal] Replaced
lodashwithfast-deep-equaland vanilla JS implementations (PR #554 by jtfell). - [website] Added
react-leaflet-semicircleplugin (PR #552 by clementallen).
v2.1.4 (2018-12-22)
Fixed event handlers changes in Map component.
v2.1.3 (2018-12-15)
- [website] Added
react-leaflet-figure-editorplugin (PR #542 by argonavt11). - [website] Added
react-leaflet-box-zoomplugin (PR #543 by ChrisLowe-Takor). - Added example for custom icons usage (PR #545 by rlahoda).
- Updated Flow types support for Flow v0.89.
v2.1.2 (2018-11-10)
- Fixed support for multiple classes in the
Panecomponent. - [internal] Replaced some lodash functions (PR #533 by radeno).
- [website] Added
react-leaflet-geojson-patternsplugin (PR #536 by lkazberova).
v2.1.1 (2018-10-22)
- Fixed regression when updating the
classNameprop of theMapcomponent. - [internal] Use ESM babel runtime (PR #527 by eanajavi).
- [website] Indicate
react-leaflet-locate-controlas not compatible with v2 (PR #528 by eanajavi).
v2.1.0 (2018-10-06)
- Added support for dynamic
attributionprop in layers. - Added
MapEventedabstract class used byMapComponentandMap. - [website] Added
react-leaflet-freedrawplugin (PR #508 by elangobharathi). - [website] Updated "Lifecycle process" overview (PR #509 by clintharris).
- [website] Added
react-leaflet-distortable-imageoverlayplugin (PR #511 by ChrisLowe-Takor). - [website] Fixed typo in docs (PR #513 by Roconda).
- [website] Added
react-leaflet-sidetabsplugin (PR #517 by eferhatg). - [website] Added
leaflet-react-track-playerplugin (PR #523 by argonavt11). - [website] Added
react-leaflet-wmtsplugin (PR #524 by mpivaa). - [internal] Updated Babel dependency to v7.
v2.0.1 (2018-08-14)
- Fixed setting
maxZoomandminZoomoptions toGridLayerusingMapoptions. - [website] Added
react-leaflet-searchandreact-leaflet-zoom-indicatorplugins (PR #501 by tumerorkun).
v2.0.0 (2018-07-05)
Changes from v1.9.1:
- [BREAKING] Updated React dependency to v16.3.
- [BREAKING] Replaced React context usage with new APIs introduced in React v16.3.
- [BREAKING] Removed PropTypes.
- [BREAKING] Dropped support for IE < 11.
- React Portals are now used to render the
DivOverlayand thereforePopupandTooltipcomponents, enabling context propagation (PR #475 by hannesj). - Replaced wrapping
divelements withFragment. - Added
collapsedas dynamic property toLayersControl. - Added
ControlledLayerabstract class export. - [website] Added
react-leaflet-nmscaleplugin (PR #479 by anajavi). - [website] Added 3 plugins (PR #482 by fullhdpixel).
- [website] Updated docs for abstract classes and usage for custom components.
v2.0.0-rc.3 (2018-07-02)
Added collapsed as dynamic property to LayersControl.
v2.0.0-rc.2 (2018-06-28)
- Added
ControlledLayerabstract class export. - [website] Updated docs for abstract classes and usage for custom components.
v2.0.0-rc.1 (2018-06-10)
- [website] Added
react-leaflet-nmscaleplugin (PR #479 by anajavi). - [website] Added 3 plugins (PR #482 by fullhdpixel).
v2.0.0-beta.1 (2018-05-26)
- [BREAKING] Updated React dependency to v16.3.
- [BREAKING] Replaced React context usage with new APIs introduced in React v16.3.
- [BREAKING] Removed PropTypes.
- [BREAKING] Dropped support for IE < 11.
- React Portals are now used to render the
DivOverlayand thereforePopupandTooltipcomponents, enabling context propagation (PR #475 by hannesj). - Replaced wrapping
divelements withFragment.
v1.9.1 (2018-03-22)
- Added check for open popup to rendering logic (PR #464 by olabalboa).
- [website] Added plugins (PR #463 by mhasbie).
v1.9.0 (2018-03-14)
- Fixed event listeners removal in
Map(PR #459 by andersonveiga). - Added support for dynamic handlers in
Map(PR #452 by jonathanchrisp). - Added
DivOverlaycomponent as base class forPopupandTooltip, now supporting dynamicclassNameprop. - [website] Updated Docusaurus, with added on-page navigation sidebar.
v1.8.2 (2018-02-26)
- Fixed
Mapunmounting whenpreferCanvasis set. - Added
esfolder to npm package (PR #449 by jonathanchrisp). - [website] Fixed link in examples page.
- [internal] Updated examples to webpack 4.
v1.8.1 (2018-02-21)
- Fixed
Tooltipcomponent 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).
v1.8.0 (2018-01-15)
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
HTMLImageElementsupport toImageOverlay(new in Leaflet v1.3). - [website] Setup using Docusaurus.
- [website] Fixed links to examples (PR #430 by subelsky).
v1.7.8 (2017-12-03)
Update Popup and Tooltip layout after render
(PR #423 by jeffchan).
v1.7.7 (2017-11-27)
More permissive support for the className prop of Map.
v1.7.6 (2017-11-23)
- Fixed supporting
Popupchildren inCircleMarker. - Fixed updating multiple classes in the
classNameprop ofMap.
v1.7.5 (2017-11-20)
Fixed unmounting Tooltip with interactive prop.
v1.7.4 (2017-11-10)
Updated Flow types for Flow v0.59 (PR #412 by rsolomon).
v1.7.3 (2017-11-04)
Fixed Tooltip teardown logic.
v1.7.2 (2017-10-31)
- Updated docs to use
httpsfor URLs (PR #403 by sehaas). - Fixed initial props in
WMSTileLayer(PR #405 by markhepburn). - Added tests for viewport and teardown logic in the
Mapcomponent (PR #406 by uxtx).
v1.7.1 (2017-10-09)
- Added UMD build to CDNJS (PR #11863 in cdnjs/cdnjs and #390 by extend1994).
- Fixed setting the default pane for
PopupandTooltip(PR #394 by RichardWithnell).
v1.7.0 (2017-09-26)
- [internal] Added support for building the library using node 6 (PR #376 by tusbar).
- Added support for React v16 as peer dependency.
v1.6.6 (2017-09-05)
- Fixed
Pathoptions. - Fixed
WMSTileLayeroptions.
v1.6.5 (2017-08-31)
- [doc] Added
react-leaflet-sidebarv2to the plugins documentation (PR #369 by markhepburn). - Fixed Flow types in
MapandPopup.
v1.6.4 (2017-08-24)
Fixed positions proptype in Polyline.
v1.6.3 (2017-08-21)
Fixed support for Flow types.
v1.6.2 (2017-08-21)
Added support for Flow types in CommonJS and ESM builds as Flow comments.
v1.6.1 (2017-08-20)
- Fixed
GridLayerinheritingmaxZoomandminZoomfromMap. - Fixed regression introduced in v1.6.0 with
ScaleControl.
v1.6.0 (2017-08-20)
- [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.
v1.5.0 (2017-08-10)
Updated documentation and dependency to Leaflet v1.2.
v1.4.1 (2017-07-25)
Fixed allowing a zoom value of 0 in Map.
v1.4.0 (2017-06-28)
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
zIndexproperty toImageOverlay. - Added
VideoOverlaycomponent. - Moved the
prop-typesdependency topeerDependencies.
See the relevant section of the upgrading guide for more information.
v1.3.1 (2017-06-20)
Fixed Popup auto-panning.
v1.3.0 (2017-06-11)
- Added
viewportproperty toMap, as an alternative and complementary way to manipulate the map's viewport. - Added
onViewportChangeandonViewportChangedcallbacks toMapas a simplified way to track the map's viewport changes. - Added
onCloseandonOpencallbacks toPopup. - Added
onCloseandonOpencallbacks toTooltip.
v1.2.2 (2017-06-07)
Fixed updating the Map's zoom when not previously set.
v1.2.1 (2017-06-01)
Removed leftover console.log() in Polygon.
v1.2.0 (2017-05-24)
- Added support for dynamic
boundsproperty inImageOverlay, PR #326 by Gjum. - Added
whenReadyproperty toMap, running the provided function according to Leaflet's documentation.
v1.1.7 (2017-05-20)
- 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.
v1.1.6 (2017-04-10)
- Added support for React v15.5, fixes PropTypes warning.
- [internal] Use Prettier code formatting.
v1.1.5 (2017-04-05)
Filter falsy values as event handlers, PR #308 by awinograd.
v1.1.4 (2017-03-22)
Fixed updating some properties in TileLayer and WMSTileLayer.
v1.1.3 (2017-03-15)
Fixed regressions in GridLayer and Babel configuration.
v1.1.2 (2017-03-14)
Make GridLayer inherit maxZoom and minZoom properties from Map.
v1.1.1 (2017-03-06)
- 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
Mapcomponent. - [doc] Various improvements, including PRs #280 by h4, #282 by cwalv and #283 by YUzhva.
v1.1.0 (2017-01-11)
- Added support for
PopupandTooltipchildren toImageOverlayPR #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.
v1.0.3 (2017-01-07)
Fixed updating the className property of Map.
v1.0.2 (2016-12-19)
Fixed binding events in FeatureGroup.
v1.0.1 (2016-11-26)
- Fixed updating
opacityandzIndexinWMSTileLayer(PR #259 by YannickBochatay). - [doc] Added link to plugins documentation in README (PR #258 by jakehm).
v1.0.0 (2016-11-14)
Changes from v0.12.3:
- [BREAKING] Updated Leaflet dependency requirement to v1.0.0.
- [BREAKING] Renamed
GeoJsontoGeoJSONto match Leaflet's change. - [BREAKING] Removed
MultiPolygonandMultiPolyline, now supported byPolygonandPolylinerespectively. - [BREAKING] Removed
CanvasTileLayer, replaced byGridLayer. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()method inMapComponentandMapControl, deprecated since v0.12.0. - [BREAKING] Removed
setIconDefaultImagePath()helper, setLeaflet.Icon.Default.imagePathdirectly using Leaflet if you need. Leaflet.Icon.Default.imagePathis no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.- The
Mapcomponent no longer creates an unique ID for its container if none is provided. - Added
useFlyTo: boolproperty toMapto useflyToinstead ofsetViewandflyToBoundsinstead offitBoundswhen changing the map's view or bounds (PR #148 by jgimbel). - Added
GridLayer. - Added
Panecomponent introduced in Leaflet v1. (PR #227 by rjdestigter). - Added
Tooltipcomponent introduced in Leaflet v1. See Leaflet's documentation for usage. - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayerto support dynamicurland parameters. - [internal] Fixed Flow errors (PR #251 by joeyrosztoczy).
- [internal] Updated
MapLayerto only create divs when necessary. - [internal] Removed
BaseTileLayer, replaced byGridLayer. - [internal] Removed
bower.jsonfile.
v1.0.0-rc.3 (2016-11-04)
Updated WMSTileLayer to support dynamic url property.
v1.0.0-rc.2 (2016-10-20)
- Added
Panecomponent introduced in Leaflet v1. (PR #227 by rjdestigter). - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayerto support dynamic parameters.
v1.0.0-rc.1 (2016-09-28)
- [BREAKING] Removed
setIconDefaultImagePath()helper, setLeaflet.Icon.Default.imagePathdirectly using Leaflet if you need. - Updated Leaflet dependency requirement to v1.0.0.
Leaflet.Icon.Default.imagePathis no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.
v1.0.0-beta.3 (2016-08-26)
Fixed Tooltip removal handling.
v1.0.0-beta.2 (2016-08-20)
- Added
Tooltipcomponent 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.
v1.0.0-beta.1 (2016-07-30)
- [BREAKING] Renamed
GeoJsontoGeoJSONto match Leaflet's change. - [BREAKING] Removed
MultiPolygonandMultiPolyline, now supported byPolygonandPolylinerespectively. - [BREAKING] Removed
CanvasTileLayer, replaced byGridLayer. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()method inMapComponentandMapControl, deprecated since v0.12.0. - Removed
BaseTileLayer, replaced byGridLayer. - Removed
bower.jsonfile. - The
Mapcomponent no longer creates an unique ID for its container if none is provided. - All components now extend from
React.PureComponentinstead ofReact.Component, as such React v15.3.0+ is now required. - Added
GridLayer. - Added
useFlyTo: boolproperty toMapto useflyToinstead ofsetViewandflyToBoundsinstead offitBoundswhen changing the map's view or bounds (PR #148 by jgimbel).
v0.12.3 (2016-09-21)
Fixed events bindind in UMD build.
v0.12.2 (2016-09-09)
- Updated propTypes to allow polygons with holes in
MultiPolygon(PR #218 by ernoaapa). - Fixed badly named
ScaleControlclass.
v0.12.1 (2016-07-08)
- Fixed unmounting
LayersControlwhen theMapis unmounting as well. - Added a plugins section to the documentation.
v0.12.0 (2016-06-25)
- [BREAKING] Moved Leaflet instances injection from props to context. All components provided by this lib should continue to work as expected, but custom components need to be updated. Read the UPGRADING file for more information.
- Deprecated
getLeafletElement()method, simply use theleafletElementproperty instead. - Documentation moved to the docs folder and has been split into different files for better readability.
v0.11.7 (2016-06-14)
Fixed removing layers from LayersControl.
v0.11.6 (2016-06-09)
- Fixed allowing to set and update the
styleprop as a function inGeoJson. - [internal] Added lodash-webpack-plugin to reduce the size of the UMD build.
v0.11.5 (2016-05-14)
- Fixed updating
boundsOptionsin theMapwithout updatingbounds. - Fixed setting
opacityandzIndexproperties to0in tile layers.
v0.11.4 (2016-05-05)
Fixed TileLayer properties update.
v0.11.3 (2016-04-28)
Made the draggable property in Marker dynamic (PR #148 by riolowry).
v0.11.2 (2016-04-25)
Fixed layer removal in LayersControl.
v0.11.1 (2016-04-17)
Fixed map property injection in LayersControl (PR #142 by Dahlgren).
v0.11.0 (2016-04-09)
- [BREAKING] Added
layerContainerproperty as a consistent replacement formaporlayerGroup(PR #132 by boromisp). This is only breaking if you are creating custom components, as you will need to make sure to also inject thelayerContainerproperty to children layers as you need to do withmap. - Changed
LayersControlto be based on components:- Added
LayersControl.BaseLayercontainer component to add a base layer to aLayersControl. - Added
LayersControl.Overlaycontainer component to add an overlay to aLayersControl. baseLayersandoverlaysproperties forLayersControlare still supported but deprecated. Using either of them will make theLayersControlbehave the same way it does in versions < 0.11.
- Added
- Deprecated
onLeaflet...properties for events, simply useon..., exonClickinstead ofonLeafletClick. - Added warnings for deprecated features, the same way React does. Make sure to address these warnings to ease the transition to future releases.
- Added React v15.0.0 support as peer dependency.
- [internal] Fixed
no-unused-varslinting (PR #131 by boromisp).
v0.10.2 (2016-03-12)
- Added
animateoptional property toMap(PR #126 by mariusandra). - Added React v15.0.0-rc.1 support as peer dependency.
v0.10.1 (2016-02-22)
- Added the popup container as source layer to
Popupcreation, fixes #113 (PR #112 by amarant). - [internal] Updated Lodash to v4.
v0.10.0 (2015-12-22)
- Added
AttributionControl,LayersControlandScaleControl(PR #100 by jonboiser). - Added example to render a list of custom Markers (PR #104 by varya).
- [internal] Updated Babel to v6.
v0.9.0 (2015-11-12)
- Removed
PopupContainercomponent, extended internally by other components. FeatureGroupnow expects its layers to be passed as children, likeLayerGroup.- Added
renderChildrenWithProps()toMapLayer, used internally by the library. - Added
MapControlas base component for controls. - Added
ZoomControl.
v0.8.1 (2015-10-21)
Fix PropTypes export.
v0.8.0 (2015-10-07)
Changes from v0.7.0:
- Updated React to v0.14.0.
- Added ReactDOM v0.14.0 to peer dependencies.
Popupnow renders its contents usingReactDOM.render()and therefore supports dynamic children.Mapnow supports dynamicboundsandmaxBoundsproperties (#72).- Added
LayerGroupcomponent (#58).
v0.8.0-rc.3 (2015-09-29)
v0.8.0-rc.2 (2015-09-22)
Check if Popup content node exists before trying to unmount.
v0.8.0-rc.1 (2015-09-16)
- Updated React to v0.14.0-rc1.
- Added ReactDOM v0.14.0-rc1 to peer dependencies.
Popupnow renders its contents usingReactDOM.render()and therefore supports dynamic children.
v0.7.0 (2015-09-08)
- Updated Leaflet to v0.7.5.
- Added
Pathbase component for vector layers, handling dynamic Path options properties. - Added support for holes in
Polygon. - [internal] Updated Jest to v0.5.
- [internal] Updated Gulpfile to use Babel.
- [internal] Added ESLint validation.
v0.6.2 (2015-06-14)
Fix ignored events in MapComponent
(#41).
v0.6.1 (2015-05-22)
Fix PopupContainer export.
v0.6.0 (2015-05-18)
- Added
styleproperty on theMapcomponent. - Replaced the
<noscript>element inPopupContainerby a<div>to be properly updated.
v0.5.0 (2015-05-02)
Set icon, zIndexOffset and opacity properties as dynamic on Marker.
v0.4.1 (2015-04-06)
- Removed
getLeafletElement()deprecation. - Updated Babel to v5.
v0.4.0 (2015-03-28)
Released v0.4.
v0.4.0-rc.1 (2015-03-11)
React v0.13.0.
v0.4.0-beta.1 (2015-03-08)
- Updated React dependency to v0.13.0-rc2:
- Components are defined as ES6 classes.
- Mixins are replaced by the base components
MapComponent,MapLayer,BaseTileLayerandPopupContainer. All components extend from these. - The new
React.cloneElement()API is used instead of the deprecatedReact.addons.cloneWithProps()to pass themapproperty to the components. - The
mapproperty has been removed from the componentspropTypesdefinition as it is dynamically injected to its children by theMapcomponent, React would now warn it is not set. It is still required by components to have access to the Leaflet object.
- Events can now be set as
on{Event}rather thanonLeaflet{Event}, exonClickinstead ofonLeafletClick, as all events are proxied to Leaflet. - Deprecated
getLeafletElement()method, simply use theleafletElementproperty instead to access the Leaflet object created for a component.