{"version":3,"sources":["webpack:///./src/projectModules/geoJsonOptions/football-akita-geoJsonOptions.js"],"names":["geoJsonOptions","adminarea1","style","feature","fillColor","fillOpacity","color","weight","onEachFeature","layer","on","store","commit","adminarea2","landuse","fill","stroke","properties","fp","info","key","value","toFixed","title","soccerfield"],"mappings":"iJAEMA,EAAiB,CACrBC,WAAY,CACVC,MAAO,SAAUC,GACf,MAAO,CACLC,UAAW,UACXC,YAAa,GACbC,MAAO,UACPC,OAAQ,IAIZC,cAAe,SAAUL,EAASM,GAChCA,EAAMC,GAAG,aAAa,WACpBC,OAAMC,OAAO,sBAAsB,GACnCD,OAAMC,OAAO,mBAAoBT,MAEnCM,EAAMC,GAAG,YAAY,WACnBC,OAAMC,OAAO,sBAAsB,QAKzCC,WAAY,CACVX,MAAO,SAACC,GACN,MAAO,CACLC,UAAW,UACXC,YAAa,GACbC,MAAO,UACPC,OAAQ,IAGZC,cAAe,SAAUL,EAASM,GAChCA,EAAMC,GAAG,aAAa,WACpBC,OAAMC,OAAO,sBAAsB,GACnCD,OAAMC,OAAO,mBAAoBT,MAEnCM,EAAMC,GAAG,YAAY,WACnBC,OAAMC,OAAO,sBAAsB,QAKzCE,QAAS,CACPZ,MAAO,SAAUC,GACf,IAAIY,EAAO,UACPC,EAAS,UAKb,MAJgC,MAA5Bb,EAAQc,WAAW,QACrBF,EAAO,UACPC,EAAS,WAEJ,CACLZ,UAAWW,EACXV,YAAa,GACbC,MAAOU,EACPT,OAAQ,IAIZC,cAAe,SAAUL,EAASM,GAChC,GAAKN,EAAQc,WAAb,CACA,IAAMC,EAAKf,EAAQc,WACbE,EAAO,CACX,CACEC,IAAK,MACLC,MAAOH,EAAG,QAEZ,CACEE,IAAK,OACLC,MAAOH,EAAG,OAEZ,CACEE,IAAK,KACLC,MAAOH,EAAG,WAAWI,QAAQ,GAAK,OAEpC,CACEF,IAAK,KACLC,MAAOH,EAAG,QAAQI,QAAQ,GAAK,MAEjC,CACEF,IAAK,QACLC,MAAQ,WACN,OAAiB,GAAbH,EAAG,OAAoB,KACL,GAAbA,EAAG,OAAoB,IACpB,GAHN,KAOZT,EAAMC,GAAG,aAAa,WACpBC,OAAMC,OAAO,sBAAsB,GACnCD,OAAMC,OAAO,mBAAoB,CAC/BO,KAAMA,EACNI,MAAO,aAGXd,EAAMC,GAAG,YAAY,WACnBC,OAAMC,OAAO,sBAAsB,SAKzCY,YAAa,CACXtB,MAAO,SAACC,GACN,MAAO,CACLC,UAAW,UACXC,YAAa,GACbC,MAAO,UACPC,OAAQ,IAGZC,cAAe,SAAUL,EAASM,GAChC,GAAKN,EAAQc,WAAb,CACA,IAAMC,EAAKf,EAAQc,WACbE,EAAO,CACX,CACEC,IAAK,MACLC,MAAOH,EAAG,aAEZ,CACEE,IAAK,QACLC,MAAQ,WACN,OAAkB,GAAdH,EAAG,QACE,cACgB,GAAdA,EAAG,QACL,mBADF,EAHD,IAQV,CACEE,IAAK,KACLC,MAAOH,EAAG,cAAcI,QAAQ,GAAK,OAEvC,CACEF,IAAK,KACLC,MAAOH,EAAG,cAAcI,QAAQ,GAAK,OAGzCb,EAAMC,GAAG,aAAa,WACpBC,OAAMC,OAAO,sBAAsB,GACnCD,OAAMC,OAAO,mBAAoB,CAC/BO,KAAMA,EACNI,MAAO,gBAGXd,EAAMC,GAAG,YAAY,WACnBC,OAAMC,OAAO,sBAAsB,UAM5BZ","file":"chunk-2d0e66f2.56704606ec8b39b8a9be.js","sourcesContent":["import store from \"@/store/index.js\";\n\nconst geoJsonOptions = {\n adminarea1: {\n style: function (feature) {\n return {\n fillColor: \"#0000cc\",\n fillOpacity: 0.5,\n color: \"#44aaff\",\n weight: 3,\n };\n },\n\n onEachFeature: function (feature, layer) {\n layer.on(\"mouseover\", function () {\n store.commit(\"setInfoPanelIsShow\", true);\n store.commit(\"setInfoPanelInfo\", feature);\n });\n layer.on(\"mouseout\", function () {\n store.commit(\"setInfoPanelIsShow\", false);\n });\n },\n },\n\n adminarea2: {\n style: (feature) => {\n return {\n fillColor: \"#0000cc\",\n fillOpacity: 0.5,\n color: \"#44aaff\",\n weight: 3,\n };\n },\n onEachFeature: function (feature, layer) {\n layer.on(\"mouseover\", function () {\n store.commit(\"setInfoPanelIsShow\", true);\n store.commit(\"setInfoPanelInfo\", feature);\n });\n layer.on(\"mouseout\", function () {\n store.commit(\"setInfoPanelIsShow\", false);\n });\n },\n },\n\n landuse: {\n style: function (feature) {\n let fill = \"#18ff18\";\n let stroke = \"#00cc00\";\n if (feature.properties[\"種別\"] == \"空地\") {\n fill = \"#44aaff\";\n stroke = \"#0000cc\";\n }\n return {\n fillColor: fill,\n fillOpacity: 0.2,\n color: stroke,\n weight: 1,\n };\n },\n\n onEachFeature: function (feature, layer) {\n if (!feature.properties) return;\n const fp = feature.properties;\n const info = [\n {\n key: \"所有地\",\n value: fp[\"所在地\"],\n },\n {\n key: \"土地種別\",\n value: fp[\"種別\"],\n },\n {\n key: \"面積\",\n value: fp[\"面積_sq_m\"].toFixed(2) + \" m2\",\n },\n {\n key: \"周長\",\n value: fp[\"周長_m\"].toFixed(2) + \" m\",\n },\n {\n key: \"傾斜等条件\",\n value: (function () {\n if (fp[\"flg\"] == 1) return \"不可\";\n else if (fp[\"flg\"] == 2) return \"可\";\n else return \"\";\n })(),\n },\n ];\n layer.on(\"mouseover\", function () {\n store.commit(\"setInfoPanelIsShow\", true);\n store.commit(\"setInfoPanelInfo\", {\n info: info,\n title: \"土地データ\",\n });\n });\n layer.on(\"mouseout\", function () {\n store.commit(\"setInfoPanelIsShow\", false);\n });\n },\n },\n\n soccerfield: {\n style: (feature) => {\n return {\n fillColor: \"#dd0000\",\n fillOpacity: 0.5,\n color: \"#ff44aa\",\n weight: 2,\n };\n },\n onEachFeature: function (feature, layer) {\n if (!feature.properties) return;\n const fp = feature.properties;\n const info = [\n {\n key: \"所有地\",\n value: fp[\"location\"],\n },\n {\n key: \"レイアウト\",\n value: (function () {\n if (fp[\"case\"] == 1) {\n return \"180m x 170m\";\n } else if (fp[\"case\"] == 2) {\n return \"230m x 130m\";\n }\n })(),\n },\n {\n key: \"面積\",\n value: fp[\"SHAPE_Area\"].toFixed(2) + \" m2\",\n },\n {\n key: \"周長\",\n value: fp[\"SHAPE_Leng\"].toFixed(2) + \" m\",\n },\n ];\n layer.on(\"mouseover\", function () {\n store.commit(\"setInfoPanelIsShow\", true);\n store.commit(\"setInfoPanelInfo\", {\n info: info,\n title: \"サッカー場候補地\",\n });\n });\n layer.on(\"mouseout\", function () {\n store.commit(\"setInfoPanelIsShow\", false);\n });\n },\n },\n};\n\nexport default geoJsonOptions;\n"],"sourceRoot":""}