import{_ as ge,r as g,H as V,z as me,Z as I,d as _,o as E,c as $,l as o,m as A,e as c,w as W,F as fe,A as he,f as be,k as ye,x as q,y as ve,p as xe,q as Ce}from"./index.b3c890dc.js";import z from"./downloads.e955445d.js";import{g as _e,a as Se,b as we,c as Me,_ as ke,d as De,e as Le,f as Ae,h as Be,i as ze}from"./classify.0fc28e56.js";import{i as S,L as w}from"./index.b2678f26.js";import{u as B,T as Te}from"./useEcharts.5be8131e.js";const m=M=>(xe("data-v-3566c652"),M=M(),Ce(),M),Ie={class:"center"},Ee=m(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),We={class:"leftWra"},Re={class:"leftTop"},Pe={class:"title"},Fe=m(()=>o("span",null,"\u79CD\u690D\u9762\u79EF\u65F6\u95F4\u7EDF\u8BA1",-1)),je=m(()=>o("img",{src:z,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ze={class:"leftbottom"},Oe={class:"title"},Ge=m(()=>o("span",null,"\u79CD\u690D\u9762\u79EF\u7EDF\u8BA1",-1)),Xe=m(()=>o("img",{src:z,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Ne={class:"tableDiv"},Je={class:"rightWra"},Ve={class:"rightTop"},$e={class:"title"},qe=m(()=>o("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u9AD8\u6807\u51C6\u519C\u7530",-1)),He=m(()=>o("img",{src:z,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Qe={class:"rightbottom"},Ue={class:"title"},Ye=m(()=>o("span",null,"\u4F5C\u7269\u7C7B\u578B\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),Ke=m(()=>o("img",{src:z,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),et={class:"legend"},tt=m(()=>o("p",null,"\u56FE\u4F8B",-1)),ot={class:"mt-4"},at={class:"bottom_center"},st=ve('
',1),rt={id:"popup"},lt={__name:"index",setup(M){let l=g(null);const R=g(null),P=g(null),F=g(null),j=g(null),Z=g(null),v=g(""),O=g(null);let x=V({arr:[],brr:[],crr:[]});V({arr:[]});const f=g({name:"",value:""}),T=g([]);var h={title:[],corn:["333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333],soybean:["333","333","333",333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333],peanut:["333",null,null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333],wheat:["333","333","333",333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333,"333","333",null,333,333.3,null,333.3,333]};const H=()=>{console.log(T.value)},Q=[{date:"\u5C0F\u9EA6",name:"12364\u4EA9",address:"35%"},{date:"\u7389\u7C73",name:"6823\u4EA9",address:"20%"},{date:"\u5927\u8C46",name:"5682\u4EA9",address:"15%"},{date:"\u5730\u74DC",name:"8964\u4EA9",address:"16%"},{date:"\u82B1\u751F",name:"3550\u4EA9",address:"14%"}];me(()=>{K(),te(),G(),ee(),Y(),re(),ie(),ne(),ce(),D(),le(),de(),ue()});const U={url:"http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=31091965e263284a501a723b8909f405",layer:"tdtCva",style:"default",format:"tiles",tileMatrixSetID:"c",subdomains:["t0","t1","t2","t3","t4","t5","t6","t7"],tilingScheme:new Cesium.GeographicTilingScheme,tileMatrixLabels:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],maximumLevel:18};Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c";function Y(){l=new Cesium.Viewer("cesiumContainer",{baseLayerPicker:!1,shouldAnimate:!0,infoBox:!1,animation:!1,timeline:!1,geocoder:!1,homeButton:!1,navigationHelpButton:!1,selectionIndicator:!1,fullscreenButton:!1,terrainProvider:new Cesium.EllipsoidTerrainProvider({}),sceneModePicker:!1,contextOptions:{webgl:{alpha:!0}},imageryProvider:new Cesium.WebMapTileServiceImageryProvider({...U})});let t=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_town",parameters:{service:"WMS",format:"image/png",transparent:!0}});l.imageryLayers.addImageryProvider(t),l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2})}const K=()=>{_e({time:"2023-04-19",subregion:"0",parent:"\u9EC4\u5C9B\u533A"}).then(t=>{console.log(t)})},G=()=>{Se().then(t=>{x.arr=t.features,x.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let e=[...t.features],r=[];e.splice(0,1),e.forEach(a=>{r.push(a.properties.XZMC)}),h.title=[...Object.values(r)],D()})},ee=()=>{we().then(t=>{x.brr=t.features})},te=()=>{Me().then(t=>{x.crr=t.features})},oe=()=>{console.log(v.value),v.value=="370211"&&G(),[...x.arr].forEach(a=>{a.properties.XZDM==v.value&&l.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(a.bbox[0],a.bbox[1],a.bbox[2],a.bbox[3]),duration:2});let i=[...x.brr],d=[];i.forEach(n=>{n.properties.XZDM==v.value&&d.push(n.properties.XZQMC)}),h.title=[...Object.values(d)],D()});const e=l.imageryLayers._layers;for(let a=e.length-1;a>=0;a--)e[a]._imageryProvider.aaa==="aaa"&&l.imageryLayers.remove(e[a]);let r=new Cesium.WebMapServiceImageryProvider({url:"http://121.36.229.60:9080/geoserver/shuzisannong/wms",layers:"shuzisannong:huangdaoqu_village",parameters:{service:"WMS",format:"image/png",transparent:!0,CQL_FILTER:`XZDM=${v.value}`}});r.aaa="aaa",l.imageryLayers.addImageryProvider(r)};ae();function ae(){I({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("rrr:",t);const e=t.data.features;let r=e.map(a=>(console.log(a),a.properties.XZMC));console.log("name:",r),I({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=136&outputFormat=application%2Fjson"}).then(a=>{console.log("aaaaa:",a);let i=a.data.features,d={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};r.forEach(n=>{const u=i.map(s=>{if(s.properties.town===n)return s.properties});console.log("town:",u),Object.keys(d).forEach(s=>{const p=u.findIndex(C=>C&&C.crop===s);p>-1?d[s].push(u[p].Shape_Area):d[s].push(null)})}),console.log("dd:",d),e.corn=d.\u7389\u7C73,D()})})}const k=t=>{se(t)},se=t=>{let e=document.createElement("a");e.style.display="none",e.href=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)};function re(){const t=["2023/01/06","2023/02/06","2023/03/06","2023/04/06","2023/05/06","2023/06/06","2023/07/06","2023/08/06","2023/09/06"],e=S(R.value);var r={textStyle:{fontFamily:"Din-Light"},color:["#123dac","#73e2e2","#ff7e85","#9b52ff","#fac524","#46caff","#a1e867","#10b2b2","#ec87f7","#f4905a","#00baba","#facf24","#e89d67","#23c6c6","#fa8699","#40b7fc","#006d75","#595959","#f4764f","#a640fc","#fda23f","#2d7ae4","#5092ff","#9351ed","#8a89fe","#df89e8","#2797ff","#6ad089","#7c92e8 "],title:{text:"",left:"47%",textStyle:{fontSize:24}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(0, 255, 233,0)"},{offset:.5,color:"rgba(255, 255, 255,1)"},{offset:1,color:"rgba(0, 255, 233,0)"}],global:!1}}}},grid:{left:60,right:10,top:50,bottom:50},xAxis:{type:"category",boundaryGap:!1,data:t,axisLabel:{color:"rgba(255,255,255,0.7)",formatter:(a,i)=>i===0||i===t.length-1?"":a},axisLine:{show:!1},axisTick:{show:!1}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",axisLabel:{color:"rgba(255,255,255,0.7)"},splitLine:{lineStyle:{type:"dashed"}},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},series:[{name:"\u5927\u8C46",data:[1200,1700,1340,2460,2790,211,124,131,124,360,124,78,160,604,17,0,0,0,2,8,0,0,0,0,0,0,0,0,0,0,0],type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{shadowColor:"rgba(18,61,172,0.5)",shadowBlur:10}},{name:"\u5C0F\u9EA6",data:[2200,1790,2494,3130,2710,3180,2350,3410,51,146,31,41,61,485,5,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0],type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{shadowColor:"rgba(115,226,226,0.5)",shadowBlur:10}},{name:"\u5730\u74DC",data:[2800,1740,3450,2340,2710,1430,3232,42,42,115,41,33,64,312,4,0,0,0,3,4,0,0,0,0,0,0,0,0,0,0,0],type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{shadowColor:"rgba(255,126,133,0.5)",shadowBlur:10}},{name:"\u82B1\u751F",data:[3500,1400,2342,1299,3420,2233,2321,42,42,115,41,33,64,312,4,0,0,0,3,4,0,0,0,0,0,0,0,0,0,0,0],type:"line",smooth:!0,smoothMonotone:"x",cursor:"pointer",showSymbol:!1,lineStyle:{shadowColor:"rgba(255,120,168,0.5)",shadowBlur:10}}]};r&&e.setOption(r),window.addEventListener("resize",function(){e.resize()})}function le(){const t=S(O.value);var e={grid:{top:0,bottom:0,left:"10%",right:"10%"},xAxis:{show:!1,type:"value",boundaryGap:[0,0]},yAxis:[{type:"category",data:[""],axisLine:{show:!1},axisTick:[{show:!1}]}],series:[{name:"\u91D1\u989D",type:"bar",zlevel:1,itemStyle:{normal:{barBorderRadius:30,color:new w(1,0,0,1,[{offset:1,color:"rgba(7,99,84,0.95) "},{offset:0,color:"rgba(71,179,161,0.95)"}])}},barWidth:20,data:[10]},{name:"\u80CC\u666F",type:"bar",barWidth:20,barGap:"-100%",data:[20],itemStyle:{normal:{color:"rgba(255, 255, 255, 0.2)",barBorderRadius:50}}}]};e&&t.setOption(e,!0)}function ie(){const t=S(P.value);var e={title:[{text:"\u603B\u9762\u79EF",x:"center",top:"32%",textStyle:{color:"rgba(255,255,255,1)",fontSize:14,fontWeight:"400"}},{text:"123459\u4EA9",x:"center",top:"50%",textStyle:{fontSize:18,color:"rgba(255, 213, 88, 1)",foontWeight:"400"}}],tooltip:{trigger:"item",formatter:"{a}
{b}: {c} ({d}%)"},color:["rgba(212,236,89,0.8)","rgba(102,142,214,0.8)","rgba(156,220,130,0.8)","rgba(255,225,104,0.8)"],legend:{selectedMode:!0,type:"plain",orient:"vertical",left:"85%",top:"center",align:"left",itemGap:20,itemWidth:12,itemHeight:7,symbolKeepAspect:!1,textStyle:{color:"rgba(255,255,255,0.7)",rich:{name:{verticalAlign:"right",align:"left",width:90,fontSize:18,color:"#D8DDE3"},value:{align:"left",width:50,fontSize:18,color:"#D8DDE3"}}}},series:[{name:"\u5360\u6BD4",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!0,label:{normal:{show:!1,position:"left",textStyle:{color:"rgba(41,255,219,1)"}},emphasis:{show:!0,textStyle:{fontSize:"30",fontWeight:"bold"}}},labelLine:{show:!0,normal:{show:!0}},data:[{value:25,name:"\u5C0F\u9EA6"},{value:25,name:"\u7389\u7C73"},{value:25,name:"\u5927\u8C46"},{value:25,name:"\u5730\u74DC"},{value:25,name:"\u82B1\u751F"}]}]};B(t,e)}function ne(){const t=S(F.value);var e={title:{text:"",subtext:""},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"15%",left:"16%",bottom:"19%"},xAxis:{type:"category",data:["\u533A\u57DF\u4E00","\u533A\u57DF\u4E8C","\u533A\u57DF\u4E09","\u533A\u57DF\u56DB","\u533A\u57DF\u4E94"],axisLine:{lineStyle:{color:"#C0C4CC",width:1}},axisTick:{show:!1},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}},yAxis:{name:"\u9762\u79EF(\u4EA9)",nameTextStyle:{color:"rgba(255, 255, 255, 0.8)",fontSize:14},type:"value",splitLine:{lineStyle:{color:"rgba(192,196,204,1)",type:"dashed"}},axisLabel:{margin:10,color:"rgba(255, 255, 255, 0.7)",textStyle:{fontSize:14}}},series:[{name:"\u5C0F\u9EA6",type:"bar",barWidth:14,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new w(0,0,0,1,[{offset:0,color:"rgba(102, 142, 214, 0.8)"},{offset:1,color:"rgba(102, 142, 214, 0.8)"}])}}},{name:"\u7389\u7C73",type:"bar",barWidth:30,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new w(0,0,0,1,[{offset:0,color:"rgba(255, 225, 104, 0.8)"},{offset:1,color:"rgba(255, 225, 104, 0.8)"}])}}},{name:"\u5927\u8C46",type:"bar",barWidth:30,stack:"\u6570\u91CF",data:[1666,1666,1666,1666,1666],itemStyle:{normal:{color:new w(0,0,0,1,[{offset:0,color:"rgba(209, 91, 127, 0.8)"},{offset:1,color:"rgba(209, 91, 127, 0.8)"}])}}}]};e&&t.setOption(e,{notMerge:!0,grid:{bottom:20}}),B(t,e)}function ce(){const t=S(j.value);var e={grid:{top:0,bottom:0,left:"10%",right:"10%"},xAxis:{show:!1,type:"value",boundaryGap:[0,0]},yAxis:[{type:"category",data:[""],axisLine:{show:!1},axisTick:[{show:!1}]}],series:[{name:"\u91D1\u989D",type:"bar",zlevel:1,itemStyle:{normal:{barBorderRadius:30,color:new w(1,0,0,1,[{offset:1,color:"rgba(7,99,84,0.95) "},{offset:0,color:"rgba(71,179,161,0.95)"}])}},barWidth:20,data:[10]},{name:"\u80CC\u666F",type:"bar",barWidth:20,barGap:"-100%",data:[20],itemStyle:{normal:{color:"rgba(255, 255, 255, 0.2)",barBorderRadius:50}}}]};B(t,e)}function D(){const t=S(Z.value);var e={grid:{bottom:"8%",left:"10%",right:"6%",top:"6%",containLabel:!0},dataZoom:[{type:"inside",show:!0,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:80,startValue:0,endValue:4,handleIcon:"M-292,322.2c-3.2,0-6.4-0.6-9.3-1.9c-2.9-1.2-5.4-2.9-7.6-5.1s-3.9-4.8-5.1-7.6c-1.3-3-1.9-6.1-1.9-9.3c0-3.2,0.6-6.4,1.9-9.3c1.2-2.9,2.9-5.4,5.1-7.6s4.8-3.9,7.6-5.1c3-1.3,6.1-1.9,9.3-1.9c3.2,0,6.4,0.6,9.3,1.9c2.9,1.2,5.4,2.9,7.6,5.1s3.9,4.8,5.1,7.6c1.3,3,1.9,6.1,1.9,9.3c0,3.2-0.6,6.4-1.9,9.3c-1.2,2.9-2.9,5.4-5.1,7.6s-4.8,3.9-7.6,5.1C-285.6,321.5-288.8,322.2-292,322.2z",handleSize:"100%",handleStyle:{color:"#DBDBDB",height:"100%"},backgroundColor:"transparent",fillerColor:"#DBDBDB",textStyle:{color:"transparent"},dataBackground:{lineStyle:{color:"transparent"},areaStyle:{color:"transparent"}},borderColor:"transparent"}],xAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{type:"category",axisTick:{show:!1},axisLine:{show:!1,lineStyle:{color:"#cdd3ee"}},splitLine:{show:!1},axisLabel:{show:!0,fontSize:12,color:"rgba(255, 255, 255, 1)",formatter:"{value}"},data:h.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"#fdad3c"},data:h.corn},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(156, 220, 130, 0.8)"},data:h.soybean},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(212, 236, 89, 0.8)"},data:h.peanut},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(102, 142, 214, 0.8)"},data:h.wheat},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!0,position:"inside",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{color:"rgba(50, 211, 235, 0.8)"},data:h.Blueberries}]};B(t,e)}function de(){let t={\u5C0F\u9EA6:"rgba(102,\xA0142,\xA0214,\xA00.8)",\u7389\u7C73:"rgba(255,\xA0225,\xA0104,\xA00.8)",\u5927\u8C46:"rgba(156,\xA0220,\xA0130,\xA00.8)",\u5730\u74DC:"rgba(156,\xA0220,\xA0130,\xA00.8)",\u82B1\u751F:"rgba(212,\xA0236,\xA089,\xA00.8)",\u84DD\u8393:"rgba(50,\xA0211,\xA0235,\xA00.8)",\u8336\u53F6:"rgba(91,\xA0196,\xA0159,\xA00.8)",\u9A6C\u94C3\u85AF:"rgba(254,\xA0182,\xA077,\xA00.8)",\u767D\u83DC\u548C\u841D\u535C:"rgba(250,\xA0129,\xA0109,\xA00.8)",\u5176\u4ED6:"rgba(250,\xA0129,\xA0109,\xA00.8)"};I({url:"http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(e=>{console.log("res:",e);let r=e.data.features,a=Object.keys(t);r.forEach((i,d)=>{const n=Cesium.Rectangle.fromDegrees(i.bbox[0],i.bbox[1],i.bbox[2],i.bbox[3]),u=Cesium.Rectangle.center(n);let s=Cesium.Math.toDegrees(u.longitude),p=Cesium.Math.toDegrees(u.latitude);if(i.properties.XZDM==="370211011"){let b=a[Math.floor(Math.random()*a.length)],y=L(2e3,500);s=120.0863,p=35.941,l.entities.add({position:Cesium.Cartesian3.fromDegrees(s+.01,p+.01),ellipse:{semiMinorAxis:400,semiMajorAxis:400,height:y,extrudedHeight:0,rotation:Cesium.Math.toRadians(60),stRotation:Cesium.Math.toRadians(60),fill:!0,material:Cesium.Color.fromCssColorString(`${t[b]}`),outline:!1,outlineColor:Cesium.Color.fromCssColorString("rgba(255,255,0,1)")},info:{name:b,value:y}})}else if(i.properties.XZDM==="370211003"){s=120.243682,p=35.97123201;let b=a[Math.floor(Math.random()*a.length)],y=L(300,5e3);l.entities.add({position:Cesium.Cartesian3.fromDegrees(s+.01,p+.01),ellipse:{semiMinorAxis:400,semiMajorAxis:400,height:y,extrudedHeight:0,rotation:Cesium.Math.toRadians(60),stRotation:Cesium.Math.toRadians(60),fill:!0,material:Cesium.Color.fromCssColorString(`${t[b]}`),outline:!1,outlineColor:Cesium.Color.fromCssColorString("rgba(255,255,0,1)")},info:{name:b,value:y}})}else if(d%2===0){let b=a[Math.floor(Math.random()*a.length)],y=L(100,500);l.entities.add({position:Cesium.Cartesian3.fromDegrees(s+.01,p+.01),ellipse:{semiMinorAxis:400,semiMajorAxis:400,height:y,extrudedHeight:0,rotation:Cesium.Math.toRadians(60),stRotation:Cesium.Math.toRadians(60),fill:!0,material:Cesium.Color.fromCssColorString(`${t[b]}`),outline:!1,outlineColor:Cesium.Color.fromCssColorString("rgba(255,255,0,1)")},info:{name:b,value:y}})}let C=a[Math.floor(Math.random()*a.length)],J=L(1e3,5e3);l.entities.add({position:Cesium.Cartesian3.fromDegrees(s,p),ellipse:{semiMinorAxis:400,semiMajorAxis:400,height:J,extrudedHeight:0,rotation:Cesium.Math.toRadians(60),stRotation:Cesium.Math.toRadians(60),fill:!0,material:Cesium.Color.fromCssColorString(`${t[C]}`),outline:!1,outlineColor:Cesium.Color.fromCssColorString("rgba(255,255,0,1)")},info:{name:C,value:J}}),l.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(119.9091,35.0991,55e3),duration:2,orientation:{pitch:Cesium.Math.toRadians(-30),roll:0}})})}).catch(e=>{})}function X(){if(console.log("clickInfoMap.value:",f.value),f.value&&f.value.lon&&f.value.lat){const e=Cesium.Cartesian3.fromDegrees(Number(f.value.lon),Number(f.value.lat),0);var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(l.scene,e);if(Cesium.defined(t)){const r=document.getElementById("popup");r.style.top=t.y-10+"px",r.style.left=t.x+10+"px"}}}function ue(){l.screenSpaceEventHandler.setInputAction(function(t){const e=l.camera.pickEllipsoid(t.position,l.scene.globe.ellipsoid);if(Cesium.defined(e)){let i=l.scene.pick(t.position);if(l.scene.drillPick(t.position),i&&i.id&&i.id.info){console.log("pick:",i);const d=i.id.info;console.log("data:",d);const n=t.position;var r=l.scene.globe.ellipsoid,a=l.camera.pickEllipsoid(n,r);let u={...d};if(a){let s=r.cartesianToCartographic(a),p=Cesium.Math.toDegrees(s.longitude).toFixed(6),C=Cesium.Math.toDegrees(s.latitude).toFixed(6);console.log("longitudeString:",p),u.lon=p,u.lat=C,console.log("data:",u),f.value=u}pe(n),l.scene.postRender.addEventListener(X)}else N()}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}function N(){const t=document.getElementById("popup");t.style.display="none",l.scene.postRender.removeEventListener(X)}function pe(t){const e=document.getElementById("popup");e.style.display="flex",e.style.position="absolute",e.style.top=t.y-10+"px",e.style.left=t.x+10+"px",e.style.zIndex=99}function L(t,e){return Math.floor(Math.random()*(e-t))+t}return(t,e)=>{const r=_("el-table-column"),a=_("el-table"),i=_("el-option"),d=_("el-select"),n=_("el-checkbox"),u=_("el-checkbox-group");return E(),$("div",Ie,[Ee,o("div",We,[o("div",Re,[o("div",Pe,[Fe,o("p",{onClick:e[0]||(e[0]=s=>k("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[A(" \u4E0B\u8F7D \xA0 "),je])]),o("div",{ref_key:"areaDiv",ref:R,class:"areaDiv"},null,512),o("div",{ref_key:"leftProgressBarDiv",ref:O,class:"ProgressBar"},null,512)]),o("div",Ze,[o("div",Oe,[Ge,o("p",{onClick:e[1]||(e[1]=s=>k("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[A(" \u4E0B\u8F7D \xA0 "),Xe])]),o("div",{ref_key:"typesofDiv",ref:P,class:"typesofDiv"},null,512),o("div",Ne,[c(a,{"max-height":"200",class:"ones",data:Q,style:{width:"415px"}},{default:W(()=>[c(r,{prop:"date",label:"\u7C7B\u578B"}),c(r,{prop:"name",label:"\u9762\u79EF"}),c(r,{prop:"address",label:"\u5360\u6BD4"})]),_:1})])])]),o("div",Je,[o("div",Ve,[o("div",$e,[qe,o("p",{onClick:e[2]||(e[2]=s=>k("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/81f3b011-7a5d-4a21-88aa-8ea51142e564_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[A(" \u4E0B\u8F7D \xA0 "),He])]),o("div",{ref_key:"farmlandDiv",ref:F,class:"farmlandDiv"},null,512),o("div",{ref_key:"ProgressBarDiv",ref:j,class:"ProgressBar"},null,512)]),o("div",Qe,[o("div",Ue,[Ye,o("p",{onClick:e[3]||(e[3]=s=>k("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/0c0ff4cf-151a-470e-856a-b0fce0fde997_%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%87%BA.xlsx"))},[A(" \u4E0B\u8F7D \xA0 "),Ke])]),c(d,{onChange:e[4]||(e[4]=s=>oe(t.item)),modelValue:v.value,"onUpdate:modelValue":e[5]||(e[5]=s=>v.value=s),clearable:"",placeholder:"\u5168\u90E8"},{default:W(()=>[(E(!0),$(fe,null,he(be(x).arr,s=>(E(),ye(i,{key:s.properties.XZDM,label:s.properties.XZMC,value:s.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o("div",{ref_key:"ASdivisionDiv",ref:Z,class:"ASdivision"},null,512)])]),o("div",et,[tt,o("div",ot,[c(u,{onChange:e[6]||(e[6]=s=>H()),modelValue:T.value,"onUpdate:modelValue":e[7]||(e[7]=s=>T.value=s)},{default:W(()=>[c(n,{checked:"",style:{background:"rgba(102, 142, 214, 0.8)",border:"1px solid rgba(102, 142, 214, 1)"},label:"\u5C0F\u9EA6"}),c(n,{checked:"",style:{background:"rgba(255, 225, 104, 0.8)",border:"1px solid rgba(255, 225, 104, 1)"},label:"\u7389\u7C73"}),c(n,{checked:"",style:{background:"rgba(156, 220, 130, 0.8)",border:"1px solid rgba(156, 220, 130, 1)"},label:"\u5927\u8C46"}),c(n,{checked:"",style:{background:"rgba(209, 91, 127, 0.8)",border:"1px solid rgba(209, 91, 127, 1)"},label:"\u5730\u74DC"}),c(n,{checked:"",style:{background:"rgba(212, 236, 89, 0.8)",border:"1px solid rgba(212, 236, 89, 1)"},label:"\u82B1\u751F"}),c(n,{checked:"",style:{background:"rgba(50, 211, 235, 0.8)",border:"1px solid rgba(50, 211, 235, 1)"},label:"\u84DD\u8393"}),c(n,{checked:"",style:{background:"rgba(91, 196, 159, 0.8)",border:"1px solid rgba(91, 196, 159, 1)"},label:"\u8336\u53F6"}),c(n,{checked:"",style:{background:"rgba(254, 182, 77, 0.8)",border:"1px solid rgba(254, 182, 77, 1)"},label:"\u9A6C\u94C3\u85AF"}),c(n,{checked:"",style:{background:"rgba(250, 129, 109, 0.8)",border:"1px solid rgba(250, 129, 109, 1)"},label:"\u767D\u83DC\u548C\u841D\u535C"})]),_:1},8,["modelValue"])])]),o("div",at,[c(Te)]),st,o("div",rt,[o("div",null,q(f.value.name)+"\uFF1A",1),o("div",null,q(f.value.value)+"\u4EA9",1),o("div",{class:"cancel",onClick:N},"X")])])}}},pt=ge(lt,[["__scopeId","data-v-3566c652"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/area/index.vue"]]);export{pt as default};