diff --git a/.github/ISSUE_TEMPLATE/bug-in-v1.md b/.github/ISSUE_TEMPLATE/bug-in-v1.md index 4da7c4ec..f6307c9a 100644 --- a/.github/ISSUE_TEMPLATE/bug-in-v1.md +++ b/.github/ISSUE_TEMPLATE/bug-in-v1.md @@ -9,13 +9,13 @@ about: Report a bug in version 1 of the library Please make sure to check the following boxes before submitting an issue.\ **Issues opened without using this template will be closed unless they have a good reason not to follow this template.** -* [ ] All peer dependencies are installed: React, ReactDOM and Leaflet. -* [ ] Using a supported version of React and ReactDOM (v15.x or v16.x). -* [ ] Using the supported version of Leaflet (v1.3.x) and its corresponding CSS file is loaded. -* [ ] Using the [latest stable version of React-Leaflet](https://github.com/PaulLeCam/react-leaflet/releases) - **not v2 beta**. -* [ ] The issue has not already been reported. -* [ ] Make sure you have followed the [quick start guide](http://leafletjs.com/examples/quick-start.html) for Leaflet. -* [ ] Make sure you have fully read the [documentation](https://react-leaflet.js.org/docs/en/v1/intro.html) and that you understand the [limitations](https://react-leaflet.js.org/docs/en/v1/intro.html#limitations). +- [ ] All peer dependencies are installed: React, ReactDOM and Leaflet. +- [ ] Using a supported version of React and ReactDOM (v15.x or v16.x). +- [ ] Using the supported version of Leaflet (v1.3.x) and its corresponding CSS file is loaded. +- [ ] Using the [latest stable version of React-Leaflet](https://github.com/PaulLeCam/react-leaflet/releases) - **not v2 RC**. +- [ ] The issue has not already been reported. +- [ ] Make sure you have followed the [quick start guide](http://leafletjs.com/examples/quick-start.html) for Leaflet. +- [ ] Make sure you have fully read the [documentation](https://react-leaflet.js.org/docs/en/v1/intro.html) and that you understand the [limitations](https://react-leaflet.js.org/docs/en/v1/intro.html#limitations). ### Expected behavior diff --git a/.github/ISSUE_TEMPLATE/bug-in-v2.md b/.github/ISSUE_TEMPLATE/bug-in-v2.md index 15cf5333..c113482f 100644 --- a/.github/ISSUE_TEMPLATE/bug-in-v2.md +++ b/.github/ISSUE_TEMPLATE/bug-in-v2.md @@ -1,6 +1,6 @@ --- name: Bug in v2 -about: Report a bug in version 2 (beta) of the library +about: Report a bug in version 2 (RC) of the library --- @@ -9,13 +9,13 @@ about: Report a bug in version 2 (beta) of the library Please make sure to check the following boxes before submitting an issue.\ **Issues opened without using this template will be closed unless they have a good reason not to follow this template.** -* [ ] All peer dependencies are installed: React, ReactDOM and Leaflet. -* [ ] Using a supported version of React and ReactDOM (v16.3.0 minimum). -* [ ] Using the supported version of Leaflet (v1.3.x) and its corresponding CSS file is loaded. -* [ ] Using the [latest v2 beta version of React-Leaflet](https://github.com/PaulLeCam/react-leaflet/releases) - **not v1**. -* [ ] The issue has not already been reported. -* [ ] Make sure you have followed the [quick start guide](http://leafletjs.com/examples/quick-start.html) for Leaflet. -* [ ] Make sure you have fully read the [documentation](https://react-leaflet.js.org/docs/en/intro.html) and that you understand the [limitations](https://react-leaflet.js.org/docs/en/intro.html#limitations). +- [ ] All peer dependencies are installed: React, ReactDOM and Leaflet. +- [ ] Using a supported version of React and ReactDOM (v16.3.0 minimum). +- [ ] Using the supported version of Leaflet (v1.3.x) and its corresponding CSS file is loaded. +- [ ] Using the [latest v2 RC version of React-Leaflet](https://github.com/PaulLeCam/react-leaflet/releases) - **not v1**. +- [ ] The issue has not already been reported. +- [ ] Make sure you have followed the [quick start guide](http://leafletjs.com/examples/quick-start.html) for Leaflet. +- [ ] Make sure you have fully read the [documentation](https://react-leaflet.js.org/docs/en/intro.html) and that you understand the [limitations](https://react-leaflet.js.org/docs/en/intro.html#limitations). ### Expected behavior diff --git a/CHANGELOG.md b/CHANGELOG.md index 88bed757..7fd0f217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,52 +1,53 @@ -## master +## v2.0.0-rc.1 (2018-06-10) -* [website] Added `react-leaflet-nmscale` plugin ([PR #479](https://github.com/PaulLeCam/react-leaflet/pull/479) by _anajavi_). +- [website] Added `react-leaflet-nmscale` plugin ([PR #479](https://github.com/PaulLeCam/react-leaflet/pull/479) by _anajavi_). +- [website] Added 3 plugins ([PR #482](https://github.com/PaulLeCam/react-leaflet/pull/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](https://reactjs.org/docs/portals.html) are now used to render the `DivOverlay` and therefore `Popup` and `Tooltip` components, enabling context propagation ([PR #475](https://github.com/PaulLeCam/react-leaflet/pull/475) by _hannesj_). -* Replaced wrapping `div` elements with `Fragment`. +- [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](https://reactjs.org/docs/portals.html) are now used to render the `DivOverlay` and therefore `Popup` and `Tooltip` components, enabling context propagation ([PR #475](https://github.com/PaulLeCam/react-leaflet/pull/475) by _hannesj_). +- Replaced wrapping `div` elements with `Fragment`. ## v1.9.1 (2018-03-22) -* Added check for open popup to rendering logic ([PR #464](https://github.com/PaulLeCam/react-leaflet/pull/464) by _olabalboa_). -* [website] Added plugins ([PR #463](https://github.com/PaulLeCam/react-leaflet/pull/463) by _mhasbie_). +- Added check for open popup to rendering logic ([PR #464](https://github.com/PaulLeCam/react-leaflet/pull/464) by _olabalboa_). +- [website] Added plugins ([PR #463](https://github.com/PaulLeCam/react-leaflet/pull/463) by _mhasbie_). ## v1.9.0 (2018-03-14) -* Fixed event listeners removal in `Map` ([PR #459](https://github.com/PaulLeCam/react-leaflet/pull/459) by _andersonveiga_). -* Added support for dynamic handlers in `Map` ([PR #452](https://github.com/PaulLeCam/react-leaflet/pull/452) by _jonathanchrisp_). -* Added `DivOverlay` component as base class for `Popup` and `Tooltip`, now supporting dynamic `className` prop. -* [website] Updated Docusaurus, with added on-page navigation sidebar. +- Fixed event listeners removal in `Map` ([PR #459](https://github.com/PaulLeCam/react-leaflet/pull/459) by _andersonveiga_). +- Added support for dynamic handlers in `Map` ([PR #452](https://github.com/PaulLeCam/react-leaflet/pull/452) by _jonathanchrisp_). +- Added `DivOverlay` component as base class for `Popup` and `Tooltip`, now supporting dynamic `className` prop. +- [website] Updated Docusaurus, with added on-page navigation sidebar. ## v1.8.2 (2018-02-26) -* Fixed `Map` unmounting when `preferCanvas` is set. -* Added `es` folder to npm package ([PR #449](https://github.com/PaulLeCam/react-leaflet/pull/449) by _jonathanchrisp_). -* [website] Fixed link in examples page. -* [internal] Updated examples to webpack 4. +- Fixed `Map` unmounting when `preferCanvas` is set. +- Added `es` folder to npm package ([PR #449](https://github.com/PaulLeCam/react-leaflet/pull/449) by _jonathanchrisp_). +- [website] Fixed link in examples page. +- [internal] Updated examples to webpack 4. ## v1.8.1 (2018-02-21) -* Fixed `Tooltip` component unmounting. -* Updated Flow support for v0.66 ([PR #447](https://github.com/PaulLeCam/react-leaflet/pull/447) by _slek22_). -* [website] Fixed typo ([PR #440](https://github.com/PaulLeCam/react-leaflet/pull/440) by _BartWaardenburg_). -* [website] Added plugins ([PR #446](https://github.com/PaulLeCam/react-leaflet/pull/446) by _mhasbie_). +- Fixed `Tooltip` component unmounting. +- Updated Flow support for v0.66 ([PR #447](https://github.com/PaulLeCam/react-leaflet/pull/447) by _slek22_). +- [website] Fixed typo ([PR #440](https://github.com/PaulLeCam/react-leaflet/pull/440) by _BartWaardenburg_). +- [website] Added plugins ([PR #446](https://github.com/PaulLeCam/react-leaflet/pull/446) by _mhasbie_). ## v1.8.0 (2018-01-15) React-Leaflet now has a website! Check out [react-leaflet.js.org](https://react-leaflet.js.org/) to browse the documentation.\ If you wish to help out improving the website, [this issue is a good starting point](https://github.com/PaulLeCam/react-leaflet/issues/434)! -* Updated documentation and dependency to +- Updated documentation and dependency to [Leaflet v1.3](http://leafletjs.com/2018/01/15/leaflet-1.3.0.html). -* Added `HTMLImageElement` support to `ImageOverlay` (new in Leaflet v1.3). -* [website] Setup using Docusaurus. -* [website] Fixed links to examples ([PR #430](https://github.com/PaulLeCam/react-leaflet/pull/430) by _subelsky_). +- Added `HTMLImageElement` support to `ImageOverlay` (new in Leaflet v1.3). +- [website] Setup using Docusaurus. +- [website] Fixed links to examples ([PR #430](https://github.com/PaulLeCam/react-leaflet/pull/430) by _subelsky_). ## v1.7.8 (2017-12-03) @@ -59,8 +60,8 @@ More permissive support for the `className` prop of `Map`. ## v1.7.6 (2017-11-23) -* Fixed supporting `Popup` children in `CircleMarker`. -* Fixed updating multiple classes in the `className` prop of `Map`. +- Fixed supporting `Popup` children in `CircleMarker`. +- Fixed updating multiple classes in the `className` prop of `Map`. ## v1.7.5 (2017-11-20) @@ -77,40 +78,29 @@ Fixed `Tooltip` teardown logic. ## v1.7.2 (2017-10-31) -* Updated docs to use `https` for URLs - ([PR #403](https://github.com/PaulLeCam/react-leaflet/pull/403) by _sehaas_). -* Fixed initial props in `WMSTileLayer` - ([PR #405](https://github.com/PaulLeCam/react-leaflet/pull/405) by - _markhepburn_). -* Added tests for viewport and teardown logic in the `Map` component - ([PR #406](https://github.com/PaulLeCam/react-leaflet/pull/406) by _uxtx_). +- Updated docs to use `https` for URLs ([PR #403](https://github.com/PaulLeCam/react-leaflet/pull/403) by _sehaas_). +- Fixed initial props in `WMSTileLayer` ([PR #405](https://github.com/PaulLeCam/react-leaflet/pull/405) by _markhepburn_). +- Added tests for viewport and teardown logic in the `Map` component ([PR #406](https://github.com/PaulLeCam/react-leaflet/pull/406) by _uxtx_). ## v1.7.1 (2017-10-09) -* Added UMD build to CDNJS - ([PR #11863 in cdnjs/cdnjs](https://github.com/cdnjs/cdnjs/pull/11863) and - [#390](https://github.com/PaulLeCam/react-leaflet/pull/390) by _extend1994_). -* Fixed setting the default pane for `Popup` and `Tooltip` - ([PR #394](https://github.com/PaulLeCam/react-leaflet/pull/394) by - _RichardWithnell_). +- Added UMD build to CDNJS ([PR #11863 in cdnjs/cdnjs](https://github.com/cdnjs/cdnjs/pull/11863) and [#390](https://github.com/PaulLeCam/react-leaflet/pull/390) by _extend1994_). +- Fixed setting the default pane for `Popup` and `Tooltip` ([PR #394](https://github.com/PaulLeCam/react-leaflet/pull/394) by _RichardWithnell_). ## v1.7.0 (2017-09-26) -* [internal] Added support for building the library using node 6 - ([PR #376](https://github.com/PaulLeCam/react-leaflet/pull/376) by _tusbar_). -* Added support for React v16 as peer dependency. +- [internal] Added support for building the library using node 6 ([PR #376](https://github.com/PaulLeCam/react-leaflet/pull/376) by _tusbar_). +- Added support for React v16 as peer dependency. ## v1.6.6 (2017-09-05) -* Fixed `Path` options. -* Fixed `WMSTileLayer` options. +- Fixed `Path` options. +- Fixed `WMSTileLayer` options. ## v1.6.5 (2017-08-31) -* [doc] Added `react-leaflet-sidebarv2` to the plugins documentation - ([PR #369](https://github.com/PaulLeCam/react-leaflet/pull/369) by - _markhepburn_). -* Fixed Flow types in `Map` and `Popup`. +- [doc] Added `react-leaflet-sidebarv2` to the plugins documentation ([PR #369](https://github.com/PaulLeCam/react-leaflet/pull/369) by _markhepburn_). +- Fixed Flow types in `Map` and `Popup`. ## v1.6.4 (2017-08-24) @@ -126,23 +116,18 @@ Added support for Flow types in CommonJS and ESM builds as Flow comments. ## v1.6.1 (2017-08-20) -* Fixed `GridLayer` inheriting `maxZoom` and `minZoom` from `Map`. -* Fixed regression introduced in v1.6.0 with `ScaleControl`. +- Fixed `GridLayer` inheriting `maxZoom` and `minZoom` from `Map`. +- Fixed regression introduced in v1.6.0 with `ScaleControl`. ## v1.6.0 (2017-08-20) -* [internal] Updated build process - ([PR #359](https://github.com/PaulLeCam/react-leaflet/pull/359) by _tusbar_) - - see the [UPGRADING guide](UPGRADING.md) for more information if you're relying - on internals. -* [internal] Fixed hot module reloading in examples - ([PR #360](https://github.com/PaulLeCam/react-leaflet/pull/360) by _tusbar_). -* Updated Flow types to support Flow v0.53. +- [internal] Updated build process ([PR #359](https://github.com/PaulLeCam/react-leaflet/pull/359) by _tusbar_) - see the [UPGRADING guide](UPGRADING.md) for more information if you're relying on internals. +- [internal] Fixed hot module reloading in examples ([PR #360](https://github.com/PaulLeCam/react-leaflet/pull/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](http://leafletjs.com/2017/08/08/leaflet-1.2.0.html). +Updated documentation and dependency to [Leaflet v1.2](http://leafletjs.com/2017/08/08/leaflet-1.2.0.html). ## v1.4.1 (2017-07-25) @@ -150,18 +135,13 @@ 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](http://leafletjs.com/2017/06/27/leaflet-1.1.0.html): +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](http://leafletjs.com/2017/06/27/leaflet-1.1.0.html): -* Added support for dynamic `zIndex` property to `ImageOverlay`. -* Added - [`VideoOverlay` component](https://github.com/PaulLeCam/react-leaflet/blob/master/docs/Components.md#videooverlay). -* Moved the `prop-types` dependency to `peerDependencies`. +- Added support for dynamic `zIndex` property to `ImageOverlay`. +- Added [`VideoOverlay` component](https://github.com/PaulLeCam/react-leaflet/blob/master/docs/Components.md#videooverlay). +- Moved the `prop-types` dependency to `peerDependencies`. -See the -[relevant section of the upgrading guide](https://github.com/PaulLeCam/react-leaflet/blob/master/UPGRADING.md#v14) -for more information. +See the [relevant section of the upgrading guide](https://github.com/PaulLeCam/react-leaflet/blob/master/UPGRADING.md#v14) for more information. ## v1.3.1 (2017-06-20) @@ -169,12 +149,10 @@ Fixed Popup auto-panning. ## v1.3.0 (2017-06-11) -* Added `viewport` property to `Map`, as an alternative and complementary way to - manipulate the map's viewport. -* Added `onViewportChange` and `onViewportChanged` callbacks to `Map` as a - simplified way to track the map's viewport changes. -* Added `onClose` and `onOpen` callbacks to `Popup`. -* Added `onClose` and `onOpen` callbacks to `Tooltip`. +- Added `viewport` property to `Map`, as an alternative and complementary way to manipulate the map's viewport. +- Added `onViewportChange` and `onViewportChanged` callbacks to `Map` as a simplified way to track the map's viewport changes. +- Added `onClose` and `onOpen` callbacks to `Popup`. +- Added `onClose` and `onOpen` callbacks to `Tooltip`. ## v1.2.2 (2017-06-07) @@ -186,35 +164,24 @@ Removed leftover `console.log()` in `Polygon`. ## v1.2.0 (2017-05-24) -* Added support for dynamic `bounds` property in `ImageOverlay`, - [PR #326](https://github.com/PaulLeCam/react-leaflet/pull/328) by _Gjum_. -* Added `whenReady` property to `Map`, running the provided function according - to - [Leaflet's documentation](http://leafletjs.com/reference-1.0.3.html#map-whenready). +- Added support for dynamic `bounds` property in `ImageOverlay`, [PR #326](https://github.com/PaulLeCam/react-leaflet/pull/328) by _Gjum_. +- Added `whenReady` property to `Map`, running the provided function according to [Leaflet's documentation](http://leafletjs.com/reference-1.0.3.html#map-whenready). ## v1.1.7 (2017-05-20) -* Fixed DOM leak when unmounting an unclosed popup, - [PR #326](https://github.com/PaulLeCam/react-leaflet/pull/326) by - _DirtyHairy_. -* [doc] Updated Leaflet documentation links, - [PR #324](https://github.com/PaulLeCam/react-leaflet/pull/324) by - _Chris-Petty_. -* [doc] Fixed "quick start" link, - [PR #321](https://github.com/PaulLeCam/react-leaflet/pull/321) by _mojo5000_. -* [doc] Added react-leaflet-ant-path to the plugins documentation, - [PR #318](https://github.com/PaulLeCam/react-leaflet/pull/318) by - _rubenspgcavalcante_. +- Fixed DOM leak when unmounting an unclosed popup, [PR #326](https://github.com/PaulLeCam/react-leaflet/pull/326) by _DirtyHairy_. +- [doc] Updated Leaflet documentation links, [PR #324](https://github.com/PaulLeCam/react-leaflet/pull/324) by _Chris-Petty_. +- [doc] Fixed "quick start" link, [PR #321](https://github.com/PaulLeCam/react-leaflet/pull/321) by _mojo5000_. +- [doc] Added react-leaflet-ant-path to the plugins documentation, [PR #318](https://github.com/PaulLeCam/react-leaflet/pull/318) by _rubenspgcavalcante_. ## v1.1.6 (2017-04-10) -* Added support for React v15.5, fixes PropTypes warning. -* [internal] Use Prettier code formatting. +- 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](https://github.com/PaulLeCam/react-leaflet/pull/308) by _awinograd_. +Filter falsy values as event handlers, [PR #308](https://github.com/PaulLeCam/react-leaflet/pull/308) by _awinograd_. ## v1.1.4 (2017-03-22) @@ -230,25 +197,16 @@ 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 `Map` component. -* [doc] Various improvements, including PRs - [#280](https://github.com/PaulLeCam/react-leaflet/pull/280) by _h4_, - [#282](https://github.com/PaulLeCam/react-leaflet/pull/282) by _cwalv_ and - [#283](https://github.com/PaulLeCam/react-leaflet/pull/283) by _YUzhva_. +- 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](https://github.com/PaulLeCam/react-leaflet/pull/280) by _h4_, [#282](https://github.com/PaulLeCam/react-leaflet/pull/282) by _cwalv_ and [#283](https://github.com/PaulLeCam/react-leaflet/pull/283) by _YUzhva_. ## v1.1.0 (2017-01-11) -* Added support for `Popup` and `Tooltip` children to `ImageOverlay` - [PR #270](https://github.com/PaulLeCam/react-leaflet/pull/270) by - _rjdestigter_. -* Added `createLeafletElement()` and `updateLeafletElement()` methods to - simplify the abstraction between React's lifecycle hooks and Leaflet's APIs. - See the - [relevant section of the upgrading guide](https://github.com/PaulLeCam/react-leaflet/blob/master/UPGRADING.md#v11) - for more information. +- Added support for `Popup` and `Tooltip` children to `ImageOverlay` [PR #270](https://github.com/PaulLeCam/react-leaflet/pull/270) by _rjdestigter_. +- Added `createLeafletElement()` and `updateLeafletElement()` methods to simplify the abstraction between React's lifecycle hooks and Leaflet's APIs. See the [relevant section of the upgrading guide](https://github.com/PaulLeCam/react-leaflet/blob/master/UPGRADING.md#v11) for more information. ## v1.0.3 (2017-01-07) @@ -260,50 +218,31 @@ Fixed binding events in `FeatureGroup`. ## v1.0.1 (2016-11-26) -* Fixed updating `opacity` and `zIndex` in `WMSTileLayer` - ([PR #259 ](https://github.com/PaulLeCam/react-leaflet/pull/259) by - _YannickBochatay_). -* [doc] Added link to plugins documentation in README - ([PR #258](https://github.com/PaulLeCam/react-leaflet/pull/258) by _jakehm_). +- Fixed updating `opacity` and `zIndex` in `WMSTileLayer` ([PR #259 ](https://github.com/PaulLeCam/react-leaflet/pull/259) by _YannickBochatay_). +- [doc] Added link to plugins documentation in README ([PR #258](https://github.com/PaulLeCam/react-leaflet/pull/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 `GeoJson` to `GeoJSON` to match Leaflet's change. -* [BREAKING] Removed `MultiPolygon` and `MultiPolyline`, now supported by - `Polygon` and `Polyline` respectively. -* [BREAKING] Removed `CanvasTileLayer`, replaced by `GridLayer`. See - [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#gridlayer). -* [BREAKING] Removed `getLeafletElement()` method in `MapComponent` and - `MapControl`, deprecated since v0.12.0. -* [BREAKING] Removed `setIconDefaultImagePath()` helper, set - `Leaflet.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 to `Map` to use `flyTo` instead of `setView` - and `flyToBounds` instead of `fitBounds` when changing the map's view or - bounds ([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/192) by - _jgimbel_). -* Added `GridLayer`. -* Added `Pane` component introduced in Leaflet v1. - ([PR #227](https://github.com/PaulLeCam/react-leaflet/pull/227) by - _rjdestigter_). -* Added `Tooltip` component introduced in Leaflet v1. See - [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#tooltip) - for usage. -* Added support for IE9 and IE10 - ([PR #235](https://github.com/PaulLeCam/react-leaflet/pull/235) by _dettier_). -* Updated `WMSTileLayer` to support dynamic `url` and parameters. -* [internal] Fixed Flow errors - ([PR #251](https://github.com/PaulLeCam/react-leaflet/pull/251) by - _joeyrosztoczy_). -* [internal] Updated `MapLayer` to only create divs when necessary. -* [internal] Removed `BaseTileLayer`, replaced by `GridLayer`. -* [internal] Removed `bower.json` file. +- [BREAKING] Updated Leaflet dependency requirement to v1.0.0. +- [BREAKING] Renamed `GeoJson` to `GeoJSON` to match Leaflet's change. +- [BREAKING] Removed `MultiPolygon` and `MultiPolyline`, now supported by `Polygon` and `Polyline` respectively. +- [BREAKING] Removed `CanvasTileLayer`, replaced by `GridLayer`. See [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#gridlayer). +- [BREAKING] Removed `getLeafletElement()` method in `MapComponent` and `MapControl`, deprecated since v0.12.0. +- [BREAKING] Removed `setIconDefaultImagePath()` helper, set `Leaflet.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 to `Map` to use `flyTo` instead of `setView` and `flyToBounds` instead of `fitBounds` when changing the map's view or bounds ([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/192) by _jgimbel_). +- Added `GridLayer`. +- Added `Pane` component introduced in Leaflet v1. ([PR #227](https://github.com/PaulLeCam/react-leaflet/pull/227) by _rjdestigter_). +- Added `Tooltip` component introduced in Leaflet v1. See [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#tooltip) for usage. +- Added support for IE9 and IE10 ([PR #235](https://github.com/PaulLeCam/react-leaflet/pull/235) by _dettier_). +- Updated `WMSTileLayer` to support dynamic `url` and parameters. +- [internal] Fixed Flow errors ([PR #251](https://github.com/PaulLeCam/react-leaflet/pull/251) by _joeyrosztoczy_). +- [internal] Updated `MapLayer` to only create divs when necessary. +- [internal] Removed `BaseTileLayer`, replaced by `GridLayer`. +- [internal] Removed `bower.json` file. ## v1.0.0-rc.3 (2016-11-04) @@ -311,20 +250,15 @@ Updated `WMSTileLayer` to support dynamic `url` property. ## v1.0.0-rc.2 (2016-10-20) -* Added `Pane` component introduced in Leaflet v1. - ([PR #227](https://github.com/PaulLeCam/react-leaflet/pull/227) by - _rjdestigter_). -* Added support for IE9 and IE10 - ([PR #235](https://github.com/PaulLeCam/react-leaflet/pull/235) by _dettier_). -* Updated `WMSTileLayer` to support dynamic parameters. +- Added `Pane` component introduced in Leaflet v1. ([PR #227](https://github.com/PaulLeCam/react-leaflet/pull/227) by _rjdestigter_). +- Added support for IE9 and IE10 ([PR #235](https://github.com/PaulLeCam/react-leaflet/pull/235) by _dettier_). +- Updated `WMSTileLayer` to support dynamic parameters. ## v1.0.0-rc.1 (2016-09-28) -* [BREAKING] Removed `setIconDefaultImagePath()` helper, set - `Leaflet.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. +- [BREAKING] Removed `setIconDefaultImagePath()` helper, set `Leaflet.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. ## v1.0.0-beta.3 (2016-08-26) @@ -332,33 +266,22 @@ Fixed `Tooltip` removal handling. ## v1.0.0-beta.2 (2016-08-20) -* Added `Tooltip` component introduced in Leaflet v1.0.0-rc.2. See - [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#tooltip) - for usage. -* Updated Leaflet dependency to v1.0.0-rc.3. -* Reverted basing components on `React.PureComponent`, they are now based on - `React.Component`. +- Added `Tooltip` component introduced in Leaflet v1.0.0-rc.2. See [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#tooltip) for usage. +- Updated Leaflet dependency to v1.0.0-rc.3. +- Reverted basing components on `React.PureComponent`, they are now based on `React.Component`. ## v1.0.0-beta.1 (2016-07-30) -* [BREAKING] Renamed `GeoJson` to `GeoJSON` to match Leaflet's change. -* [BREAKING] Removed `MultiPolygon` and `MultiPolyline`, now supported by - `Polygon` and `Polyline` respectively. -* [BREAKING] Removed `CanvasTileLayer`, replaced by `GridLayer`. See - [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#gridlayer). -* [BREAKING] Removed `getLeafletElement()` method in `MapComponent` and - `MapControl`, deprecated since v0.12.0. -* Removed `BaseTileLayer`, replaced by `GridLayer`. -* 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 of - `React.Component`, as such React v15.3.0+ is now required. -* Added `GridLayer`. -* Added `useFlyTo: bool` property to `Map` to use `flyTo` instead of `setView` - and `flyToBounds` instead of `fitBounds` when changing the map's view or - bounds ([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/192) by - _jgimbel_). +- [BREAKING] Renamed `GeoJson` to `GeoJSON` to match Leaflet's change. +- [BREAKING] Removed `MultiPolygon` and `MultiPolyline`, now supported by `Polygon` and `Polyline` respectively. +- [BREAKING] Removed `CanvasTileLayer`, replaced by `GridLayer`. See [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#gridlayer). +- [BREAKING] Removed `getLeafletElement()` method in `MapComponent` and `MapControl`, deprecated since v0.12.0. +- Removed `BaseTileLayer`, replaced by `GridLayer`. +- 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 of `React.Component`, as such React v15.3.0+ is now required. +- Added `GridLayer`. +- Added `useFlyTo: bool` property to `Map` to use `flyTo` instead of `setView` and `flyToBounds` instead of `fitBounds` when changing the map's view or bounds ([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/192) by _jgimbel_). ## v0.12.3 (2016-09-21) @@ -366,27 +289,19 @@ Fixed events bindind in UMD build. ## v0.12.2 (2016-09-09) -* Updated propTypes to allow polygons with holes in `MultiPolygon` - ([PR #218](https://github.com/PaulLeCam/react-leaflet/pull/218) by - _ernoaapa_). -* Fixed badly named `ScaleControl` class. +- Updated propTypes to allow polygons with holes in `MultiPolygon` ([PR #218](https://github.com/PaulLeCam/react-leaflet/pull/218) by _ernoaapa_). +- Fixed badly named `ScaleControl` class. ## v0.12.1 (2016-07-08) -* Fixed unmounting `LayersControl` when the `Map` is unmounting as well. -* Added a [plugins](docs/Plugins.md) section to the [documentation](docs). +- Fixed unmounting `LayersControl` when the `Map` is unmounting as well. +- Added a [plugins](docs/Plugins.md) section to the [documentation](docs). ## v0.12.0 (2016-06-25) -* [BREAKING] Moved Leaflet instances injection from props to - [context](https://facebook.github.io/react/docs/context.html). All components - provided by this lib should continue to work as expected, but custom - components need to be updated. Read the [UPGRADING](UPGRADING.md) file for - more information. -* Deprecated `getLeafletElement()` method, simply use the `leafletElement` - property instead. -* Documentation moved to the [docs](docs) folder and has been split into - different files for better readability. +- [BREAKING] Moved Leaflet instances injection from props to [context](https://facebook.github.io/react/docs/context.html). All components provided by this lib should continue to work as expected, but custom components need to be updated. Read the [UPGRADING](UPGRADING.md) file for more information. +- Deprecated `getLeafletElement()` method, simply use the `leafletElement` property instead. +- Documentation moved to the [docs](docs) folder and has been split into different files for better readability. ## v0.11.7 (2016-06-14) @@ -394,15 +309,13 @@ Fixed removing layers from `LayersControl`. ## v0.11.6 (2016-06-09) -* Fixed allowing to set and update the `style` prop as a function in `GeoJson`. -* [internal] Added - [lodash-webpack-plugin](https://github.com/lodash/lodash-webpack-plugin) to - reduce the size of the UMD build. +- Fixed allowing to set and update the `style` prop as a function in `GeoJson`. +- [internal] Added [lodash-webpack-plugin](https://github.com/lodash/lodash-webpack-plugin) to reduce the size of the UMD build. ## v0.11.5 (2016-05-14) -* Fixed updating `boundsOptions` in the `Map` without updating `bounds`. -* Fixed setting `opacity` and `zIndex` properties to `0` in tile layers. +- Fixed updating `boundsOptions` in the `Map` without updating `bounds`. +- Fixed setting `opacity` and `zIndex` properties to `0` in tile layers. ## v0.11.4 (2016-05-05) @@ -410,8 +323,7 @@ Fixed `TileLayer` properties update. ## v0.11.3 (2016-04-28) -Made the `draggable` property in `Marker` dynamic -([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/148) by _riolowry_). +Made the `draggable` property in `Marker` dynamic ([PR #148](https://github.com/PaulLeCam/react-leaflet/pull/148) by _riolowry_). ## v0.11.2 (2016-04-25) @@ -419,66 +331,43 @@ Fixed layer removal in `LayersControl`. ## v0.11.1 (2016-04-17) -Fixed `map` property injection in `LayersControl` -([PR #142](https://github.com/PaulLeCam/react-leaflet/pull/142) by _Dahlgren_). +Fixed `map` property injection in `LayersControl` ([PR #142](https://github.com/PaulLeCam/react-leaflet/pull/142) by _Dahlgren_). ## v0.11.0 (2016-04-09) -* [BREAKING] Added `layerContainer` property as a consistent replacement for - `map` or `layerGroup` - ([PR #132](https://github.com/PaulLeCam/react-leaflet/pull/132) by - _boromisp_). This is only breaking if you are creating custom components, as - you will need to make sure to also inject the `layerContainer` property to - children layers as you need to do with `map`. -* Changed `LayersControl` to be based on components: - * Added `LayersControl.BaseLayer` container component to add a base layer to a - `LayersControl`. - * Added `LayersControl.Overlay` container component to add an overlay to a - `LayersControl`. - * `baseLayers` and `overlays` properties for `LayersControl` are still - supported but deprecated. Using either of them will make the `LayersControl` - behave the same way it does in versions < 0.11. -* Deprecated `onLeaflet...` properties for events, simply use `on...`, ex - `onClick` instead of `onLeafletClick`. -* 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-vars` linting - ([PR #131](https://github.com/PaulLeCam/react-leaflet/pull/131) by - _boromisp_). +- [BREAKING] Added `layerContainer` property as a consistent replacement for `map` or `layerGroup` ([PR #132](https://github.com/PaulLeCam/react-leaflet/pull/132) by _boromisp_). This is only breaking if you are creating custom components, as you will need to make sure to also inject the `layerContainer` property to children layers as you need to do with `map`. +- Changed `LayersControl` to be based on components: + - Added `LayersControl.BaseLayer` container component to add a base layer to a `LayersControl`. + - Added `LayersControl.Overlay` container component to add an overlay to a `LayersControl`. + - `baseLayers` and `overlays` properties for `LayersControl` are still supported but deprecated. Using either of them will make the `LayersControl` behave the same way it does in versions < 0.11. +- Deprecated `onLeaflet...` properties for events, simply use `on...`, ex `onClick` instead of `onLeafletClick`. +- 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-vars` linting ([PR #131](https://github.com/PaulLeCam/react-leaflet/pull/131) by _boromisp_). ## v0.10.2 (2016-03-12) -* Added `animate` optional property to `Map` - ([PR #126](https://github.com/PaulLeCam/react-leaflet/pull/126) by - _mariusandra_). -* Added React v15.0.0-rc.1 support as peer dependency. +- Added `animate` optional property to `Map` ([PR #126](https://github.com/PaulLeCam/react-leaflet/pull/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 `Popup` creation, fixes - [#113](https://github.com/PaulLeCam/react-leaflet/issues/113) - ([PR #112](https://github.com/PaulLeCam/react-leaflet/pull/112) by _amarant_). -* [internal] Updated Lodash to v4. +- Added the popup container as source layer to `Popup` creation, fixes [#113](https://github.com/PaulLeCam/react-leaflet/issues/113) ([PR #112](https://github.com/PaulLeCam/react-leaflet/pull/112) by _amarant_). +- [internal] Updated Lodash to v4. ## v0.10.0 (2015-12-22) -* Added `AttributionControl`, `LayersControl` and `ScaleControl` - ([PR #100](https://github.com/PaulLeCam/react-leaflet/pull/100) by - _jonboiser_). -* Added example to render a list of custom Markers - ([PR #104](https://github.com/PaulLeCam/react-leaflet/pull/104) by _varya_). -* [internal] Updated Babel to v6. +- Added `AttributionControl`, `LayersControl` and `ScaleControl` ([PR #100](https://github.com/PaulLeCam/react-leaflet/pull/100) by _jonboiser_). +- Added example to render a list of custom Markers ([PR #104](https://github.com/PaulLeCam/react-leaflet/pull/104) by _varya_). +- [internal] Updated Babel to v6. ## v0.9.0 (2015-11-12) -* Removed `PopupContainer` component, extended internally by other components. -* `FeatureGroup` now expects its layers to be passed as children, like - `LayerGroup`. -* Added `renderChildrenWithProps()` to `MapLayer`, used internally by the - library. -* Added `MapControl` as base component for controls. -* Added `ZoomControl`. +- Removed `PopupContainer` component, extended internally by other components. +- `FeatureGroup` now expects its layers to be passed as children, like `LayerGroup`. +- Added `renderChildrenWithProps()` to `MapLayer`, used internally by the library. +- Added `MapControl` as base component for controls. +- Added `ZoomControl`. ## v0.8.1 (2015-10-21) @@ -488,21 +377,16 @@ Fix `PropTypes` export. Changes from v0.7.0: -* Updated React to v0.14.0. -* Added ReactDOM v0.14.0 to peer dependencies. -* `Popup` now renders its contents using `ReactDOM.render()` and therefore - supports dynamic children. -* `Map` now supports dynamic `bounds` and `maxBounds` properties - ([#72](https://github.com/PaulLeCam/react-leaflet/pull/72)). -* Added `LayerGroup` component - ([#58](https://github.com/PaulLeCam/react-leaflet/pull/58)). +- Updated React to v0.14.0. +- Added ReactDOM v0.14.0 to peer dependencies. +- `Popup` now renders its contents using `ReactDOM.render()` and therefore supports dynamic children. +- `Map` now supports dynamic `bounds` and `maxBounds` properties ([#72](https://github.com/PaulLeCam/react-leaflet/pull/72)). +- Added `LayerGroup` component ([#58](https://github.com/PaulLeCam/react-leaflet/pull/58)). ## v0.8.0-rc.3 (2015-09-29) -* Added `LayerGroup` component - ([#58](https://github.com/PaulLeCam/react-leaflet/pull/58)). -* `Map` now supports dynamic `bounds` and `maxBounds` properties - ([#72](https://github.com/PaulLeCam/react-leaflet/pull/72)). +- Added `LayerGroup` component ([#58](https://github.com/PaulLeCam/react-leaflet/pull/58)). +- `Map` now supports dynamic `bounds` and `maxBounds` properties ([#72](https://github.com/PaulLeCam/react-leaflet/pull/72)). ## v0.8.0-rc.2 (2015-09-22) @@ -510,20 +394,18 @@ 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. -* `Popup` now renders its contents using `ReactDOM.render()` and therefore - supports dynamic children. +- Updated React to v0.14.0-rc1. +- Added ReactDOM v0.14.0-rc1 to peer dependencies. +- `Popup` now renders its contents using `ReactDOM.render()` and therefore supports dynamic children. ## v0.7.0 (2015-09-08) -* Updated Leaflet to v0.7.5. -* Added `Path` base component for vector layers, handling dynamic - [Path options](http://leafletjs.com/reference.html#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. +- Updated Leaflet to v0.7.5. +- Added `Path` base component for vector layers, handling dynamic [Path options](http://leafletjs.com/reference.html#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) @@ -536,9 +418,8 @@ Fix `PopupContainer` export. ## v0.6.0 (2015-05-18) -* Added `style` property on the `Map` component. -* Replaced the `