{"version":3,"sources":["webpack:///./node_modules/vue2-leaflet/dist/components/LGeoJson.js","webpack:///./node_modules/vue2-leaflet/dist/components/LPolygon.js","webpack:///./src/mixins/Map/ClickedMultiPolygonMixin.js"],"names":["capitalizeFirstLetter","string","charAt","toUpperCase","slice","propsBinder","vueElement","leafletElement","props","options","loop","key","setMethodName","deepValue","type","Object","Array","isArray","custom","$watch","newVal","oldVal","deep","collectionCleaner","result","value","undefined","optionsMerger","instance","constructor","defaultProps","$options","def","default","call","Symbol","isEqual","JSON","stringify","console","warn","findRealParent","firstVueParent","found","mapObject","$parent","Layer","pane","String","attribution","name","layerType","visible","Boolean","mounted","this","layerOptions","beforeDestroy","unbindPopup","unbindTooltip","parentContainer","removeLayer","methods","setAttribution","val","old","attributionControl","removeAttribution","addAttribution","setName","addLayer","setLayerType","setVisible","isVisible","hideLayer","tooltip","getTooltip","popup","getPopup","updateVisibleProp","$emit","LayerGroup","mixins","layerGroupOptions","layer","alreadyAdded","alreadyRemoved","Options","script","geojson","optionsStyle","Function","computed","mergedOptions","assign","style","this$1","on","$listeners","$nextTick","setGeojson","clearLayers","addData","getGeoJSONData","toGeoJSON","getBounds","setOptions","setOptionsStyle","setStyle","render","normalizeComponent","template","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","shadowRoot","originalRender","h","existing","beforeCreate","concat","__vue_script__","__vue_inject_styles__","__vue_scope_id__","__vue_module_identifier__","__vue_is_functional_template__","__vue_component__","InteractiveLayer","interactive","bubblingMouseEvents","interactiveLayerOptions","Path","lStyle","stroke","color","weight","Number","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","className","pathOptions","error","setLStyle","setStroke","setColor","setWeight","setOpacity","setLineCap","setLineJoin","setDashArray","setDashOffset","setFill","setFillColor","setFillOpacity","setFillRule","setClassName","Polyline","smoothFactor","noClip","data","ready","polyLineOptions","setSmoothFactor","setNoClip","addLatLng","PolygonMixin","polygonOptions","latLngs","__vue_render__","_vm","_h","$createElement","_c","_self","staticStyle","_t","_e","__vue_staticRenderFns__","selectedGauges","required","currentEmissionScenario","currentPeriod","dataSeason","rgbaColors","getGaugeMarkerStyle","overlay","maxAndMinValues","maxAndMinResult","selectedLayers","currentSelectedLayerId","point","Point","getMeassureUnit","meassureUnit","isSelectedGauge","properties","find","findGauge","defineGaugeMarkerStyle","active","passive","getTargetPropertyName","kindOfData","layerPrefix","endOfPeriod","parseInt","split","season","targetPropertyName","join","generateColorObj","layerProperties","correctOpacity","biggestValueModule","Math","abs","maxValueColor","minValueColor","gaugeClickGeoJson","layerIsReady","bringToFront","center","getCenter","lat","lng","clickedOverlay","$refs","refName","_layers","_leaflet_id","defineLayersStyle","layers","forEach","feature","createTooltip","lang","getDefaultItemName","loadColor","entries","unbindTooltipToLayer","bringToBack","bindTooltipToLayer","bindTooltip","openTooltip","watch","length","values","setTimeout","components","LPolygon","LGeoJson"],"mappings":"kHAAA,gBAEIA,EAAwB,SAAUC,GACpC,OAAKA,GAAmC,oBAAlBA,EAAOC,OAGtBD,EAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GAF5CH,GAKPI,EAAc,SAAUC,EAAYC,EAAgBC,EAAOC,GAC7D,IAAIC,EAAO,SAAWC,GACpB,IAAIC,EAAgB,MAAQZ,EAAsBW,GAC9CE,EACFL,EAAMG,GAAKG,OAASC,QACpBP,EAAMG,GAAKG,OAASE,OACpBA,MAAMC,QAAQT,EAAMG,GAAKG,MACvBN,EAAMG,GAAKO,QAAUZ,EAAWM,GAClCN,EAAWa,OACTR,GACA,SAAUS,EAAQC,GAChBf,EAAWM,GAAeQ,EAAQC,KAEpC,CACEC,KAAMT,IAGiB,eAAlBD,EACTN,EAAWa,OACTR,GACA,SAAUS,EAAQC,GAChB,wBAAWd,EAAgBa,KAE7B,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,KAAKwC,MAAMiI,OAAOxE,SAG7BpE,EAAMuL,YAAYpN,KAAK4M,cAAcvC,EAAYwC,IAAOQ,gBAG5DC,MAAO,CACL1N,YACEI,KAAK+M,aAEPvD,aACExJ,KAAK+M,aAEPzD,0BACEtJ,KAAK+M,aAEPxD,gBACEvJ,KAAK+M,aAEP3D,iBACMpJ,KAAKoJ,eAAemE,OAAS,GAC3BvN,KAAK+J,wBACP/J,KAAKoM,MAAMpM,KAAKqM,SAAShN,UAAUiN,QACjCtM,KAAK+J,wBACL1G,SAASrD,KAAKwC,MAAMkI,WAK9B3K,UACEC,KAAK4J,gBAAkBA,EAAgB4D,OACvCxN,KAAK6J,gBAAkBD,EAAgB3L,OACvC+B,KAAK+M,YACLU,WAAW,KACTzN,KAAK6L,cAAe,GACnB,GAEH7L,KAAKyB,MAAM,sBAGbiM,WAAY,CACVC,gBACAC","file":"js/chunk-01d8b694.9ae88175.js","sourcesContent":["import { setOptions, geoJSON, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default &&\n typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar LayerGroup = {\n mixins: [Layer],\n mounted: function mounted () {\n this.layerGroupOptions = this.layerOptions;\n },\n methods: {\n addLayer: function addLayer (layer, alreadyAdded) {\n if (!alreadyAdded) {\n this.mapObject.addLayer(layer.mapObject);\n }\n this.parentContainer.addLayer(layer, true);\n },\n removeLayer: function removeLayer (layer, alreadyRemoved) {\n if (!alreadyRemoved) {\n this.mapObject.removeLayer(layer.mapObject);\n }\n this.parentContainer.removeLayer(layer, true);\n }\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n/**\n * Easily display a geo-json on the map\n */\nvar script = {\n name: 'LGeoJson',\n mixins: [LayerGroup, Options],\n props: {\n geojson: {\n type: [Object, Array],\n custom: true,\n default: function () { return ({}); },\n },\n options: {\n type: Object,\n custom: true,\n default: function () { return ({}); },\n },\n optionsStyle: {\n type: [Object, Function],\n custom: true,\n default: null,\n },\n },\n computed: {\n mergedOptions: function mergedOptions() {\n return optionsMerger(\n Object.assign({}, this.layerGroupOptions,\n {style: this.optionsStyle}),\n this\n );\n },\n },\n mounted: function mounted() {\n var this$1 = this;\n\n this.mapObject = geoJSON(this.geojson, this.mergedOptions);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.parentContainer.mapObject.removeLayer(this.mapObject);\n },\n methods: {\n setGeojson: function setGeojson(newVal) {\n this.mapObject.clearLayers();\n this.mapObject.addData(newVal);\n },\n getGeoJSONData: function getGeoJSONData() {\n return this.mapObject.toGeoJSON();\n },\n getBounds: function getBounds() {\n return this.mapObject.getBounds();\n },\n setOptions: function setOptions$1(newVal, oldVal) {\n this.mapObject.clearLayers();\n setOptions(this.mapObject, this.mergedOptions);\n this.mapObject.addData(this.geojson);\n },\n setOptionsStyle: function setOptionsStyle(newVal, oldVal) {\n this.mapObject.setStyle(newVal);\n },\n },\n render: function render() {\n return null;\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = /*#__PURE__*/normalizeComponent(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { setOptions, polygon, DomEvent } from 'leaflet';\n\nvar capitalizeFirstLetter = function (string) {\n if (!string || typeof string.charAt !== 'function') {\n return string;\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar propsBinder = function (vueElement, leafletElement, props, options) {\n var loop = function ( key ) {\n var setMethodName = 'set' + capitalizeFirstLetter(key);\n var deepValue =\n props[key].type === Object ||\n props[key].type === Array ||\n Array.isArray(props[key].type);\n if (props[key].custom && vueElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n vueElement[setMethodName](newVal, oldVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (setMethodName === 'setOptions') {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n setOptions(leafletElement, newVal);\n },\n {\n deep: deepValue,\n }\n );\n } else if (leafletElement[setMethodName]) {\n vueElement.$watch(\n key,\n function (newVal, oldVal) {\n leafletElement[setMethodName](newVal);\n },\n {\n deep: deepValue,\n }\n );\n }\n };\n\n for (var key in props) loop( key );\n};\n\nvar collectionCleaner = function (options) {\n var result = {};\n for (var key in options) {\n var value = options[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n }\n return result;\n};\n\nvar optionsMerger = function (props, instance) {\n var options =\n instance.options && instance.options.constructor === Object\n ? instance.options\n : {};\n props = props && props.constructor === Object ? props : {};\n var result = collectionCleaner(options);\n props = collectionCleaner(props);\n var defaultProps = instance.$options.props;\n for (var key in props) {\n var def = defaultProps[key]\n ? defaultProps[key].default &&\n typeof defaultProps[key].default === 'function'\n ? defaultProps[key].default.call()\n : defaultProps[key].default\n : Symbol('unique');\n var isEqual = false;\n if (Array.isArray(def)) {\n isEqual = JSON.stringify(def) === JSON.stringify(props[key]);\n } else {\n isEqual = def === props[key];\n }\n if (result[key] && !isEqual) {\n console.warn(\n (key + \" props is overriding the value passed in the options props\")\n );\n result[key] = props[key];\n } else if (!result[key]) {\n result[key] = props[key];\n }\n }\n return result;\n};\n\nvar findRealParent = function (firstVueParent) {\n var found = false;\n while (firstVueParent && !found) {\n if (firstVueParent.mapObject === undefined) {\n firstVueParent = firstVueParent.$parent;\n } else {\n found = true;\n }\n }\n return firstVueParent;\n};\n\nvar Layer = {\n props: {\n pane: {\n type: String,\n default: 'overlayPane',\n },\n attribution: {\n type: String,\n default: null,\n custom: true,\n },\n name: {\n type: String,\n custom: true,\n default: undefined,\n },\n layerType: {\n type: String,\n custom: true,\n default: undefined,\n },\n visible: {\n type: Boolean,\n custom: true,\n default: true,\n },\n },\n mounted: function mounted() {\n this.layerOptions = {\n attribution: this.attribution,\n pane: this.pane,\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.unbindPopup();\n this.unbindTooltip();\n this.parentContainer.removeLayer(this);\n },\n methods: {\n setAttribution: function setAttribution(val, old) {\n var attributionControl = this.$parent.mapObject.attributionControl;\n attributionControl.removeAttribution(old).addAttribution(val);\n },\n setName: function setName() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setLayerType: function setLayerType() {\n this.parentContainer.removeLayer(this);\n if (this.visible) {\n this.parentContainer.addLayer(this);\n }\n },\n setVisible: function setVisible(isVisible) {\n if (this.mapObject) {\n if (isVisible) {\n this.parentContainer.addLayer(this);\n } else {\n if (this.parentContainer.hideLayer) {\n this.parentContainer.hideLayer(this);\n } else {\n this.parentContainer.removeLayer(this);\n }\n }\n }\n },\n unbindTooltip: function unbindTooltip() {\n var tooltip = this.mapObject ? this.mapObject.getTooltip() : null;\n if (tooltip) {\n tooltip.unbindTooltip();\n }\n },\n unbindPopup: function unbindPopup() {\n var popup = this.mapObject ? this.mapObject.getPopup() : null;\n if (popup) {\n popup.unbindPopup();\n }\n },\n updateVisibleProp: function updateVisibleProp(value) {\n /**\n * Triggers when the visible prop needs to be updated\n * @type {boolean}\n * @property {boolean} value - value of the visible property\n */\n this.$emit('update:visible', value);\n },\n },\n};\n\nvar InteractiveLayer = {\n props: {\n interactive: {\n type: Boolean,\n default: true\n },\n bubblingMouseEvents: {\n type: Boolean,\n default: true\n }\n },\n mounted: function mounted () {\n this.interactiveLayerOptions = {\n interactive: this.interactive,\n bubblingMouseEvents: this.bubblingMouseEvents\n };\n }\n};\n\nvar Path = {\n mixins: [Layer, InteractiveLayer],\n props: {\n lStyle: {\n type: Object,\n custom: true,\n default: null\n },\n stroke: {\n type: Boolean,\n custom: true,\n default: true\n },\n color: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n weight: {\n type: Number,\n custom: true,\n default: 3\n },\n opacity: {\n type: Number,\n custom: true,\n default: 1.0\n },\n lineCap: {\n type: String,\n custom: true,\n default: 'round'\n },\n lineJoin: {\n type: String,\n custom: true,\n default: 'round'\n },\n dashArray: {\n type: String,\n custom: true,\n default: null\n },\n dashOffset: {\n type: String,\n custom: true,\n default: null\n },\n fill: {\n type: Boolean,\n custom: true,\n default: false\n },\n fillColor: {\n type: String,\n custom: true,\n default: '#3388ff'\n },\n fillOpacity: {\n type: Number,\n custom: true,\n default: 0.2\n },\n fillRule: {\n type: String,\n custom: true,\n default: 'evenodd'\n },\n className: {\n type: String,\n custom: true,\n default: null\n }\n },\n mounted: function mounted () {\n this.pathOptions = Object.assign({}, this.layerOptions,\n this.interactiveLayerOptions,\n {stroke: this.stroke,\n color: this.color,\n weight: this.weight,\n opacity: this.opacity,\n lineCap: this.lineCap,\n lineJoin: this.lineJoin,\n dashArray: this.dashArray,\n dashOffset: this.dashOffset,\n fill: this.fill,\n fillColor: this.fillColor,\n fillOpacity: this.fillOpacity,\n fillRule: this.fillRule,\n className: this.className});\n\n if (this.lStyle) {\n console.warn('lStyle is deprecated and is going to be removed in the next major version');\n for (var style in this.lStyle) {\n this.pathOptions[style] = this.lStyle[style];\n }\n }\n },\n beforeDestroy: function beforeDestroy () {\n if (this.parentContainer) {\n this.parentContainer.removeLayer(this);\n } else {\n console.error('Missing parent container');\n }\n },\n methods: {\n setLStyle: function setLStyle (newVal) {\n this.mapObject.setStyle(newVal);\n },\n setStroke: function setStroke (newVal) {\n this.mapObject.setStyle({ stroke: newVal });\n },\n setColor: function setColor (newVal) {\n this.mapObject.setStyle({ color: newVal });\n },\n setWeight: function setWeight (newVal) {\n this.mapObject.setStyle({ weight: newVal });\n },\n setOpacity: function setOpacity (newVal) {\n this.mapObject.setStyle({ opacity: newVal });\n },\n setLineCap: function setLineCap (newVal) {\n this.mapObject.setStyle({ lineCap: newVal });\n },\n setLineJoin: function setLineJoin (newVal) {\n this.mapObject.setStyle({ lineJoin: newVal });\n },\n setDashArray: function setDashArray (newVal) {\n this.mapObject.setStyle({ dashArray: newVal });\n },\n setDashOffset: function setDashOffset (newVal) {\n this.mapObject.setStyle({ dashOffset: newVal });\n },\n setFill: function setFill (newVal) {\n this.mapObject.setStyle({ fill: newVal });\n },\n setFillColor: function setFillColor (newVal) {\n this.mapObject.setStyle({ fillColor: newVal });\n },\n setFillOpacity: function setFillOpacity (newVal) {\n this.mapObject.setStyle({ fillOpacity: newVal });\n },\n setFillRule: function setFillRule (newVal) {\n this.mapObject.setStyle({ fillRule: newVal });\n },\n setClassName: function setClassName (newVal) {\n this.mapObject.setStyle({ className: newVal });\n }\n }\n};\n\nvar Polyline = {\n mixins: [Path],\n props: {\n smoothFactor: {\n type: Number,\n custom: true,\n default: 1.0\n },\n noClip: {\n type: Boolean,\n custom: true,\n default: false\n }\n },\n data: function data () {\n return {\n ready: false\n };\n },\n mounted: function mounted () {\n this.polyLineOptions = Object.assign({}, this.pathOptions,\n {smoothFactor: this.smoothFactor,\n noClip: this.noClip});\n },\n methods: {\n setSmoothFactor: function setSmoothFactor (newVal) {\n this.mapObject.setStyle({ smoothFactor: newVal });\n },\n setNoClip: function setNoClip (newVal) {\n this.mapObject.setStyle({ noClip: newVal });\n },\n addLatLng: function addLatLng (value) {\n this.mapObject.addLatLng(value);\n }\n }\n};\n\nvar PolygonMixin = {\n mixins: [Polyline],\n props: {\n fill: {\n type: Boolean,\n custom: true,\n default: true\n }\n },\n mounted: function mounted () {\n this.polygonOptions = this.polyLineOptions;\n },\n methods: {\n getGeoJSONData: function getGeoJSONData () {\n return this.mapObject.toGeoJSON();\n }\n }\n};\n\nvar Options = {\n props: {\n /**\n * Leaflet options to pass to the component constructor\n */\n options: {\n type: Object,\n default: function () { return ({}); }\n }\n }\n};\n\n//\n\n/**\n * Easily draw a polygon on the map\n */\nvar script = {\n name: 'LPolygon',\n mixins: [PolygonMixin, Options],\n props: {\n latLngs: {\n type: Array,\n default: function () { return []; },\n },\n },\n data: function data() {\n return {\n ready: false,\n };\n },\n mounted: function mounted() {\n var this$1 = this;\n\n var options = optionsMerger(this.polygonOptions, this);\n this.mapObject = polygon(this.latLngs, options);\n DomEvent.on(this.mapObject, this.$listeners);\n propsBinder(this, this.mapObject, this.$options.props);\n this.ready = true;\n this.parentContainer = findRealParent(this.$parent);\n this.parentContainer.addLayer(this, !this.visible);\n this.$nextTick(function () {\n /**\n * Triggers when the component is ready\n * @type {object}\n * @property {object} mapObject - reference to leaflet map object\n */\n this$1.$emit('ready', this$1.mapObject);\n });\n },\n};\n\nfunction normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n var options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n var hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n var originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n var existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\n/* script */\nvar __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"display\":\"none\"}},[(_vm.ready)?_vm._t(\"default\"):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n var __vue_inject_styles__ = undefined;\n /* scoped */\n var __vue_scope_id__ = undefined;\n /* module identifier */\n var __vue_module_identifier__ = undefined;\n /* functional template */\n var __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n /* style inject shadow dom */\n \n\n \n var __vue_component__ = /*#__PURE__*/normalizeComponent(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n false,\n undefined,\n undefined,\n undefined\n );\n\nexport default __vue_component__;\n","import { LPolygon, LGeoJson } from \"vue2-leaflet\";\nimport { Point } from \"leaflet\";\nimport {\n getGaugeMarkerStyle,\n findGauge,\n getDefaultItemName,\n} from \"../../components/Map/overlayLayersModes.js\";\nimport maxAndMinValues from \"../../../static/Max_And_Min_Basin-and-Oblasts.json\";\n\nexport default {\n props: {\n selectedGauges: {\n type: Array || null,\n required: true,\n },\n currentEmissionScenario: {\n type: String,\n required: true,\n },\n currentPeriod: {\n type: String,\n required: true,\n },\n layerType: {\n type: String,\n required: true,\n },\n dataSeason: {\n type: String,\n required: true,\n },\n rgbaColors: {\n type: Object,\n required: true,\n },\n },\n data() {\n return {\n style: getGaugeMarkerStyle(this.$options.overlay),\n maxAndMinValues: null,\n maxAndMinResult: null,\n selectedLayers: [],\n currentSelectedLayerId: null,\n point: Point,\n };\n },\n computed: {\n getMeassureUnit() {\n let meassureUnit = \"\";\n if (this.layerType === \"Precipitation\" || this.layerType === \"Опади\") {\n meassureUnit = \"%\";\n } else if (this.layerType === \"Air temperature\" || this.layerType === \"Температура повітря\") {\n meassureUnit = \" °C\";\n }\n return meassureUnit;\n },\n },\n methods: {\n isSelectedGauge(properties) {\n return !!this.selectedGauges.find(\n findGauge(this.$options.overlay, properties)\n );\n },\n defineGaugeMarkerStyle(properties) {\n return this.isSelectedGauge(properties)\n ? this.style.active\n : this.style.passive;\n },\n getTargetPropertyName() {\n //eslint-disable-next-line\n let kindOfData = (this.layerType === \"Precipitation\" || this.layerType === \"Опади\") ? \"pcp\" : \"tmp\";\n if (this.layerPrefix === \"observed\") {\n kindOfData = (this.layerType === \"Precipitation\" || this.layerType === \"Опади\") ? \"RR\" : \"Tm\";\n }\n const endOfPeriod = parseInt(this.currentPeriod.split(\"-\")[1]);\n let season;\n if (endOfPeriod <= 2020 && this.layerPrefix === \"observed\") {\n season =\n this.dataSeason === \"annual\"\n ? `${this.layerPrefix}_anom`\n : `${this.dataSeason}_${this.layerPrefix}_anom`;\n } else {\n season =\n this.dataSeason === \"annual\"\n ? `${this.currentEmissionScenario}_anom`\n : `${this.currentEmissionScenario}_anom_${this.dataSeason}`;\n }\n const targetPropertyName = [\n kindOfData,\n season,\n this.currentPeriod.split(\"-\").join(\"_\"),\n ].join(\"_\");\n return targetPropertyName;\n },\n generateColorObj(layerProperties) {\n const kindOfData =\n (this.layerType === \"Precipitation\" || this.layerType === \"Опади\") ? \"Precipitation\" : \"Temperature\";\n const targetPropertyName = this.getTargetPropertyName();\n const value = layerProperties[targetPropertyName];\n let color = \"rgba(0, 0, 0, 0)\";\n if (value) {\n let correctOpacity;\n const biggestValueModule =\n Math.abs(this.maxAndMinResult[`max${kindOfData}`]) >\n Math.abs(this.maxAndMinResult[`min${kindOfData}`])\n ? Math.abs(this.maxAndMinResult[`max${kindOfData}`])\n : Math.abs(this.maxAndMinResult[`min${kindOfData}`]);\n if (value > 0) {\n color = this.rgbaColors.maxValueColor.split(\",\");\n correctOpacity = value / biggestValueModule;\n } else if (value < 0) {\n color = this.rgbaColors.minValueColor.split(\",\");\n correctOpacity = Math.abs(value) / biggestValueModule;\n }\n if (value !== 0) {\n color[3] = ` ${correctOpacity})`;\n color = color.join();\n }\n }\n return color ? { fillColor: color } : {};\n },\n gaugeClickGeoJson(layer, properties) {\n if (this.layerIsReady) {\n layer.bringToFront();\n const center = layer.getBounds().getCenter();\n this.$emit(\"update-current-center\", [center.lat, center.lng]);\n this.$nextTick(() =>\n this.$emit(\"gauge-click\", {\n properties,\n clickedOverlay: this.$options.overlay,\n })\n );\n if (this.currentSelectedLayerId) {\n this.$refs[this.refName].mapObject._layers[\n this.currentSelectedLayerId\n ].setStyle(this.style.passive);\n }\n this.currentSelectedLayerId = layer._leaflet_id;\n if (this.isSelectedGauge(properties)) {\n layer.setStyle(this.style.passive);\n } else {\n layer.setStyle(this.style.active);\n }\n }\n },\n defineLayersStyle(layers) {\n layers.forEach((layer) => {\n layer.setStyle(this.defineGaugeMarkerStyle(layer.feature.properties));\n });\n },\n createTooltip(properties, lang) {\n return `${getDefaultItemName(this.$options.overlay, properties)[lang] || getDefaultItemName(this.$options.overlay, properties)}: ${\n properties[this.getTargetPropertyName()]\n }${this.getMeassureUnit}`;\n },\n loadColor() {\n Object.entries(this.$refs[this.refName].mapObject._layers).forEach(\n ([key, value]) => {\n this.$refs[this.refName].mapObject._layers[key].setStyle(\n this.generateColorObj(value.feature.properties)\n );\n }\n );\n },\n unbindTooltipToLayer(layer, properties) {\n if (!this.isSelectedGauge(properties)) {\n layer.bringToBack();\n layer.setStyle({\n dashArray: 1,\n color: this.style.passive.color,\n });\n }\n layer.unbindTooltip();\n },\n bindTooltipToLayer(layer, properties, lang) {\n //! Действие не соответствует названию метода, требует изменений\n if (!this.isSelectedGauge(properties)) {\n layer.bringToFront();\n layer.setStyle({\n dashArray: 4,\n color: this.style.active.color,\n });\n }\n layer.bindTooltip(this.createTooltip(properties, lang)).openTooltip();\n },\n },\n watch: {\n layerType() {\n this.loadColor();\n },\n dataSeason() {\n this.loadColor();\n },\n currentEmissionScenario() {\n this.loadColor();\n },\n currentPeriod() {\n this.loadColor();\n },\n selectedGauges() {\n if (this.selectedGauges.length < 1) {\n if (this.currentSelectedLayerId) {\n this.$refs[this.refName].mapObject._layers[\n this.currentSelectedLayerId\n ].setStyle(this.style.passive);\n }\n }\n },\n },\n mounted() {\n this.maxAndMinValues = maxAndMinValues.values;\n this.maxAndMinResult = maxAndMinValues.result;\n this.loadColor();\n setTimeout(() => {\n this.layerIsReady = true;\n }, 0);\n\n this.$emit(\"overlay-is-loaded\");\n },\n\n components: {\n LPolygon,\n LGeoJson,\n },\n};\n"],"sourceRoot":""}