{"version":3,"sources":["webpack:///./src/projectModules/geoJsonOptions/dojo-geoJsonOptions.js"],"names":["geoJsonOptions","dojo","style","feature","code","properties","color","soil","store","state","projectVariables","soilCode","find","data","rgb","fillColor","fillOpacity","weight","console","log","onEachFeature","layer","on","commit","info"],"mappings":"iLACMA,EAAiB,CACrBC,KAAM,CACJC,MAAO,SAAUC,GACf,IAAMC,EAAOD,EAAQE,WAAW,QAG5BC,GAFaH,EAAQE,WAAW,QAExB,sBAKNE,EAAOC,OAAMC,MAAMC,iBAAiBC,SAASC,MACjD,SAACC,GAAI,OAAKA,EAAKT,MAAQA,KAEzB,GAAIG,GAAQA,EAAKO,IACf,MAAO,CACLR,MAAOA,EACPS,UAAWR,EAAKO,IAChBE,YAAa,GACbC,OAAQ,GAGVC,QAAQC,IAAI,eAAiBf,IAIjCgB,cAAe,SAAUjB,EAASkB,GAChCA,EAAMC,GAAG,aAAa,WACpBd,OAAMe,OAAO,sBAAsB,GACnCf,OAAMe,OAAO,mBAAoB,CAAEC,KAAMrB,OAE3CkB,EAAMC,GAAG,YAAY,WACnBd,OAAMe,OAAO,sBAAsB,SAM5BvB","file":"chunk-2d0d735f.56704606ec8b39b8a9be.js","sourcesContent":["import store from \"@/store/index.js\";\nconst geoJsonOptions = {\n dojo: {\n style: function (feature) {\n const code = feature.properties[\"群コード\"];\n const category = feature.properties[\"地目区分\"];\n\n let color = \"rgba(0, 0, 0, 0.5)\";\n // if(category == \"樹園地\" ) color = \"rgb( 255, 255, 0)\";\n // else if\t(category == \"田\") color = \"rgb( 0, 0, 255)\" ;\n // else if (category == \"普通畑\")color = \"rgb( 0, 255, 0)\" ;\n // else if (category == \"牧草地\")color = \"rgb( 255, 255, 255)\";\n const soil = store.state.projectVariables.soilCode.find(\n (data) => data.code == code,\n );\n if (soil && soil.rgb) {\n return {\n color: color,\n fillColor: soil.rgb,\n fillOpacity: 0.8,\n weight: 0,\n };\n } else {\n console.log(\"cannot find \" + code);\n }\n },\n\n onEachFeature: function (feature, layer) {\n layer.on(\"mouseover\", function () {\n store.commit(\"setInfoPanelIsShow\", true);\n store.commit(\"setInfoPanelInfo\", { info: feature });\n });\n layer.on(\"mouseout\", function () {\n store.commit(\"setInfoPanelIsShow\", false);\n });\n },\n },\n};\n\nexport default geoJsonOptions;\n"],"sourceRoot":""}