diff --git a/.npmignore b/.npmignore index d5c5686e..0fc412c5 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,8 @@ +__tests__ coverage example -__tests__ .editorconfig .eslintrc .travis.yml bower.json -gulpfile.babel.js +webpack.config.js diff --git a/CHANGELOG.md b/CHANGELOG.md index c9cfe83d..42bf4a3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## master (unreleased) +## v0.10.0 (22/12/15) - 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*). diff --git a/README.md b/README.md index f8048fa2..d36d25fd 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,14 @@ React, ReactDOM and Leaflet are peer dependencies, if you haven't already instal npm install leaflet react react-dom react-leaflet ``` +An UMD build is also available on [npmcdn](https://npmcdn.com/): + +```html + +``` + +The library is injected as `window.ReactLeaflet`. + ## Getting started If you are not familiar with Leaflet, make sure you read its [quick start guide](http://leafletjs.com/examples/quick-start.html) first. You will need to add its CSS to your page to render the components properly. diff --git a/bower.json b/bower.json index 0275ca95..3694d10b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "react-leaflet", - "version": "0.9.0", + "version": "0.10.0", "homepage": "https://github.com/PaulLeCam/react-leaflet", "authors": [ "Paul Le Cam " diff --git a/lib/FeatureGroup.js b/lib/FeatureGroup.js index 79851838..542d529c 100644 --- a/lib/FeatureGroup.js +++ b/lib/FeatureGroup.js @@ -16,8 +16,6 @@ var _Path3 = _interopRequireDefault(_Path2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -36,11 +34,6 @@ var FeatureGroup = (function (_Path) { _createClass(FeatureGroup, [{ key: 'componentWillMount', value: function componentWillMount() { - var _props = this.props; - var map = _props.map; - - var props = _objectWithoutProperties(_props, ['map']); - this.leafletElement = (0, _leaflet.featureGroup)(); } }, { diff --git a/package.json b/package.json index 0c8fee68..bf1f0472 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-leaflet", - "version": "0.9.0", + "version": "0.10.0", "description": "React components for Leaflet maps", "main": "lib/index.js", "scripts": {