{"version":3,"sources":["webpack:///./src/projectModules/geoJsonOptions/eehuzb_2022-geoJsonOptions.js"],"names":["infoName","infoList","rank1","rank2","roi","developed_area","promising_area","power_plant","substations","transmission_lines","infoStack","getTotalInfo","map","key","createInfo","feature","layer","arr","name","info","obj","value","properties","property","postfix","clearInfo","setInfoPanel","on","e","store","commit","includes","unshift","filter","item","onEachFeature_rank1","onEachFeature_rank2","onEachFeature_roi","onEachFeature_developed_area","onEachFeature_promising_area","onEachFeature_power_plant","onEachFeature_substations","onEachFeature_transmission_lines","style_rank1","rank","style","color","weight","opacity","fillOpacity","fillColor","style_rank2","irr","style_developed_area","style_promising_area","style_roi","lineJoin","dashArray","fill","style_power_plant","source","style_substations","style_transmission_lines","interactive","pointToLayer_rank1","latlng","L","circle","pointToLayer_rank2","pointToLayer_power_plant","circleMarker","radius","pointToLayer_substations","geoJsonOptions","onEachFeature","pointToLayer","setInfoName","id","en","labelEn","jp","label"],"mappings":"8OAGMA,EAAW,GAEXC,EAAW,CACfC,MAAO,GACPC,MAAO,GACPC,IAAK,GACLC,eAAgB,GAChBC,eAAgB,GAChBC,YAAa,GACbC,YAAa,GACbC,mBAAoB,IAGlBC,EAAY,GAEhB,SAASC,IACP,OAAOD,EAAUE,KAAI,SAACC,GAAG,OAAKZ,EAASY,MAGzC,SAASC,EAAWC,EAASC,EAAOC,EAAKC,GACvC,IAAMC,EAAOF,EAAIL,KAAI,SAACQ,GACpB,IAAMC,EACgC,KAApCN,EAAQO,WAAWF,EAAIG,WACa,MAApCR,EAAQO,WAAWF,EAAIG,UACnBR,EAAQO,WAAWF,EAAIG,UACvB,IACAC,EAAUJ,EAAII,SAAW,GAC/B,MAAO,CAAEX,IAAKO,EAAIP,IAAKQ,MAAOA,EAAQG,MAGxCvB,EAASiB,GAAQ,CAAEA,KAAMlB,EAASkB,GAAOG,MAAOF,GAGlD,SAASM,EAAUP,GACjBjB,EAASiB,GAAQ,GAOnB,SAASQ,EAAaX,EAASC,EAAOC,EAAKC,G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AAgBG","file":"chunk-2d0b9589.56704606ec8b39b8a9be.js","sourcesContent":["import store from \"@/store/index.js\";\nimport L from \"leaflet\";\n\nconst infoName = {};\n\nconst infoList = {\n rank1: {},\n rank2: {},\n roi: {},\n developed_area: {},\n promising_area: {},\n power_plant: {},\n substations: {},\n transmission_lines: {},\n};\n\nlet infoStack = [];\n\nfunction getTotalInfo() {\n return infoStack.map((key) => infoList[key]);\n}\n\nfunction createInfo(feature, layer, arr, name) {\n const info = arr.map((obj) => {\n const value =\n feature.properties[obj.property] != \" \" &&\n feature.properties[obj.property] != null\n ? feature.properties[obj.property]\n : \"-\";\n const postfix = obj.postfix || \"\";\n return { key: obj.key, value: value + postfix };\n });\n\n infoList[name] = { name: infoName[name], value: info };\n}\n\nfunction clearInfo(name) {\n infoList[name] = [];\n}\n\n/**\n *\n * @param Array [{key: \"\", property: \"\", postfix: \"\"},...]\n */\nfunction setInfoPanel(feature, layer, arr, name) {\n layer.on(\"mouseover\", function (e) {\n createInfo(feature, layer, arr, name);\n store.commit(\"setInfoPanelIsShow\", true);\n if (!infoStack.includes(name)) infoStack.unshift(name);\n const info = getTotalInfo();\n store.commit(\"setInfoPanelInfo\", { info: info });\n });\n\n layer.on(\"mouseout\", function () {\n clearInfo(name);\n infoStack = infoStack.filter((item) => item !== name);\n store.commit(\"setInfoPanelIsShow\", false);\n });\n}\n\n//適地マップ(距離)\nconst onEachFeature_rank1 = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"id\", property: \"id\" },\n { key: \"wind_speed\", property: \"wind_speed\" },\n { key: \"dist_rd\", property: \"dist_rd\" },\n { key: \"dist_tl\", property: \"dist_tl\" },\n { key: \"rank\", property: \"rank\" },\n { key: \"irr\", property: \"irr\" },\n ],\n \"rank1\",\n );\n};\n\n//適地マップ(風速+距離)\nconst onEachFeature_rank2 = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"id\", property: \"id\" },\n { key: \"wind_speed\", property: \"wind_speed\" },\n { key: \"dist_rd\", property: \"dist_rd\" },\n { key: \"dist_tl\", property: \"dist_tl\" },\n { key: \"rank\", property: \"rank\" },\n { key: \"irr\", property: \"irr\" },\n ],\n \"rank2\",\n );\n};\n\n//対象地域\nconst onEachFeature_roi = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"Country\", property: \"country\" },\n { key: \"Name\", property: \"name\" },\n ],\n \"roi\",\n );\n};\n\n//他社開発エリア\nconst onEachFeature_developed_area = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"fclass\", property: \"fclass\" },\n { key: \"area_sq_km\", property: \"area_sq_km\", postfix: \" km2\" },\n ],\n \"developed_area\",\n );\n};\n\n//有望エリア\nconst onEachFeature_promising_area = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"fclass\", property: \"fclass\" },\n { key: \"area_sq_km\", property: \"area_sq_km\", postfix: \" km2\" },\n ],\n \"promising_area\",\n );\n};\n\n//発電所\nconst onEachFeature_power_plant = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"Name\", property: \"name\" },\n { key: \"Type\", property: \"type\" },\n { key: \"Capacity\", property: \"capacity\" },\n { key: \"Status\", property: \"status\" },\n { key: \"Source\", property: \"source\" },\n ],\n \"power_plant\",\n );\n};\n\n//変電所\nconst onEachFeature_substations = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"Name\", property: \"name\" },\n { key: \"Voltage\", property: \"voltage\" },\n { key: \"Status\", property: \"status\" },\n { key: \"Source\", property: \"source\" },\n ],\n \"substations\",\n );\n};\n\n//送電線\nconst onEachFeature_transmission_lines = (feature, layer) => {\n setInfoPanel(\n feature,\n layer,\n [\n { key: \"Voltage\", property: \"voltage\" },\n { key: \"Status\", property: \"status\" },\n { key: \"Source\", property: \"source\" },\n ],\n \"transmission_lines\",\n );\n};\n\nconst style_rank1 = function (feature) {\n if (!feature) return {};\n const rank = feature.properties.rank;\n const style = {\n color: \"#ffffff\",\n weight: 0,\n opacity: 1,\n fillOpacity: 0.95,\n };\n if (rank == 1) {\n style.fillColor = \"#e81515\";\n } else if (rank >= 2 && rank <= 4) {\n style.fillColor = \"#f76e29\";\n } else if (rank >= 5 && rank <= 9) {\n style.fillColor = \"#fcb344\";\n } else if (rank >= 10 && rank <= 16) {\n style.fillColor = \"#fafa64\";\n } else if (rank >= 17 && rank <= 25) {\n style.fillColor = \"#bfd48a\";\n } else if (rank >= 26 && rank <= 36) {\n style.fillColor = \"#99d4ca\";\n } else if (rank == 99) {\n style.fillColor = \"#2792c7\";\n }\n return style;\n};\n\nconst style_rank2 = function (feature) {\n if (!feature) return {};\n const irr = feature.properties.irr;\n const style = {\n color: \"#ffffff\",\n weight: 0,\n opacity: 1,\n fillOpacity: 0.95,\n };\n if (irr >= -11.1 && irr < -4.774605) {\n style.fillColor = \"#2792c7\";\n } else if (irr >= -4.774605 && irr < -2.868059) {\n style.fillColor = \"#68a7b3\";\n } else if (irr >= -2.868059 && irr < -1.197103) {\n style.fillColor = \"#95bd9f\";\n } else if (irr >= -1.197103 && irr < 3.52224) {\n style.fillColor = \"#bfd48a\";\n } else if (irr >= 3.52224 && irr < 7.583876) {\n style.fillColor = \"#e7ed71\";\n } else if (irr >= 7.583876 && irr < 8.871848) {\n style.fillColor = \"#fce45b\";\n } else if (irr >= 8.871848 && irr < 9.659224) {\n style.fillColor = \"#fcb344\";\n } else if (irr >= 9.659224 && irr < 10.552047) {\n style.fillColor = \"#fa8532\";\n } else if (irr >= 10.552047 && irr < 11.447951) {\n style.fillColor = \"#f25622\";\n } else if (irr >= 11.447951 && irr < 13.9) {\n style.fillColor = \"#e81014\";\n }\n return style;\n};\n\nconst style_developed_area = function (feature) {\n return {\n fillColor: \"#FF5500\",\n fillOpacity: 0.4,\n color: \"#fff\",\n weight: 3,\n opacity: 0.65,\n };\n};\n\nconst style_promising_area = function (feature) {\n return {\n fillColor: \"#FFFF73\",\n fillOpacity: 0.4,\n color: \"#fff\",\n weight: 3,\n opacity: 0.65,\n };\n};\n\nconst style_roi = function (feature) {\n return {\n color: \"#d7d7d7\",\n weight: 3,\n lineJoin: \"bevel\",\n dashArray: [10, 10],\n fill: false,\n };\n};\n\nconst style_power_plant = function (feature) {\n const style = {\n fillOpacity: 0.95,\n weight: 2,\n opacity: 1.0,\n \"pointer-events\": \"none\",\n };\n if (\n !feature ||\n feature.properties.source === \"Uzbekistan Transmission System Map by 2030\"\n ) {\n style.fillColor = \"#C47574\";\n style.color = \"#dddddd\";\n } else {\n style.fillColor = \"#c12421\";\n style.color = \"#fff\";\n }\n\n return style;\n};\n\nconst style_substations = function (feature) {\n const style = {\n fillColor: \"#737300\",\n fillOpacity: 0.95,\n weight: 2,\n opacity: 1.0,\n \"pointer-events\": \"none\",\n };\n if (\n !feature ||\n feature.properties.source === \"Uzbekistan Transmission System Map by 2030\"\n ) {\n style.fillColor = \"#B3B37D\";\n style.color = \"#dddddd\";\n } else {\n style.fillColor = \"#737300\";\n style.color = \"#fff\";\n }\n return style;\n};\n\nconst style_transmission_lines = function (feature) {\n const style = {\n interactive: true,\n fill: false,\n color: \"#a8a800\",\n weight: 3,\n opacity: 1.0,\n };\n if (\n !feature ||\n feature.properties.source === \"Uzbekistan Transmission System Map by 2030\"\n ) {\n style.color = \"#c5c500\";\n } else {\n style.color = \"#f7f700\";\n }\n return style;\n};\n\nconst pointToLayer_rank1 = function (feature, latlng) {\n return L.circle(latlng, 2000);\n};\n\nconst pointToLayer_rank2 = function (feature, latlng) {\n return L.circle(latlng, 2000);\n};\n\nconst pointToLayer_power_plant = (feature, latlng) => {\n return L.circleMarker(latlng, {\n radius: 5,\n fillColor: \"#c43c39\",\n color: \"#fff\",\n weight: 2,\n opacity: 1,\n fillOpacity: 0.95,\n });\n};\n\nconst pointToLayer_substations = (feature, latlng) => {\n return L.circleMarker(latlng, {\n radius: 5,\n fillColor: \"#737300\",\n fillOpacity: 0.95,\n color: \"#fff\",\n weight: 2,\n opacity: 1,\n });\n};\n\n// import \"@/leaflet-plugins/L.SLDStyler.js\";\n// const rank1SLDStyler = new L.SLDStyler(sld_rk_dist_rd_tl);\n// const rank1Style = rank1SLDStyler.getStyleFunction();\n\nconst geoJsonOptions = {\n rank1: {\n interactive: false,\n onEachFeature: onEachFeature_rank1,\n pointToLayer: pointToLayer_rank1,\n style: style_rank1,\n },\n rank2: {\n interactive: false,\n onEachFeature: onEachFeature_rank2,\n pointToLayer: pointToLayer_rank2,\n style: style_rank2,\n },\n roi: {\n onEachFeature: onEachFeature_roi,\n style: style_roi,\n },\n developed_area: {\n onEachFeature: onEachFeature_developed_area,\n style: style_developed_area,\n },\n promising_area: {\n onEachFeature: onEachFeature_promising_area,\n style: style_promising_area,\n },\n power_plant: {\n onEachFeature: onEachFeature_power_plant,\n pointToLayer: pointToLayer_power_plant,\n // onEachFeature: onEachFeature_area,\n style: style_power_plant,\n },\n substations: {\n onEachFeature: onEachFeature_substations,\n pointToLayer: pointToLayer_substations,\n // onEachFeature: onEachFeature_area,\n style: style_substations,\n },\n transmission_lines: {\n onEachFeature: onEachFeature_transmission_lines,\n interactive: false,\n style: style_transmission_lines,\n },\n};\n\nfunction setInfoName(layer) {\n infoName[layer.id] = { en: layer.labelEn, jp: layer.label };\n}\n\nexport default { geoJsonOptions, setInfoName };\n"],"sourceRoot":""}