{"version":3,"sources":["webpack:///./node_modules/react-leaflet/es/MapControl.js","webpack:///./node_modules/react-leaflet/es/MapComponent.js","webpack:///./node_modules/react-leaflet/es/context.js","webpack:///./node_modules/react-leaflet/es/Path.js","webpack:///./node_modules/react-leaflet/es/GeoJSON.js","webpack:///./node_modules/react-leaflet/es/utils/pick.js","webpack:///./node_modules/react-leaflet/es/Popup.js","webpack:///./node_modules/react-leaflet/es/DivOverlay.js","webpack:///./node_modules/react-leaflet/es/MapEvented.js","webpack:///./node_modules/react-leaflet/es/TileLayer.js","webpack:///./node_modules/react-leaflet/es/GridLayer.js","webpack:///./node_modules/react-leaflet/es/MapLayer.js","webpack:///./node_modules/react-leaflet/es/utils/omit.js","webpack:///./node_modules/react-leaflet/es/Map.js","webpack:///./node_modules/react-leaflet/es/utils/updateClassName.js"],"names":["MapControl","_Component","props","_this","call","this","leafletElement","createLeafletElement","_proto","prototype","_props","Error","updateLeafletElement","fromProps","toProps","position","setPosition","componentDidMount","addTo","leaflet","map","componentDidUpdate","prevProps","componentWillUnmount","remove","render","MapComponent","_MapEvented","apply","arguments","getOptions","pane","leafletContext","LeafletConsumer","Consumer","LeafletProvider","Provider","withLeaflet","WrappedComponent","WithLeafletComponent","ref","createElement","name","displayName","LeafletComponent","OPTIONS","_Path","GeoJSON","data","style","setStyle","setStyleIfChanged","_MapLayer","Path","contextValue","popupContainer","getPathOptions","object","reduce","obj","key","options","nextStyle","MapLayer","_DivOverlay","Popup","_len","length","args","Array","_key","concat","_ref","popup","onOpen","_ref2","onClose","autoPan","isOpen","_map","_panAnim","undefined","_adjustPan","setLatLng","_this$props$leaflet","el","on","popupopen","onPopupOpen","popupclose","onPopupClose","bindPopup","openOn","off","removeLayer","_MapComponent","DivOverlay","forceUpdate","_prevProps","updateClassName","_container","className","update","onRender","_contentNode","children","EVENTS_RE","MapEvented","_leafletEvents","extractLeafletEvents","bindLeafletEvents","_this2","Object","keys","forEach","ev","res","prop","test","replace","match","p","toLowerCase","next","prev","diff","fireLeafletEvent","type","fire","_GridLayer","TileLayer","url","setUrl","GridLayer","opacity","zIndex","setOpacity","setZIndex","maxZoom","minZoom","_fromProps","_toProps","layerContainer","addLayer","attribution","attributionControl","removeAttribution","addAttribution","value","get","omit","keysToOmit","acc","indexOf","OTHER_PROPS","normalizeCenter","pos","isArray","lat","lon","lng","Map","center","zoom","getCenter","viewport","getZoom","onViewportChange","_updating","onViewportChanged","container","bounds","boundsOptions","boxZoom","doubleClickZoom","dragging","keyboard","maxBounds","scrollWheelZoom","tap","touchZoom","useFlyTo","c","z","flyTo","getZoomPanOptions","setView","shouldUpdateCenter","setZoom","shouldUpdateBounds","setMaxBounds","flyToBounds","getFitBoundsOptions","fitBounds","enable","disable","animate","duration","easeLinearity","noMoveStart","zoomPanOptions","_ready","whenReady","preferCanvas","_initEvents","_stop","equals","id","bindContainer","splitClassName","split","filter","Boolean","nextClassName","prevClassName","cls","removeClass","removeClassName","addClass","addClassName"],"mappings":"4FAAA,kGAQIA,EAA0B,SAAUC,GAGtC,SAASD,EAAWE,GAClB,IAAIC,EAOJ,OALAA,EAAQF,EAAWG,KAAKC,KAAMH,IAAUG,KAExC,YAAgB,YAAuBF,GAAQ,sBAAkB,GAEjEA,EAAMG,eAAiBH,EAAMI,qBAAqBJ,EAAMD,OACjDC,EAVT,YAAeH,EAAYC,GAa3B,IAAIO,EAASR,EAAWS,UA4BxB,OA1BAD,EAAOD,qBAAuB,SAA8BG,GAC1D,MAAM,IAAIC,MAAM,+CAGlBH,EAAOI,qBAAuB,SAA8BC,EAAWC,GACjEA,EAAQC,WAAaF,EAAUE,UACjCV,KAAKC,eAAeU,YAAYF,EAAQC,WAI5CP,EAAOS,kBAAoB,WACzBZ,KAAKC,eAAeY,MAAMb,KAAKH,MAAMiB,QAAQC,MAG/CZ,EAAOa,mBAAqB,SAA4BC,GACtDjB,KAAKO,qBAAqBU,EAAWjB,KAAKH,QAG5CM,EAAOe,qBAAuB,WAC5BlB,KAAKC,eAAekB,UAGtBh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AQ,YAAaD,GAAMmF,OAAO,YAAalF,KAGxDpH,EAAOiB,OAAS,WACd,OAAoB,IAAMgB,cAAc,MAAO,CAC7C4D,UAAWhG,KAAKgG,UAChB0G,GAAI1M,KAAKH,MAAM6M,GACfvK,IAAKnC,KAAK2M,cACV/J,MAAO5C,KAAKH,MAAM+C,OACjB5C,KAAKiD,aAA4B,IAAMb,cAAc,IAAiB,CACvE2G,MAAO/I,KAAKiD,cACXjD,KAAKH,MAAMuG,UAAY,OAGrBwD,EAnRc,CAoRrBtD,EAAA,I,kCCvSF,gBAIIsG,EAAiB,SAAwB5G,GAK3C,YAJkB,IAAdA,IACFA,EAAY,IAGPA,EAAU6G,MAAM,KAAKC,OAAOC,UAarB,oBACG,MAAb1C,GAAqB2C,IAAkBC,IACpB,MAAjBA,GAAyBA,EAAcnJ,OAAS,GAP3B,SAAyBuG,EAAWrE,GAC/D4G,EAAe5G,GAAWa,SAAQ,SAAUqG,GAC1C,IAAQC,YAAY9C,EAAW6C,MAM7BE,CAAgB/C,EAAW4C,GAGR,MAAjBD,GAAyBA,EAAclJ,OAAS,GAhB9B,SAAsBuG,EAAWrE,GACzD4G,EAAe5G,GAAWa,SAAQ,SAAUqG,GAC1C,IAAQG,SAAShD,EAAW6C,MAe1BI,CAAajD,EAAW2C","file":"npm.react-leaflet.55cafb04279289e7c0c5.js","sourcesContent":["\"use strict\";\n\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Control } from 'leaflet';\nimport { Component } from 'react';\n\nvar MapControl = /*#__PURE__*/function (_Component) {\n _inheritsLoose(MapControl, _Component);\n\n function MapControl(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"leafletElement\", void 0);\n\n _this.leafletElement = _this.createLeafletElement(_this.props);\n return _this;\n }\n\n var _proto = MapControl.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(_props) {\n throw new Error('createLeafletElement() must be implemented');\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n if (toProps.position !== fromProps.position) {\n this.leafletElement.setPosition(toProps.position);\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.leafletElement.addTo(this.props.leaflet.map);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n this.updateLeafletElement(prevProps, this.props);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.leafletElement.remove();\n };\n\n _proto.render = function render() {\n return null;\n };\n\n return MapControl;\n}(Component);\n\nexport { MapControl as default };","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport MapEvented from './MapEvented';\n\nvar MapComponent = /*#__PURE__*/function (_MapEvented) {\n _inheritsLoose(MapComponent, _MapEvented);\n\n function MapComponent() {\n return _MapEvented.apply(this, arguments) || this;\n }\n\n var _proto = MapComponent.prototype;\n\n _proto.getOptions = function getOptions(props) {\n if (props.pane != null) {\n return props;\n }\n\n if (props.leaflet != null && props.leaflet.pane != null) {\n return _extends({}, props, {\n pane: props.leaflet.pane\n });\n }\n\n return props;\n };\n\n return MapComponent;\n}(MapEvented);\n\nexport { MapComponent as default };","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport React, { createContext, forwardRef, useContext } from 'react';\nvar leafletContext = /*#__PURE__*/createContext({});\nexport var useLeaflet = function useLeaflet() {\n return useContext(leafletContext);\n};\nexport var LeafletConsumer = leafletContext.Consumer;\nexport var LeafletProvider = leafletContext.Provider;\nexport var withLeaflet = function withLeaflet(WrappedComponent) {\n var WithLeafletComponent = function WithLeafletComponent(props, ref) {\n return /*#__PURE__*/React.createElement(LeafletConsumer, null, function (leaflet) {\n return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, props, {\n leaflet: leaflet,\n ref: ref\n }));\n });\n };\n\n var name = // flowlint-next-line sketchy-null-string:off\n WrappedComponent.displayName || WrappedComponent.name || 'Component';\n WithLeafletComponent.displayName = \"Leaflet(\" + name + \")\";\n var LeafletComponent = /*#__PURE__*/forwardRef(WithLeafletComponent);\n hoistNonReactStatics(LeafletComponent, WrappedComponent);\n return LeafletComponent;\n};","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport isEqual from 'fast-deep-equal';\nimport MapLayer from './MapLayer';\nimport pick from './utils/pick';\nvar OPTIONS = ['stroke', 'color', 'weight', 'opacity', 'lineCap', 'lineJoin', 'dashArray', 'dashOffset', 'fill', 'fillColor', 'fillOpacity', 'fillRule', 'bubblingMouseEvents', 'renderer', 'className', // Interactive Layer\n'interactive', // Layer\n'pane', 'attribution'];\n\nvar Path = /*#__PURE__*/function (_MapLayer) {\n _inheritsLoose(Path, _MapLayer);\n\n function Path(props) {\n var _this;\n\n _this = _MapLayer.call(this, props) || this;\n\n if (_this.contextValue == null) {\n _this.contextValue = _extends({}, props.leaflet, {\n popupContainer: _this.leafletElement\n });\n }\n\n return _this;\n }\n\n var _proto = Path.prototype;\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n _MapLayer.prototype.componentDidUpdate.call(this, prevProps);\n\n this.setStyleIfChanged(prevProps, this.props);\n };\n\n _proto.getPathOptions = function getPathOptions(props) {\n return pick(props, OPTIONS);\n };\n\n _proto.setStyle = function setStyle(options) {\n if (options === void 0) {\n options = {};\n }\n\n this.leafletElement.setStyle(options);\n };\n\n _proto.setStyleIfChanged = function setStyleIfChanged(fromProps, toProps) {\n var nextStyle = this.getPathOptions(toProps);\n\n if (!isEqual(nextStyle, this.getPathOptions(fromProps))) {\n this.setStyle(nextStyle);\n }\n };\n\n return Path;\n}(MapLayer);\n\nexport { Path as default };","\"use strict\";\n\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport { GeoJSON as LeafletGeoJSON } from 'leaflet';\nimport { withLeaflet } from './context';\nimport Path from './Path';\n\nvar GeoJSON = /*#__PURE__*/function (_Path) {\n _inheritsLoose(GeoJSON, _Path);\n\n function GeoJSON() {\n return _Path.apply(this, arguments) || this;\n }\n\n var _proto = GeoJSON.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(props) {\n return new LeafletGeoJSON(props.data, this.getOptions(props));\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n if (typeof toProps.style === 'function') {\n this.leafletElement.setStyle(toProps.style);\n } else {\n this.setStyleIfChanged(fromProps, toProps);\n }\n };\n\n return GeoJSON;\n}(Path);\n\nexport default withLeaflet(GeoJSON);","\"use strict\";\n\nexport default function pick(object, keys) {\n return keys.reduce(function (obj, key) {\n if (typeof object[key] !== 'undefined') {\n obj[key] = object[key];\n }\n\n return obj;\n }, {});\n}","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Popup as LeafletPopup } from 'leaflet';\nimport { withLeaflet } from './context';\nimport DivOverlay from './DivOverlay';\n\nvar Popup = /*#__PURE__*/function (_DivOverlay) {\n _inheritsLoose(Popup, _DivOverlay);\n\n function Popup() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _DivOverlay.call.apply(_DivOverlay, [this].concat(args)) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"onPopupOpen\", function (_ref) {\n var popup = _ref.popup;\n\n if (popup === _this.leafletElement) {\n _this.onOpen();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onPopupClose\", function (_ref2) {\n var popup = _ref2.popup;\n\n if (popup === _this.leafletElement) {\n _this.onClose();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onRender\", function () {\n if (_this.props.autoPan !== false && _this.leafletElement.isOpen()) {\n if (_this.leafletElement._map && _this.leafletElement._map._panAnim) {\n _this.leafletElement._map._panAnim = undefined;\n }\n\n _this.leafletElement._adjustPan();\n }\n });\n\n return _this;\n }\n\n var _proto = Popup.prototype;\n\n _proto.getOptions = function getOptions(props) {\n return _extends({}, _DivOverlay.prototype.getOptions.call(this, props), {\n autoPan: false\n });\n };\n\n _proto.createLeafletElement = function createLeafletElement(props) {\n var options = this.getOptions(props);\n options.autoPan = props.autoPan !== false;\n return new LeafletPopup(options, props.leaflet.popupContainer);\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n if (toProps.position !== fromProps.position) {\n this.leafletElement.setLatLng(toProps.position);\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n var position = this.props.position;\n var _this$props$leaflet = this.props.leaflet,\n map = _this$props$leaflet.map,\n popupContainer = _this$props$leaflet.popupContainer;\n var el = this.leafletElement;\n\n if (map != null) {\n map.on({\n popupopen: this.onPopupOpen,\n popupclose: this.onPopupClose\n });\n }\n\n if (popupContainer) {\n // Attach to container component\n popupContainer.bindPopup(el);\n } else {\n // Attach to a Map\n if (position) {\n el.setLatLng(position);\n }\n\n el.openOn(map);\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var map = this.props.leaflet.map;\n\n if (map != null) {\n map.off({\n popupopen: this.onPopupOpen,\n popupclose: this.onPopupClose\n });\n map.removeLayer(this.leafletElement);\n }\n\n _DivOverlay.prototype.componentWillUnmount.call(this);\n };\n\n return Popup;\n}(DivOverlay);\n\n_defineProperty(Popup, \"defaultProps\", {\n pane: 'popupPane'\n});\n\nexport default withLeaflet(Popup);","\"use strict\";\n\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { createPortal } from 'react-dom';\nimport MapComponent from './MapComponent';\nimport updateClassName from './utils/updateClassName';\n\nvar DivOverlay = /*#__PURE__*/function (_MapComponent) {\n _inheritsLoose(DivOverlay, _MapComponent);\n\n function DivOverlay(props) {\n var _this;\n\n _this = _MapComponent.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"onClose\", function () {\n if (_this.props.onClose) {\n _this.props.onClose();\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onOpen\", function () {\n _this.forceUpdate(); // Re-render now that leafletElement is created\n\n\n if (_this.props.onOpen) {\n _this.props.onOpen();\n }\n });\n\n _this.leafletElement = _this.createLeafletElement(props);\n return _this;\n }\n\n var _proto = DivOverlay.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(_props) {\n throw new Error('createLeafletElement() must be implemented');\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(_prevProps, _props) {};\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n updateClassName(this.leafletElement._container, prevProps.className, this.props.className);\n this.updateLeafletElement(prevProps, this.props);\n\n if (this.leafletElement.isOpen()) {\n this.leafletElement.update();\n this.onRender();\n }\n };\n\n _proto.onRender = function onRender() {};\n\n _proto.render = function render() {\n if (this.leafletElement._contentNode) {\n return /*#__PURE__*/createPortal(this.props.children, this.leafletElement._contentNode);\n }\n\n return null;\n };\n\n return DivOverlay;\n}(MapComponent);\n\nexport { DivOverlay as default };","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { Component } from 'react';\nexport var EVENTS_RE = /^on(.+)$/i;\n\nvar MapEvented = /*#__PURE__*/function (_Component) {\n _inheritsLoose(MapEvented, _Component);\n\n function MapEvented(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"_leafletEvents\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"leafletElement\", void 0);\n\n _this._leafletEvents = _this.extractLeafletEvents(props);\n return _this;\n }\n\n var _proto = MapEvented.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.bindLeafletEvents(this._leafletEvents);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(_prevProps) {\n this._leafletEvents = this.bindLeafletEvents(this.extractLeafletEvents(this.props), this._leafletEvents);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var _this2 = this;\n\n var el = this.leafletElement;\n if (!el) return;\n Object.keys(this._leafletEvents).forEach(function (ev) {\n el.off(ev, _this2._leafletEvents[ev]);\n });\n };\n\n _proto.extractLeafletEvents = function extractLeafletEvents(props) {\n return Object.keys(props).reduce(function (res, prop) {\n if (EVENTS_RE.test(prop)) {\n if (props[prop] != null) {\n var _key = prop.replace(EVENTS_RE, function (match, p) {\n return p.toLowerCase();\n });\n\n res[_key] = props[prop];\n }\n }\n\n return res;\n }, {});\n };\n\n _proto.bindLeafletEvents = function bindLeafletEvents(next, prev) {\n if (next === void 0) {\n next = {};\n }\n\n if (prev === void 0) {\n prev = {};\n }\n\n var el = this.leafletElement;\n if (el == null || el.on == null) return {};\n\n var diff = _extends({}, prev);\n\n Object.keys(prev).forEach(function (ev) {\n if (next[ev] == null || prev[ev] !== next[ev]) {\n delete diff[ev];\n el.off(ev, prev[ev]);\n }\n });\n Object.keys(next).forEach(function (ev) {\n if (prev[ev] == null || next[ev] !== prev[ev]) {\n diff[ev] = next[ev];\n el.on(ev, next[ev]);\n }\n });\n return diff;\n };\n\n _proto.fireLeafletEvent = function fireLeafletEvent(type, data) {\n var el = this.leafletElement;\n if (el) el.fire(type, data);\n };\n\n return MapEvented;\n}(Component);\n\nexport { MapEvented as default };","\"use strict\";\n\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport { TileLayer as LeafletTileLayer } from 'leaflet';\nimport { withLeaflet } from './context';\nimport GridLayer from './GridLayer';\n\nvar TileLayer = /*#__PURE__*/function (_GridLayer) {\n _inheritsLoose(TileLayer, _GridLayer);\n\n function TileLayer() {\n return _GridLayer.apply(this, arguments) || this;\n }\n\n var _proto = TileLayer.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(props) {\n return new LeafletTileLayer(props.url, this.getOptions(props));\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n _GridLayer.prototype.updateLeafletElement.call(this, fromProps, toProps);\n\n if (toProps.url !== fromProps.url) {\n this.leafletElement.setUrl(toProps.url);\n }\n };\n\n return TileLayer;\n}(GridLayer);\n\nexport default withLeaflet(TileLayer);","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport { GridLayer as LeafletGridLayer } from 'leaflet';\nimport MapLayer from './MapLayer';\n\nvar GridLayer = /*#__PURE__*/function (_MapLayer) {\n _inheritsLoose(GridLayer, _MapLayer);\n\n function GridLayer() {\n return _MapLayer.apply(this, arguments) || this;\n }\n\n var _proto = GridLayer.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(props) {\n return new LeafletGridLayer(this.getOptions(props));\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n var opacity = toProps.opacity,\n zIndex = toProps.zIndex;\n\n if (opacity !== fromProps.opacity) {\n this.leafletElement.setOpacity(opacity);\n }\n\n if (zIndex !== fromProps.zIndex) {\n this.leafletElement.setZIndex(zIndex);\n }\n };\n\n _proto.getOptions = function getOptions(props) {\n var options = _extends({}, _MapLayer.prototype.getOptions.call(this, props));\n\n var map = props.leaflet.map;\n\n if (map != null) {\n // $FlowFixMe: Object spread\n if (options.maxZoom == null && map.options.maxZoom != null) {\n // $FlowFixMe: Object spread\n options.maxZoom = map.options.maxZoom;\n } // $FlowFixMe: Object spread\n\n\n if (options.minZoom == null && map.options.minZoom != null) {\n // $FlowFixMe: Object spread\n options.minZoom = map.options.minZoom;\n }\n }\n\n return options;\n };\n\n _proto.render = function render() {\n return null;\n };\n\n return GridLayer;\n}(MapLayer);\n\nexport { GridLayer as default };","\"use strict\";\n\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport React, { Fragment } from 'react';\nimport { LeafletProvider } from './context';\nimport MapComponent from './MapComponent';\n\nvar MapLayer = /*#__PURE__*/function (_MapComponent) {\n _inheritsLoose(MapLayer, _MapComponent);\n\n function MapLayer(props) {\n var _this;\n\n _this = _MapComponent.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"contextValue\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"leafletElement\", void 0);\n\n _this.leafletElement = _this.createLeafletElement(props);\n return _this;\n }\n\n var _proto = MapLayer.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(_props) {\n throw new Error('createLeafletElement() must be implemented');\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(_fromProps, _toProps) {};\n\n _proto.componentDidMount = function componentDidMount() {\n _MapComponent.prototype.componentDidMount.call(this);\n\n this.layerContainer.addLayer(this.leafletElement);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n _MapComponent.prototype.componentDidUpdate.call(this, prevProps);\n\n if (this.props.attribution !== prevProps.attribution) {\n var map = this.props.leaflet.map;\n\n if (map != null && map.attributionControl != null) {\n map.attributionControl.removeAttribution(prevProps.attribution);\n map.attributionControl.addAttribution(this.props.attribution);\n }\n }\n\n this.updateLeafletElement(prevProps, this.props);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n _MapComponent.prototype.componentWillUnmount.call(this);\n\n this.layerContainer.removeLayer(this.leafletElement);\n };\n\n _proto.render = function render() {\n var children = this.props.children;\n\n if (children == null) {\n return null;\n }\n\n return this.contextValue == null ? /*#__PURE__*/React.createElement(Fragment, null, children) : /*#__PURE__*/React.createElement(LeafletProvider, {\n value: this.contextValue\n }, children);\n };\n\n _createClass(MapLayer, [{\n key: \"layerContainer\",\n get: function get() {\n return this.props.leaflet.layerContainer || this.props.leaflet.map;\n }\n }]);\n\n return MapLayer;\n}(MapComponent);\n\nexport { MapLayer as default };","\"use strict\";\n\nexport default function omit(obj) {\n for (var _len = arguments.length, keysToOmit = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n keysToOmit[_key - 1] = arguments[_key];\n }\n\n return Object.keys(obj).reduce(function (acc, key) {\n if (keysToOmit.indexOf(key) === -1) {\n acc[key] = obj[key];\n }\n\n return acc;\n }, {});\n}","\"use strict\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { latLngBounds, Map as LeafletMap } from 'leaflet';\nimport React from 'react';\nimport { LeafletProvider } from './context';\nimport MapEvented from './MapEvented';\nimport updateClassName from './utils/updateClassName';\nimport omit from './utils/omit';\nvar OTHER_PROPS = ['children', 'className', 'id', 'style', 'useFlyTo', 'whenReady'];\n\nvar normalizeCenter = function normalizeCenter(pos) {\n return Array.isArray(pos) ? [pos[0], pos[1]] : [pos.lat, pos.lon ? pos.lon : pos.lng];\n};\n\nvar Map = /*#__PURE__*/function (_MapEvented) {\n _inheritsLoose(Map, _MapEvented);\n\n function Map(props) {\n var _this;\n\n _this = _MapEvented.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_this), \"className\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"contextValue\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"container\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"viewport\", {\n center: undefined,\n zoom: undefined\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_ready\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"_updating\", false);\n\n _defineProperty(_assertThisInitialized(_this), \"onViewportChange\", function () {\n var center = _this.leafletElement.getCenter();\n\n _this.viewport = {\n center: center ? [center.lat, center.lng] : undefined,\n zoom: _this.leafletElement.getZoom()\n };\n\n if (_this.props.onViewportChange && !_this._updating) {\n _this.props.onViewportChange(_this.viewport);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"onViewportChanged\", function () {\n if (_this.props.onViewportChanged && !_this._updating) {\n _this.props.onViewportChanged(_this.viewport);\n }\n });\n\n _defineProperty(_assertThisInitialized(_this), \"bindContainer\", function (container) {\n _this.container = container;\n });\n\n _this.className = props.className;\n return _this;\n }\n\n var _proto = Map.prototype;\n\n _proto.createLeafletElement = function createLeafletElement(props) {\n var viewport = props.viewport,\n options = _objectWithoutPropertiesLoose(props, [\"viewport\"]);\n\n if (viewport) {\n if (viewport.center) {\n options.center = viewport.center;\n }\n\n if (typeof viewport.zoom === 'number') {\n options.zoom = viewport.zoom;\n }\n }\n\n return new LeafletMap(this.container, options);\n };\n\n _proto.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {\n this._updating = true;\n var bounds = toProps.bounds,\n boundsOptions = toProps.boundsOptions,\n boxZoom = toProps.boxZoom,\n center = toProps.center,\n className = toProps.className,\n doubleClickZoom = toProps.doubleClickZoom,\n dragging = toProps.dragging,\n keyboard = toProps.keyboard,\n maxBounds = toProps.maxBounds,\n scrollWheelZoom = toProps.scrollWheelZoom,\n tap = toProps.tap,\n touchZoom = toProps.touchZoom,\n useFlyTo = toProps.useFlyTo,\n viewport = toProps.viewport,\n zoom = toProps.zoom;\n updateClassName(this.container, fromProps.className, className);\n\n if (viewport && viewport !== fromProps.viewport) {\n var c = viewport.center ? viewport.center : center;\n var z = viewport.zoom == null ? zoom : viewport.zoom;\n\n if (useFlyTo === true) {\n this.leafletElement.flyTo(c, z, this.getZoomPanOptions(toProps));\n } else {\n this.leafletElement.setView(c, z, this.getZoomPanOptions(toProps));\n }\n } else if (center && this.shouldUpdateCenter(center, fromProps.center)) {\n if (useFlyTo === true) {\n this.leafletElement.flyTo(center, zoom, this.getZoomPanOptions(toProps));\n } else {\n this.leafletElement.setView(center, zoom, this.getZoomPanOptions(toProps));\n }\n } else if (typeof zoom === 'number' && zoom !== fromProps.zoom) {\n if (fromProps.zoom == null) {\n this.leafletElement.setView(center, zoom, this.getZoomPanOptions(toProps));\n } else {\n this.leafletElement.setZoom(zoom, this.getZoomPanOptions(toProps));\n }\n }\n\n if (maxBounds && this.shouldUpdateBounds(maxBounds, fromProps.maxBounds)) {\n this.leafletElement.setMaxBounds(maxBounds);\n }\n\n if (bounds && (this.shouldUpdateBounds(bounds, fromProps.bounds) || boundsOptions !== fromProps.boundsOptions)) {\n if (useFlyTo === true) {\n this.leafletElement.flyToBounds(bounds, this.getFitBoundsOptions(toProps));\n } else {\n this.leafletElement.fitBounds(bounds, this.getFitBoundsOptions(toProps));\n }\n }\n\n if (boxZoom !== fromProps.boxZoom) {\n if (boxZoom === true) {\n this.leafletElement.boxZoom.enable();\n } else {\n this.leafletElement.boxZoom.disable();\n }\n }\n\n if (doubleClickZoom !== fromProps.doubleClickZoom) {\n if (doubleClickZoom === true || typeof doubleClickZoom === 'string') {\n this.leafletElement.options.doubleClickZoom = doubleClickZoom;\n this.leafletElement.doubleClickZoom.enable();\n } else {\n this.leafletElement.doubleClickZoom.disable();\n }\n }\n\n if (dragging !== fromProps.dragging) {\n if (dragging === true) {\n this.leafletElement.dragging.enable();\n } else {\n this.leafletElement.dragging.disable();\n }\n }\n\n if (keyboard !== fromProps.keyboard) {\n if (keyboard === true) {\n this.leafletElement.keyboard.enable();\n } else {\n this.leafletElement.keyboard.disable();\n }\n }\n\n if (scrollWheelZoom !== fromProps.scrollWheelZoom) {\n if (scrollWheelZoom === true || typeof scrollWheelZoom === 'string') {\n this.leafletElement.options.scrollWheelZoom = scrollWheelZoom;\n this.leafletElement.scrollWheelZoom.enable();\n } else {\n this.leafletElement.scrollWheelZoom.disable();\n }\n }\n\n if (tap !== fromProps.tap) {\n if (tap === true) {\n this.leafletElement.tap.enable();\n } else {\n this.leafletElement.tap.disable();\n }\n }\n\n if (touchZoom !== fromProps.touchZoom) {\n if (touchZoom === true || typeof touchZoom === 'string') {\n this.leafletElement.options.touchZoom = touchZoom;\n this.leafletElement.touchZoom.enable();\n } else {\n this.leafletElement.touchZoom.disable();\n }\n }\n\n this._updating = false;\n };\n\n _proto.getZoomPanOptions = function getZoomPanOptions(props) {\n var animate = props.animate,\n duration = props.duration,\n easeLinearity = props.easeLinearity,\n noMoveStart = props.noMoveStart;\n return {\n animate: animate,\n duration: duration,\n easeLinearity: easeLinearity,\n noMoveStart: noMoveStart\n };\n };\n\n _proto.getFitBoundsOptions = function getFitBoundsOptions(props) {\n var zoomPanOptions = this.getZoomPanOptions(props);\n return _extends({}, zoomPanOptions, props.boundsOptions);\n };\n\n _proto.componentDidMount = function componentDidMount() {\n var props = omit.apply(void 0, [this.props].concat(OTHER_PROPS));\n this.leafletElement = this.createLeafletElement(props);\n this.leafletElement.on('move', this.onViewportChange);\n this.leafletElement.on('moveend', this.onViewportChanged);\n\n if (props.bounds != null) {\n this.leafletElement.fitBounds(props.bounds, this.getFitBoundsOptions(props));\n }\n\n this.contextValue = {\n layerContainer: this.leafletElement,\n map: this.leafletElement\n };\n\n _MapEvented.prototype.componentDidMount.call(this);\n\n this.forceUpdate(); // Re-render now that leafletElement is created\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (this._ready === false) {\n this._ready = true;\n\n if (this.props.whenReady) {\n this.leafletElement.whenReady(this.props.whenReady);\n }\n }\n\n _MapEvented.prototype.componentDidUpdate.call(this, prevProps);\n\n this.updateLeafletElement(prevProps, this.props);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n _MapEvented.prototype.componentWillUnmount.call(this);\n\n this.leafletElement.off('move', this.onViewportChange);\n this.leafletElement.off('moveend', this.onViewportChanged); // The canvas renderer uses requestAnimationFrame, making a deferred call to a deleted object\n // When preferCanvas is set, use simpler teardown logic\n\n if (this.props.preferCanvas === true) {\n this.leafletElement._initEvents(true);\n\n this.leafletElement._stop();\n } else {\n this.leafletElement.remove();\n }\n };\n\n _proto.shouldUpdateCenter = function shouldUpdateCenter(next, prev) {\n if (!prev) return true;\n next = normalizeCenter(next);\n prev = normalizeCenter(prev);\n return next[0] !== prev[0] || next[1] !== prev[1];\n };\n\n _proto.shouldUpdateBounds = function shouldUpdateBounds(next, prev) {\n return prev ? !latLngBounds(next).equals(latLngBounds(prev)) : true;\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: this.className,\n id: this.props.id,\n ref: this.bindContainer,\n style: this.props.style\n }, this.contextValue ? /*#__PURE__*/React.createElement(LeafletProvider, {\n value: this.contextValue\n }, this.props.children) : null);\n };\n\n return Map;\n}(MapEvented);\n\nexport { Map as default };","\"use strict\";\n\nimport { DomUtil } from 'leaflet';\n\nvar splitClassName = function splitClassName(className) {\n if (className === void 0) {\n className = '';\n }\n\n return className.split(' ').filter(Boolean);\n};\n\nexport var addClassName = function addClassName(container, className) {\n splitClassName(className).forEach(function (cls) {\n DomUtil.addClass(container, cls);\n });\n};\nexport var removeClassName = function removeClassName(container, className) {\n splitClassName(className).forEach(function (cls) {\n DomUtil.removeClass(container, cls);\n });\n};\nexport default (function (container, prevClassName, nextClassName) {\n if (container != null && nextClassName !== prevClassName) {\n if (prevClassName != null && prevClassName.length > 0) {\n removeClassName(container, prevClassName);\n }\n\n if (nextClassName != null && nextClassName.length > 0) {\n addClassName(container, nextClassName);\n }\n }\n});"],"sourceRoot":""}