diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf0a95d..9cd2d7e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ +## 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. + ## v1.0.0-beta.3 (2016-08-26) -- Fixed `Tooltip` removal handling. +Fixed `Tooltip` removal handling. ## v1.0.0-beta.2 (2016-08-20) @@ -43,7 +49,7 @@ Fixed events bindind in UMD build. ## v0.11.7 (2016-06-14) -- Fixed removing layers from `LayersControl`. +Fixed removing layers from `LayersControl`. ## v0.11.6 (2016-06-09) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 46a8739a..1f6d14c6 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -2,7 +2,7 @@ Please make sure to check the following boxes before submitting an issue. Thanks - [ ] Check that all peer dependencies are installed: React, ReactDOM and Leaflet. - [ ] Check that you are using a supported version of React and ReactDOM (v15.0.0+). -- [ ] Check that you are using the supported version of Leaflet (v.1.0.0-rc.3) and its corresponding CSS file is loaded. +- [ ] Check that you are using the supported version of Leaflet (v.1.0.0) and its corresponding CSS file is loaded. - [ ] 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://github.com/PaulLeCam/react-leaflet/blob/next/docs/README.md) and that you understand the [technical considerations](https://github.com/PaulLeCam/react-leaflet/blob/next/docs/How%20it%20works.md#limitations). diff --git a/UPGRADING.md b/UPGRADING.md index 9231ad91..f15894c4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,7 +2,18 @@ ## v1.0 (in progress) -TODO for v1 RC, keep track of changes in Leaflet and [local commits](https://github.com/PaulLeCam/react-leaflet/pull/196) / [changelog](CHANGELOG.md) in the meantime. +React-Leaflet v1 requires Leaflet v1.0.0 and therefore contains breaking changes from v0.12, based on Leaflet v0.7. +Make sure to update your Leaflet dependency to v1.0.0, as well as its CSS file. + +The following list includes breaking changes upgrading to React-Leaflet v1.0 from v0.12, it may not be exhaustive: + +- Renamed `GeoJson` to `GeoJSON` to match Leaflet's change. +- Removed `MultiPolygon` and `MultiPolyline`, now supported by `Polygon` and `Polyline` respectively. +- Removed `CanvasTileLayer`, replaced by `GridLayer`. See [Leaflet's documentation](http://leafletjs.com/reference-1.0.0.html#gridlayer). +- Removed `getLeafletElement()` method in `MapComponent` and `MapControl`, deprecated since v0.12.0. +- Removed `setIconDefaultImagePath()` helper, set `Leaflet.Icon.Default.imagePath` directly using Leaflet if you need. + +Read the [changelog](CHANGELOG.md) for more details about these changes. ## v0.12.0 diff --git a/dist/react-leaflet.js b/dist/react-leaflet.js index 981c9882..bfb3d1bc 100644 --- a/dist/react-leaflet.js +++ b/dist/react-leaflet.js @@ -1,13 +1,13 @@ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("leaflet"), require("react"), require("react-dom")); + module.exports = factory(require("react"), require("leaflet"), require("react-dom")); else if(typeof define === 'function' && define.amd) - define(["leaflet", "react", "react-dom"], factory); + define(["react", "leaflet", "react-dom"], factory); else if(typeof exports === 'object') - exports["ReactLeaflet"] = factory(require("leaflet"), require("react"), require("react-dom")); + exports["ReactLeaflet"] = factory(require("react"), require("leaflet"), require("react-dom")); else - root["ReactLeaflet"] = factory(root["L"], root["React"], root["ReactDOM"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_130__) { + root["ReactLeaflet"] = factory(root["React"], root["L"], root["ReactDOM"]); +})(this, function(__WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_130__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -59,13 +59,9 @@ return /******/ (function(modules) { // webpackBootstrap Object.defineProperty(exports, "__esModule", { value: true }); - exports.setIconDefaultImagePath = exports.ZoomControl = exports.WMSTileLayer = exports.Tooltip = exports.TileLayer = exports.ScaleControl = exports.Rectangle = exports.Popup = exports.Polyline = exports.Polygon = exports.Path = exports.Marker = exports.MapLayer = exports.MapControl = exports.MapComponent = exports.Map = exports.LayersControl = exports.LayerGroup = exports.ImageOverlay = exports.GridLayer = exports.GeoJSON = exports.FeatureGroup = exports.CircleMarker = exports.Circle = exports.AttributionControl = exports.PropTypes = undefined; + exports.ZoomControl = exports.WMSTileLayer = exports.Tooltip = exports.TileLayer = exports.ScaleControl = exports.Rectangle = exports.Popup = exports.Polyline = exports.Polygon = exports.Path = exports.Marker = exports.MapLayer = exports.MapControl = exports.MapComponent = exports.Map = exports.LayersControl = exports.LayerGroup = exports.ImageOverlay = exports.GridLayer = exports.GeoJSON = exports.FeatureGroup = exports.CircleMarker = exports.Circle = exports.AttributionControl = exports.PropTypes = undefined; - var _leaflet = __webpack_require__(1); - - var _leaflet2 = _interopRequireDefault(_leaflet); - - var _types = __webpack_require__(2); + var _types = __webpack_require__(1); var _PropTypes = _interopRequireWildcard(_types); @@ -165,10 +161,10 @@ return /******/ (function(modules) { // webpackBootstrap var _ZoomControl3 = _interopRequireDefault(_ZoomControl2); - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + exports.PropTypes = _PropTypes; exports.AttributionControl = _AttributionControl3.default; exports.Circle = _Circle3.default; @@ -194,20 +190,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.Tooltip = _Tooltip3.default; exports.WMSTileLayer = _WMSTileLayer3.default; exports.ZoomControl = _ZoomControl3.default; - var setIconDefaultImagePath = exports.setIconDefaultImagePath = function setIconDefaultImagePath(path) { - _leaflet2.default.Icon.Default.imagePath = path; - }; - - setIconDefaultImagePath('//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.3/images'); /***/ }, /* 1 */ -/***/ function(module, exports) { - - module.exports = __WEBPACK_EXTERNAL_MODULE_1__; - -/***/ }, -/* 2 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -217,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap }); exports.map = exports.layerContainer = exports.latlngList = exports.latlng = exports.controlPosition = exports.children = exports.bounds = undefined; - var _bounds2 = __webpack_require__(3); + var _bounds2 = __webpack_require__(2); var _bounds3 = _interopRequireDefault(_bounds2); @@ -256,7 +241,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.map = _map3.default; /***/ }, -/* 3 */ +/* 2 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -265,9 +250,9 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); var _latlngList = __webpack_require__(5); @@ -277,6 +262,12 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = _react.PropTypes.oneOfType([_react.PropTypes.instanceOf(_leaflet.LatLngBounds), _latlngList2.default]); +/***/ }, +/* 3 */ +/***/ function(module, exports) { + + module.exports = __WEBPACK_EXTERNAL_MODULE_3__; + /***/ }, /* 4 */ /***/ function(module, exports) { @@ -293,7 +284,7 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlng = __webpack_require__(6); @@ -313,7 +304,7 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); exports.default = _react.PropTypes.oneOfType([ // [Number, Number] @@ -339,7 +330,7 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); exports.default = _react.PropTypes.oneOfType([_react.PropTypes.arrayOf(_react.PropTypes.node), _react.PropTypes.node]); @@ -353,7 +344,7 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); exports.default = _react.PropTypes.oneOf(['topleft', 'topright', 'bottomleft', 'bottomright']); @@ -367,7 +358,7 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); exports.default = _react.PropTypes.shape({ addLayer: _react.PropTypes.func.isRequired, @@ -384,9 +375,9 @@ return /******/ (function(modules) { // webpackBootstrap value: true }); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); exports.default = _react.PropTypes.instanceOf(_leaflet.Map); @@ -402,9 +393,9 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _MapControl2 = __webpack_require__(12); @@ -454,7 +445,7 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _controlPosition = __webpack_require__(8); @@ -530,9 +521,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlng = __webpack_require__(6); @@ -615,7 +606,7 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _MapLayer2 = __webpack_require__(73); @@ -2461,7 +2452,7 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _react2 = _interopRequireDefault(_react); @@ -2566,7 +2557,7 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -3771,9 +3762,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlng = __webpack_require__(6); @@ -3849,9 +3840,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _layerContainer = __webpack_require__(9); @@ -3931,9 +3922,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _Path2 = __webpack_require__(14); @@ -4002,9 +3993,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _MapLayer2 = __webpack_require__(73); @@ -4077,11 +4068,11 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); - var _bounds = __webpack_require__(3); + var _bounds = __webpack_require__(2); var _bounds2 = _interopRequireDefault(_bounds); @@ -4162,7 +4153,7 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); var _layerContainer = __webpack_require__(9); @@ -4226,9 +4217,9 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _react2 = _interopRequireDefault(_react); @@ -4508,15 +4499,15 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); var _leaflet2 = _interopRequireDefault(_leaflet); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _react2 = _interopRequireDefault(_react); - var _bounds = __webpack_require__(3); + var _bounds = __webpack_require__(2); var _bounds2 = _interopRequireDefault(_bounds); @@ -5042,9 +5033,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlng = __webpack_require__(6); @@ -5149,9 +5140,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlngList = __webpack_require__(5); @@ -5225,9 +5216,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _latlngList = __webpack_require__(5); @@ -5299,9 +5290,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _reactDom = __webpack_require__(130); @@ -5467,9 +5458,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _bounds = __webpack_require__(3); + var _bounds = __webpack_require__(2); var _bounds2 = _interopRequireDefault(_bounds); @@ -5537,9 +5528,9 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _MapControl2 = __webpack_require__(12); @@ -5594,9 +5585,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _GridLayer2 = __webpack_require__(110); @@ -5666,9 +5657,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _reactDom = __webpack_require__(130); @@ -5800,9 +5791,9 @@ return /******/ (function(modules) { // webpackBootstrap var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _GridLayer2 = __webpack_require__(110); @@ -5860,9 +5851,9 @@ return /******/ (function(modules) { // webpackBootstrap var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var _leaflet = __webpack_require__(1); + var _leaflet = __webpack_require__(4); - var _react = __webpack_require__(4); + var _react = __webpack_require__(3); var _MapControl2 = __webpack_require__(12); diff --git a/dist/react-leaflet.min.js b/dist/react-leaflet.min.js index d0163965..cff05fb2 100644 --- a/dist/react-leaflet.min.js +++ b/dist/react-leaflet.min.js @@ -1,3 +1,3 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["leaflet","react","react-dom"],t):"object"==typeof exports?exports.ReactLeaflet=t(require("leaflet"),require("react"),require("react-dom")):e.ReactLeaflet=t(e.L,e.React,e.ReactDOM)}(this,function(e,t,n){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.setIconDefaultImagePath=t.ZoomControl=t.WMSTileLayer=t.Tooltip=t.TileLayer=t.ScaleControl=t.Rectangle=t.Popup=t.Polyline=t.Polygon=t.Path=t.Marker=t.MapLayer=t.MapControl=t.MapComponent=t.Map=t.LayersControl=t.LayerGroup=t.ImageOverlay=t.GridLayer=t.GeoJSON=t.FeatureGroup=t.CircleMarker=t.Circle=t.AttributionControl=t.PropTypes=void 0;var i=n(1),u=r(i),a=n(2),l=o(a),p=n(11),c=r(p),f=n(13),s=r(f),y=n(107),d=r(y),h=n(108),v=r(h),b=n(109),_=r(b),O=n(110),m=r(O),j=n(111),P=r(j),g=n(112),w=r(g),x=n(113),T=r(x),E=n(114),C=r(E),k=n(74),M=r(k),L=n(12),W=r(L),R=n(73),D=r(R),S=n(126),U=r(S),z=n(14),I=r(z),F=n(127),A=r(F),B=n(128),q=r(B),N=n(129),G=r(N),Z=n(131),J=r(Z),V=n(132),$=r(V),H=n(133),K=r(H),Q=n(134),X=r(Q),Y=n(135),ee=r(Y),te=n(136),ne=r(te);t.PropTypes=l,t.AttributionControl=c["default"],t.Circle=s["default"],t.CircleMarker=d["default"],t.FeatureGroup=v["default"],t.GeoJSON=_["default"],t.GridLayer=m["default"],t.ImageOverlay=P["default"],t.LayerGroup=w["default"],t.LayersControl=T["default"],t.Map=C["default"],t.MapComponent=M["default"],t.MapControl=W["default"],t.MapLayer=D["default"],t.Marker=U["default"],t.Path=I["default"],t.Polygon=A["default"],t.Polyline=q["default"],t.Popup=G["default"],t.Rectangle=J["default"],t.ScaleControl=$["default"],t.TileLayer=K["default"],t.Tooltip=X["default"],t.WMSTileLayer=ee["default"],t.ZoomControl=ne["default"];var oe=t.setIconDefaultImagePath=function(e){u["default"].Icon.Default.imagePath=e};oe("//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-rc.3/images")},function(t,n){t.exports=e},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.layerContainer=t.latlngList=t.latlng=t.controlPosition=t.children=t.bounds=void 0;var r=n(3),i=o(r),u=n(7),a=o(u),l=n(8),p=o(l),c=n(6),f=o(c),s=n(5),y=o(s),d=n(9),h=o(d),v=n(10),b=o(v);t.bounds=i["default"],t.children=a["default"],t.controlPosition=p["default"],t.latlng=f["default"],t.latlngList=y["default"],t.layerContainer=h["default"],t.map=b["default"]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(1),u=n(5),a=o(u);t["default"]=r.PropTypes.oneOfType([r.PropTypes.instanceOf(i.LatLngBounds),a["default"]])},function(e,n){e.exports=t},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(6),u=o(i);t["default"]=r.PropTypes.arrayOf(u["default"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.number),o.PropTypes.shape({lat:o.PropTypes.number,lng:o.PropTypes.number}),o.PropTypes.shape({lat:o.PropTypes.number,lon:o.PropTypes.number})])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=o.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=o.PropTypes.shape({addLayer:o.PropTypes.func.isRequired,removeLayer:o.PropTypes.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(4);t["default"]=r.PropTypes.instanceOf(o.Map)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n-1}var r=n(29);e.exports=o},function(e,t,n){function o(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var r=n(29);e.exports=o},function(e,t,n){function o(){this.__data__=new r,this.size=0}var r=n(26);e.exports=o},function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function o(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.lengths))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,v=!0,b=p&a?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e<=o}var o=9007199254740991;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e,t,n,o,r){return r(e,function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)}),n}e.exports=n},function(e,t,n){function o(e,t){var n=a(e)?r:i;return n(e,u(t,3))}var r=n(88),i=n(77),u=n(85),a=n(69);e.exports=o},function(e,t){function n(e,t){for(var n=-1,o=e?e.length:0;++n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=n(83),p=o(l),c=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function T(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:T(r,t,n)}if("value"in o)return o.value;var i=o.get;if(void 0!==i)return i.call(n)},p=function(){function e(e,t){for(var n=0;n=c&&(s=p,y=!1,t=new r(t));e:for(;++f-1}var r=n(118);e.exports=o},function(e,t,n){function o(e,t,n){return t===t?u(e,t,n):r(e,i,n)}var r=n(119),i=n(120),u=n(121);e.exports=o},function(e,t){function n(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n-1}var r=n(29);e.exports=o},function(e,t,n){function o(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var r=n(29);e.exports=o},function(e,t,n){function o(){this.__data__=new r,this.size=0}var r=n(26);e.exports=o},function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function o(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.lengths))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,v=!0,b=p&a?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e<=o}var o=9007199254740991;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e,t,n,o,r){return r(e,function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)}),n}e.exports=n},function(e,t,n){function o(e,t){var n=a(e)?r:i;return n(e,u(t,3))}var r=n(88),i=n(77),u=n(85),a=n(69);e.exports=o},function(e,t){function n(e,t){for(var n=-1,o=e?e.length:0;++n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=n(83),p=o(l),c=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function T(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:T(r,t,n)}if("value"in o)return o.value;var i=o.get;if(void 0!==i)return i.call(n)},p=function(){function e(e,t){for(var n=0;n=c&&(s=p,y=!1,t=new r(t));e:for(;++f-1}var r=n(118);e.exports=o},function(e,t,n){function o(e,t,n){return t===t?u(e,t,n):r(e,i,n)}var r=n(119),i=n(120),u=n(121);e.exports=o},function(e,t){function n(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n` (required) +- `positions: latLngList | latLngList[]` (required) ### Polygon [Leaflet reference](http://leafletjs.com/reference.html#polygon) **Dynamic properties** -- `positions: latLngList | Array` (required) - -### MultiPolygon - -[Leaflet reference](http://leafletjs.com/reference.html#multipolygon) - -**Dynamic properties** -- `polygons: Array` (required) +- `positions: latLngList | latLngList[] | latLngList[][]` (required) ### Rectangle diff --git a/docs/Extending.md b/docs/Extending.md index fabb63e6..e4ac0ee7 100644 --- a/docs/Extending.md +++ b/docs/Extending.md @@ -27,8 +27,6 @@ Make sure to read the [how it works page](How%20it%20works.md) of this documenta - [`CircleMarker`](Components.md#circlemarker) - [`FeatureGroup`](Components.md#featuregroup) - [`GeoJson`](Components.md#geojson) - - [`MultiPolygon`](Components.md#multipolygon) - - [`MultiPolyline`](Components.md#multipolyline) - [`Polygon`](Components.md#polygon) - [`Polyline`](Components.md#polyline) - [`Rectangle`](Components.md#rectangle) diff --git a/docs/README.md b/docs/README.md index d55bf50d..6a67ecdb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,7 +14,6 @@ ## [API](API.md) -- [Helpers](API.md#helpers) - [PropTypes](API.md#proptypes) - [Events](API.md#events) - [Components](API.md#components) diff --git a/example/index.html b/example/index.html index e09b0630..c63dbbf6 100644 --- a/example/index.html +++ b/example/index.html @@ -3,8 +3,8 @@ React-Leaflet examples - - + +