diff --git a/.babelrc b/.babelrc index 6fe716b9..3bf0759e 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,12 @@ { - "plugins": ["dev-expression", "lodash", "transform-proto-to-assign"], - "presets": [ ["es2015", { "loose" : true} ], "react", "stage-0"] + "plugins": [ + "dev-expression", + "lodash", + "transform-proto-to-assign" + ], + "presets": [ + ["es2015", {"loose" : true}], + "react", + "stage-1" + ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e383ffd..d7e5eb11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.0.2 (2016-12-19) + +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*). diff --git a/dist/react-leaflet.js b/dist/react-leaflet.js index 660ca707..5e6a6afb 100644 --- a/dist/react-leaflet.js +++ b/dist/react-leaflet.js @@ -3722,16 +3722,16 @@ return /******/ (function(modules) { // webpackBootstrap /* 105 */ /***/ function(module, exports) { - module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - module.children = []; - module.webpackPolyfill = 1; - } - return module; - } + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } /***/ }, @@ -4181,6 +4181,7 @@ return /******/ (function(modules) { // webpackBootstrap }; FeatureGroup.prototype.componentWillMount = function componentWillMount() { + _Path.prototype.componentWillMount.call(this); this.leafletElement = (0, _leaflet.featureGroup)(this.getOptions(this.props)); }; diff --git a/dist/react-leaflet.min.js b/dist/react-leaflet.min.js index 76958395..b3cfd6b5 100644 --- a/dist/react-leaflet.min.js +++ b/dist/react-leaflet.min.js @@ -1,3 +1,3 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("leaflet"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","leaflet","react-dom"],e):"object"==typeof exports?exports.ReactLeaflet=e(require("react"),require("leaflet"),require("react-dom")):t.ReactLeaflet=e(t.React,t.L,t.ReactDOM)}(this,function(t,e,n){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0,e.ZoomControl=e.WMSTileLayer=e.Tooltip=e.TileLayer=e.ScaleControl=e.Rectangle=e.Popup=e.Polyline=e.Polygon=e.Path=e.Pane=e.Marker=e.MapLayer=e.MapControl=e.MapComponent=e.Map=e.LayersControl=e.LayerGroup=e.ImageOverlay=e.GridLayer=e.GeoJSON=e.FeatureGroup=e.CircleMarker=e.Circle=e.AttributionControl=e.PropTypes=void 0;var i=n(1),p=r(i),u=n(11),a=o(u),s=n(13),c=o(s),l=n(119),f=o(l),y=n(120),h=o(y),d=n(121),b=o(d),v=n(122),m=o(v),O=n(123),g=o(O),P=n(124),j=o(P),w=n(125),_=o(w),x=n(126),T=o(x),E=n(81),C=o(E),M=n(12),L=o(M),D=n(80),R=o(D),S=n(133),W=o(S),N=n(134),U=o(N),z=n(14),I=o(z),A=n(138),k=o(A),B=n(139),q=o(B),F=n(140),G=o(F),Z=n(142),J=o(Z),V=n(143),$=o(V),H=n(144),K=o(H),Q=n(145),X=o(Q),Y=n(146),tt=o(Y),et=n(147),nt=o(et);e.PropTypes=p,e.AttributionControl=a.default,e.Circle=c.default,e.CircleMarker=f.default,e.FeatureGroup=h.default,e.GeoJSON=b.default,e.GridLayer=m.default,e.ImageOverlay=g.default,e.LayerGroup=j.default,e.LayersControl=_.default,e.Map=T.default,e.MapComponent=C.default,e.MapControl=L.default,e.MapLayer=R.default,e.Marker=W.default,e.Pane=U.default,e.Path=I.default,e.Polygon=k.default,e.Polyline=q.default,e.Popup=G.default,e.Rectangle=J.default,e.ScaleControl=$.default,e.TileLayer=K.default,e.Tooltip=X.default,e.WMSTileLayer=tt.default,e.ZoomControl=nt.default},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.map=e.layerContainer=e.latlngList=e.latlng=e.controlPosition=e.children=e.bounds=void 0;var r=n(2),i=o(r),p=n(7),u=o(p),a=n(8),s=o(a),c=n(6),l=o(c),f=n(5),y=o(f),h=n(9),d=o(h),b=n(10),v=o(b);e.bounds=i.default,e.children=u.default,e.controlPosition=s.default,e.latlng=l.default,e.latlngList=y.default,e.layerContainer=d.default,e.map=v.default},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(3),i=n(4),p=n(5),u=o(p);e.default=r.PropTypes.oneOfType([r.PropTypes.instanceOf(i.LatLngBounds),u.default])},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(3),i=n(6),p=o(i);e.default=r.PropTypes.arrayOf(p.default)},function(t,e,n){"use strict";e.__esModule=!0;var o=n(3);e.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(t,e,n){"use strict";e.__esModule=!0;var o=n(3);e.default=o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node])},function(t,e,n){"use strict";e.__esModule=!0;var o=n(3);e.default=o.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(t,e,n){"use strict";e.__esModule=!0;var o=n(3);e.default=o.PropTypes.shape({addLayer:o.PropTypes.func.isRequired,removeLayer:o.PropTypes.func.isRequired})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(4),r=n(3);e.default=r.PropTypes.instanceOf(o.Map)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(6),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.center,o=e.radius,r=i(e,["center","radius"]);this.leafletElement=(0,s.circle)(n,o,this.getOptions(r))},e.prototype.componentDidUpdate=function(t){this.props.center!==t.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==t.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={center:h.default.isRequired,children:f.default,radius:c.PropTypes.number.isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},e.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);(0,l.default)(n,this.getPathOptions(t))||this.setStyle(n)},e}(b.default);m.childContextTypes={children:h.default,popupContainer:f.PropTypes.object},e.default=m},function(t,e,n){var o=n(16),r=n(30),i=r(function(t,e){return null==t?{}:o(t,e)});t.exports=i},function(t,e,n){function o(t,e){return t=Object(t),r(t,e,function(e,n){return i(t,n)})}var r=n(17),i=n(29);t.exports=o},function(t,e,n){function o(t,e,n){for(var o=-1,u=e.length,a={};++o-1&&t%1==0&&t-1}var r=n(38);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(38);t.exports=o},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(35);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.lengthf))return!1;var h=c.get(t);if(h&&c.get(e))return h==e;var d=-1,b=!0,v=n&a?new r:void 0;for(c.set(t,e),c.set(e,t);++d0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.leafletElement;if(!n||!n.on)return{};var o=(0,d.default)(e);return(0,y.default)(e,function(e,r){t[r]&&e===t[r]||(delete o[r],n.off(r,e))}),(0,y.default)(t,function(t,r){e[r]&&t===e[r]||(o[r]=t,n.on(r,t))}),o},e.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e.prototype.getOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.pane||this.context.pane;return e?b({},t,{pane:e}):t},e}(v.Component);e.default=O},function(t,e,n){function o(t,e,n){var o=a(t)?r:u,s=arguments.length<3;return o(t,p(e,4),n,s,i)}var r=n(83),i=n(84),p=n(93),u=n(94),a=n(76);t.exports=o},function(t,e){function n(t,e,n,o){var r=-1,i=null==t?0:t.length;for(o&&i&&(n=t[++r]);++r-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e,n,o,r){return r(t,function(t,r,i){n=o?(o=!1,t):e(n,t,r,i)}),n}t.exports=n},function(t,e,n){function o(t,e){var n=u(t)?r:i;return n(t,p(e))}var r=n(96),i=n(84),p=n(97),u=n(76);t.exports=o},function(t,e){function n(t,e){for(var n=-1,o=null==t?0:t.length;++n=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(6),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.center,o=i(e,["center"]);this.leafletElement=(0,s.circleMarker)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.center!==t.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==t.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={center:h.default.isRequired,children:f.default,radius:c.PropTypes.number},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(90),c=o(s),l=n(4),f=n(3),y=n(7),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.data,o=i(e,["data"]);this.leafletElement=(0,l.geoJSON)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){(0,c.default)(this.props.style)?this.setStyle(this.props.style):this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:h.default,data:f.PropTypes.oneOfType([f.PropTypes.array,f.PropTypes.object]).isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(2),f=o(l),y=n(7),h=o(y),d=n(80),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.bounds,o=e.url,r=i(e,["bounds","url"]);this.leafletElement=(0,s.imageOverlay)(o,n,this.getOptions(r))},e.prototype.componentDidUpdate=function(t){this.props.url!==t.url&&this.leafletElement.setUrl(this.props.url),this.props.opacity!==t.opacity&&this.leafletElement.setOpacity(this.props.opacity)},e.prototype.render=function(){return null},e}(b.default);v.propTypes={attribution:c.PropTypes.string,bounds:f.default.isRequired,children:h.default,opacity:c.PropTypes.number,url:c.PropTypes.string.isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o2&&void 0!==arguments[2]&&arguments[2];n&&this.context.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},e.prototype.addOverlay=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&this.context.map.addLayer(t),this.leafletElement.addOverlay(t,e)},e.prototype.removeLayer=function(t){this.context.map.removeLayer(t)},e.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},e.prototype.render=function(){var t=this,e=c.Children.map(this.props.children,function(e){return e?(0,c.cloneElement)(e,t.controlProps):null});return l.default.createElement("div",{style:{display:"none"}},e)},e}(P.default);T.propTypes={baseLayers:c.PropTypes.object,children:y.default,overlays:c.PropTypes.object,position:d.default},T.contextTypes={layerContainer:v.default,map:O.default},e.default=T,T.BaseLayer=_,T.Overlay=x},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o1),e}),u(t,s(t),n),a&&(n=r(n,c|l|f));for(var y=e.length;y--;)i(n,e[y]);return n});t.exports=y},function(t,e){function n(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=(o(c),n(7)),f=o(l),y=n(6),h=o(y),d=n(80),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.position,o=i(e,["position"]);this.leafletElement=(0,s.marker)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.position!==t.position&&this.leafletElement.setLatLng(this.props.position),this.props.icon!==t.icon&&this.leafletElement.setIcon(this.props.icon),this.props.zIndexOffset!==t.zIndexOffset&&this.leafletElement.setZIndexOffset(this.props.zIndexOffset),this.props.opacity!==t.opacity&&this.leafletElement.setOpacity(this.props.opacity),this.props.draggable!==t.draggable&&(this.props.draggable?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},e.prototype.render=function(){return this.props.children||null},e}(b.default);v.propTypes={children:f.default,icon:c.PropTypes.instanceOf(s.Icon),opacity:c.PropTypes.number,position:h.default.isRequired,zIndexOffset:c.PropTypes.number},v.childContextTypes={popupContainer:c.PropTypes.object},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:o.props,e=t.style,n=t.className,r=o.getPane(o.state.name);r&&(n&&r.classList.add(n),e&&(0,y.default)(e,function(t,e){r.style[e]=t}))},r=n,p(o,r)}return u(e,t),e.prototype.getChildContext=function(){return{pane:this.state.name}},e.prototype.componentDidMount=function(){this.createPane(this.props)},e.prototype.componentWillReceiveProps=function(t){if(this.state.name)if(t.name!==this.props.name)this.removePane(),this.createPane(t);else{if(this.props.className&&t.className!==this.props.className){var e=this.getPane();e&&e.classList.remove(this.props.className)}this.setStyle(t)}},e.prototype.componentWillUnmount=function(){this.removePane()},e.prototype.createPane=function(t){var e=this.context.map,n=t.name||"pane-"+(0,s.default)();if(e&&e.createPane){var o=j(n),r=o||this.getPane(n);if(r);else e.createPane(n,this.getParentPane());this.setState({name:n},this.setStyle)}},e.prototype.removePane=function(){var t=this.state.name;if(t){var e=this.getPane(t);e&&e.remove&&e.remove();var n=this.context.map;n&&n._panes&&(n._panes=(0,l.default)(n._panes,t),n._paneRenderers=(0,l.default)(n._paneRenderers,t)),this.setState({name:void 0})}},e.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.context.pane)},e.prototype.getPane=function(t){return t?this.context.map.getPane(t):void 0},e.prototype.render=function(){return this.state.name?d.default.createElement("div",{style:w},this.props.children):null},e}(h.Component);_.propTypes={name:h.PropTypes.string,children:m.default,map:g.default,className:h.PropTypes.string,style:h.PropTypes.object,pane:h.PropTypes.string},_.contextTypes={map:g.default,pane:h.PropTypes.string},_.childContextTypes={pane:h.PropTypes.string},e.default=_},function(t,e,n){function o(t){var e=++i;return r(t)+e}var r=n(136),i=0;t.exports=o},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(5),h=o(y),d=n(14),b=o(d),v=c.PropTypes.arrayOf(h.default),m=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.positions,o=i(e,["positions"]);this.leafletElement=(0,s.polygon)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.positions!==t.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(t,this.props)},e}(b.default);m.propTypes={children:f.default,popupContainer:c.PropTypes.object,positions:c.PropTypes.oneOfType([h.default,v,c.PropTypes.arrayOf(v)]).isRequired},e.default=m},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(5),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.positions,o=i(e,["positions"]);this.leafletElement=(0,s.polyline)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.positions!==t.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:f.default,positions:c.PropTypes.oneOfType([h.default,c.PropTypes.arrayOf(h.default)]).isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(141),f=n(6),y=o(f),h=n(10),d=o(h),b=n(81),v=o(b),m=function(t){function e(){var n,o,r;p(this,e);for(var i=arguments.length,a=Array(i),s=0;s=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(2),f=o(l),y=n(7),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.bounds,o=i(e,["bounds"]);this.leafletElement=(0,s.rectangle)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.bounds!==t.bounds&&this.leafletElement.setBounds(this.props.bounds),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:h.default,bounds:f.default.isRequired,popupContainer:c.PropTypes.object},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(122),h=o(y),d=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.url,o=i(e,["url"]);this.leafletElement=(0,s.tileLayer)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e);var n=this.props.url;n!==e.url&&this.leafletElement.setUrl(n)},e}(h.default);d.propTypes={children:f.default,opacity:c.PropTypes.number,url:c.PropTypes.string.isRequired,zIndex:c.PropTypes.number},e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(141),f=n(10),y=o(f),h=n(81),d=o(h),b=function(t){function e(){var n,o,r;p(this,e);for(var i=arguments.length,a=Array(i),s=0;s=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(31),c=o(s),l=n(4),f=n(3),y=n(7),h=o(y),d=n(122),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.url,o=i(e,["url"]);this.leafletElement=l.tileLayer.wms(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e);var n=e.url,o=(e.opacity,e.zIndex,i(e,["url","opacity","zIndex"])),r=this.props,p=r.url,u=(r.opacity,r.zIndex,i(r,["url","opacity","zIndex"]));p!==n&&this.leafletElement.setUrl(p),(0,c.default)(u,o)||this.leafletElement.setParams(u)},e}(b.default);v.propTypes={children:h.default,opacity:f.PropTypes.number,url:f.PropTypes.string.isRequired,zIndex:f.PropTypes.number},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(6),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.center,o=e.radius,r=i(e,["center","radius"]);this.leafletElement=(0,s.circle)(n,o,this.getOptions(r))},e.prototype.componentDidUpdate=function(t){this.props.center!==t.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==t.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={center:h.default.isRequired,children:f.default,radius:c.PropTypes.number.isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},e.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);(0,l.default)(n,this.getPathOptions(t))||this.setStyle(n)},e}(b.default);m.childContextTypes={children:h.default,popupContainer:f.PropTypes.object},e.default=m},function(t,e,n){var o=n(16),r=n(30),i=r(function(t,e){return null==t?{}:o(t,e)});t.exports=i},function(t,e,n){function o(t,e){return t=Object(t),r(t,e,function(e,n){return i(t,n)})}var r=n(17),i=n(29);t.exports=o},function(t,e,n){function o(t,e,n){for(var o=-1,u=e.length,a={};++o-1&&t%1==0&&t-1}var r=n(38);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(38);t.exports=o},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(35);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.lengthf))return!1;var h=c.get(t);if(h&&c.get(e))return h==e;var d=-1,b=!0,v=n&a?new r:void 0;for(c.set(t,e),c.set(e,t);++d0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.leafletElement;if(!n||!n.on)return{};var o=(0,d.default)(e);return(0,y.default)(e,function(e,r){t[r]&&e===t[r]||(delete o[r],n.off(r,e))}),(0,y.default)(t,function(t,r){e[r]&&t===e[r]||(o[r]=t,n.on(r,t))}),o},e.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e.prototype.getOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.pane||this.context.pane;return e?b({},t,{pane:e}):t},e}(v.Component);e.default=O},function(t,e,n){function o(t,e,n){var o=a(t)?r:u,s=arguments.length<3;return o(t,p(e,4),n,s,i)}var r=n(83),i=n(84),p=n(93),u=n(94),a=n(76);t.exports=o},function(t,e){function n(t,e,n,o){var r=-1,i=null==t?0:t.length;for(o&&i&&(n=t[++r]);++r-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e,n,o,r){return r(t,function(t,r,i){n=o?(o=!1,t):e(n,t,r,i)}),n}t.exports=n},function(t,e,n){function o(t,e){var n=u(t)?r:i;return n(t,p(e))}var r=n(96),i=n(84),p=n(97),u=n(76);t.exports=o},function(t,e){function n(t,e){for(var n=-1,o=null==t?0:t.length;++n=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(6),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.center,o=i(e,["center"]);this.leafletElement=(0,s.circleMarker)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.center!==t.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==t.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={center:h.default.isRequired,children:f.default,radius:c.PropTypes.number},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(90),c=o(s),l=n(4),f=n(3),y=n(7),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.data,o=i(e,["data"]);this.leafletElement=(0,l.geoJSON)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){(0,c.default)(this.props.style)?this.setStyle(this.props.style):this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:h.default,data:f.PropTypes.oneOfType([f.PropTypes.array,f.PropTypes.object]).isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(2),f=o(l),y=n(7),h=o(y),d=n(80),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.bounds,o=e.url,r=i(e,["bounds","url"]);this.leafletElement=(0,s.imageOverlay)(o,n,this.getOptions(r))},e.prototype.componentDidUpdate=function(t){this.props.url!==t.url&&this.leafletElement.setUrl(this.props.url),this.props.opacity!==t.opacity&&this.leafletElement.setOpacity(this.props.opacity)},e.prototype.render=function(){return null},e}(b.default);v.propTypes={attribution:c.PropTypes.string,bounds:f.default.isRequired,children:h.default,opacity:c.PropTypes.number,url:c.PropTypes.string.isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o2&&void 0!==arguments[2]&&arguments[2];n&&this.context.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},e.prototype.addOverlay=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&this.context.map.addLayer(t),this.leafletElement.addOverlay(t,e)},e.prototype.removeLayer=function(t){this.context.map.removeLayer(t)},e.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},e.prototype.render=function(){var t=this,e=c.Children.map(this.props.children,function(e){return e?(0,c.cloneElement)(e,t.controlProps):null});return l.default.createElement("div",{style:{display:"none"}},e)},e}(P.default);T.propTypes={baseLayers:c.PropTypes.object,children:y.default,overlays:c.PropTypes.object,position:d.default},T.contextTypes={layerContainer:v.default,map:O.default},e.default=T,T.BaseLayer=_,T.Overlay=x},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o1),e}),u(t,s(t),n),a&&(n=r(n,c|l|f));for(var y=e.length;y--;)i(n,e[y]);return n});t.exports=y},function(t,e){function n(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=(o(c),n(7)),f=o(l),y=n(6),h=o(y),d=n(80),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.position,o=i(e,["position"]);this.leafletElement=(0,s.marker)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.position!==t.position&&this.leafletElement.setLatLng(this.props.position),this.props.icon!==t.icon&&this.leafletElement.setIcon(this.props.icon),this.props.zIndexOffset!==t.zIndexOffset&&this.leafletElement.setZIndexOffset(this.props.zIndexOffset),this.props.opacity!==t.opacity&&this.leafletElement.setOpacity(this.props.opacity),this.props.draggable!==t.draggable&&(this.props.draggable?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},e.prototype.render=function(){return this.props.children||null},e}(b.default);v.propTypes={children:f.default,icon:c.PropTypes.instanceOf(s.Icon),opacity:c.PropTypes.number,position:h.default.isRequired,zIndexOffset:c.PropTypes.number},v.childContextTypes={popupContainer:c.PropTypes.object},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:o.props,e=t.style,n=t.className,r=o.getPane(o.state.name);r&&(n&&r.classList.add(n),e&&(0,y.default)(e,function(t,e){r.style[e]=t}))},r=n,p(o,r)}return u(e,t),e.prototype.getChildContext=function(){return{pane:this.state.name}},e.prototype.componentDidMount=function(){this.createPane(this.props)},e.prototype.componentWillReceiveProps=function(t){if(this.state.name)if(t.name!==this.props.name)this.removePane(),this.createPane(t);else{if(this.props.className&&t.className!==this.props.className){var e=this.getPane();e&&e.classList.remove(this.props.className)}this.setStyle(t)}},e.prototype.componentWillUnmount=function(){this.removePane()},e.prototype.createPane=function(t){var e=this.context.map,n=t.name||"pane-"+(0,s.default)();if(e&&e.createPane){var o=j(n),r=o||this.getPane(n);if(r);else e.createPane(n,this.getParentPane());this.setState({name:n},this.setStyle)}},e.prototype.removePane=function(){var t=this.state.name;if(t){var e=this.getPane(t);e&&e.remove&&e.remove();var n=this.context.map;n&&n._panes&&(n._panes=(0,l.default)(n._panes,t),n._paneRenderers=(0,l.default)(n._paneRenderers,t)),this.setState({name:void 0})}},e.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.context.pane)},e.prototype.getPane=function(t){return t?this.context.map.getPane(t):void 0},e.prototype.render=function(){return this.state.name?d.default.createElement("div",{style:w},this.props.children):null},e}(h.Component);_.propTypes={name:h.PropTypes.string,children:m.default,map:g.default,className:h.PropTypes.string,style:h.PropTypes.object,pane:h.PropTypes.string},_.contextTypes={map:g.default,pane:h.PropTypes.string},_.childContextTypes={pane:h.PropTypes.string},e.default=_},function(t,e,n){function o(t){var e=++i;return r(t)+e}var r=n(136),i=0;t.exports=o},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(5),h=o(y),d=n(14),b=o(d),v=c.PropTypes.arrayOf(h.default),m=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.positions,o=i(e,["positions"]);this.leafletElement=(0,s.polygon)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.positions!==t.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(t,this.props)},e}(b.default);m.propTypes={children:f.default,popupContainer:c.PropTypes.object,positions:c.PropTypes.oneOfType([h.default,v,c.PropTypes.arrayOf(v)]).isRequired},e.default=m},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(5),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.positions,o=i(e,["positions"]);this.leafletElement=(0,s.polyline)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.positions!==t.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:f.default,positions:c.PropTypes.oneOfType([h.default,c.PropTypes.arrayOf(h.default)]).isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(141),f=n(6),y=o(f),h=n(10),d=o(h),b=n(81),v=o(b),m=function(t){function e(){var n,o,r;p(this,e);for(var i=arguments.length,a=Array(i),s=0;s=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(2),f=o(l),y=n(7),h=o(y),d=n(14),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.bounds,o=i(e,["bounds"]);this.leafletElement=(0,s.rectangle)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(t){this.props.bounds!==t.bounds&&this.leafletElement.setBounds(this.props.bounds),this.setStyleIfChanged(t,this.props)},e}(b.default);v.propTypes={children:h.default,bounds:f.default.isRequired,popupContainer:c.PropTypes.object},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(7),f=o(l),y=n(122),h=o(y),d=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.url,o=i(e,["url"]);this.leafletElement=(0,s.tileLayer)(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e);var n=this.props.url;n!==e.url&&this.leafletElement.setUrl(n)},e}(h.default);d.propTypes={children:f.default,opacity:c.PropTypes.number,url:c.PropTypes.string.isRequired,zIndex:c.PropTypes.number},e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(4),c=n(3),l=n(141),f=n(10),y=o(f),h=n(81),d=o(h),b=function(t){function e(){var n,o,r;p(this,e);for(var i=arguments.length,a=Array(i),s=0;s=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}e.__esModule=!0;var s=n(31),c=o(s),l=n(4),f=n(3),y=n(7),h=o(y),d=n(122),b=o(d),v=function(t){function e(){return p(this,e),u(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this);var e=this.props,n=e.url,o=i(e,["url"]);this.leafletElement=l.tileLayer.wms(n,this.getOptions(o))},e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e);var n=e.url,o=(e.opacity,e.zIndex,i(e,["url","opacity","zIndex"])),r=this.props,p=r.url,u=(r.opacity,r.zIndex,i(r,["url","opacity","zIndex"]));p!==n&&this.leafletElement.setUrl(p),(0,c.default)(u,o)||this.leafletElement.setParams(u)},e}(b.default);v.propTypes={children:h.default,opacity:f.PropTypes.number,url:f.PropTypes.string.isRequired,zIndex:f.PropTypes.number},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o