{"version":3,"sources":["webpack:///./src/projectModules/e-gate-default/vtile-options.js"],"names":["vectorTileLayerStyles","potential","props","getLandCoverColor","potentialwpaddy","landcover","solarpower","zoom","radius","color","fill","fillColor","fillOpacity","road","weight","irrigation","vectorTileLayerEvent","eventType","event"],"mappings":"kHAAA,kHAOO,IAAMA,EAAwB,CAGnCC,UAAW,SAACC,GACV,OAAOC,EAAkBD,IAG3BE,gBAAiB,SAACF,GAChB,OAAOC,EAAkBD,IAG3BG,UAAW,SAACH,GACV,OAAOC,EAAkBD,IAG3BI,WAAY,SAACJ,EAAOK,GAClB,MAAO,CACLC,OAAQ,GACRC,MAAO,UACPC,MAAM,EACNC,UAAW,UACXC,YAAa,KAIjBC,KAAM,SAACX,EAAOK,GACZ,IAAIE,EAAQ,kBACU,SAAlBP,EAAM,QAAoBO,EAAQ,qBACX,SAAlBP,EAAM,QAAoBO,EAAQ,iBAChB,QAAlBP,EAAM,QAAmBO,EAAQ,qBACf,aAAlBP,EAAM,UAAwBO,EAAQ,oBAE/C,IAAIK,EAAS,EAGb,OAFIP,EAAO,KAAIO,EAAS,GAEjB,CACLL,QACAK,SACAJ,MAAM,IAIVK,WAAY,SAACb,EAAOK,GAClB,IAAIE,EAAQ,kBACU,YAAlBP,EAAM,QAAuBO,EAAQ,mBACd,SAAlBP,EAAM,UAAoBO,EAAQ,oBAE3C,IAAIK,EAAS,EAGb,OAFIP,EAAO,KAAIO,EAAS,GAEjB,CACLL,QACAK,SACAJ,MAAM,KAKZ,SAASP,EAAkBD,GACzB,IAAIS,EAAY,UAKhB,OAJoB,KAAhBT,EAAM,MAAcS,EAAY,mBACX,KAAhBT,EAAM,MAAcS,EAAY,qBAChB,KAAhBT,EAAM,MAAcS,EAAY,iBAChB,MAAhBT,EAAM,QAAeS,EAAY,oBACnC,CACLG,OAAQ,EACRJ,MAAM,EACND,MAAOE,EACPC,YAAa,IAIV,SAASI,EAAqBC,EAAWC","file":"chunk-2d0af517.56704606ec8b39b8a9be.js","sourcesContent":["/**\n *\n * @param {object} properties\n * @param {number} zoom\n * @returns {object} style\n * ref: https://leaflet.github.io/Leaflet.VectorGrid/vectorgrid-api-docs.html\n */\nexport const vectorTileLayerStyles = {\n /** このkey(mylayer)の部分は、TippecanoeでGeoJSONをベクタータイルを作成するときに指定するレイヤー名 */\n\n potential: (props) => {\n return getLandCoverColor(props);\n },\n\n potentialwpaddy: (props) => {\n return getLandCoverColor(props);\n },\n\n landcover: (props) => {\n return getLandCoverColor(props);\n },\n\n solarpower: (props, zoom) => {\n return {\n radius: 10,\n color: \"#ffff00\",\n fill: true,\n fillColor: \"#ffaa00\",\n fillOpacity: 0.9,\n };\n },\n\n road: (props, zoom) => {\n let color = \"rgb(50, 50, 50)\";\n if (props[\"type\"] === \"真幅道路\") color = \"rgb(120, 120, 120)\";\n else if (props[\"type\"] === \"庭園路等\") color = \"rgb(0, 255, 0)\";\n else if (props[\"type\"] === \"徒歩道\") color = \"rgb(255, 255, 100)\";\n else if (props[\"type\"] === \"トンネル内の道路\") color = \"rgb(255, 0, 120)\";\n\n let weight = 2;\n if (zoom < 15) weight = 1;\n\n return {\n color,\n weight,\n fill: false,\n };\n },\n\n irrigation: (props, zoom) => {\n let color = \"rgb(50, 50, 50)\";\n if (props[\"type\"] === \"水涯線(河川)\") color = \"rgb(0, 255, 255)\";\n else if (props[\"type\"] === \"一条河川\") color = \"rgb(0, 128, 255)\";\n\n let weight = 2;\n if (zoom < 15) weight = 1;\n\n return {\n color,\n weight,\n fill: false,\n };\n },\n};\n\nfunction getLandCoverColor(props) {\n let fillColor = \"#000000\";\n if (props[\"DN\"] === 10) fillColor = \"rgb(255, 255, 0)\";\n else if (props[\"DN\"] === 20) fillColor = \"rgb(255, 204, 153)\";\n else if (props[\"DN\"] === 50) fillColor = \"rgb(0, 170, 0)\";\n else if (props[\"DN\"] === 100) fillColor = \"rgb(200, 70, 15)\";\n return {\n weight: 0,\n fill: true,\n color: fillColor,\n fillOpacity: 0.8,\n };\n}\n\nexport function vectorTileLayerEvent(eventType, event) {}\n"],"sourceRoot":""}