import{_ as Ue,r as h,z as Y,A as $e,B as je,C as ie,d as A,o as W,c as Z,l as a,m as L,x as b,f as w,e as S,w as E,g as H,F as Se,D as Ce,k as De,y as Ge,p as Je,q as Ye}from"./index.276e09af.js";import ee from"./downloads.e955445d.js";import{_ as N}from"./crops.d314ada0.js";import{g as Me,a as He,b as Ke,c as et,u as ne,_ as tt,d as ot,e as at,f as rt,h as lt,i as st}from"./linesGL.4533f4ed.js";import{i as K,L as V}from"./index.c9f5bd8b.js";import{T as it}from"./TimeLine.0e1480e0.js";const _=O=>(Je("data-v-6a6af1d2"),O=O(),Ye(),O),nt={class:"center"},ct=_(()=>a("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),dt={class:"leftWra"},ut={class:"leftTop"},pt={class:"title"},ft=_(()=>a("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u7EDF\u8BA1",-1)),mt=_(()=>a("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),gt={class:"leftbottom"},vt={class:"title"},ht=_(()=>a("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u9762\u79EF\u5360\u6BD4",-1)),yt=_(()=>a("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),bt={class:"tableDiv"},_t={class:"Crops"},xt=_(()=>a("div",null,[a("img",{src:N,alt:""}),L(" \u597D \xA0\xA0 ")],-1)),wt={style:{color:"rgba(110, 209, 84, 1)"}},St={style:{color:"rgba(110, 209, 84, 1)"}},Ct={class:"Crops"},Dt=_(()=>a("div",null,[a("img",{src:N,alt:""}),L(" \u8F83\u597D ")],-1)),Mt={style:{color:"rgba(229, 205, 38, 1)"}},kt={style:{color:"rgba(229, 205, 38, 1)"}},It={class:"Crops"},Lt=_(()=>a("div",null,[a("img",{src:N,alt:""}),L(" \u9002\u4E2D ")],-1)),At={style:{color:"rgba(252, 169, 63, 1)"}},Bt={style:{color:"rgba(252, 169, 63, 1)"}},Pt={class:"Crops"},zt=_(()=>a("div",null,[a("img",{src:N,alt:""}),L(" \u8F83\u5DEE ")],-1)),Tt={style:{color:"rgba(103, 153, 242, 1)"}},Rt={style:{color:"rgba(103, 153, 242, 1)"}},Et={class:"Crops"},Wt=_(()=>a("div",null,[a("img",{src:N,alt:""}),L(" \u5DEE \xA0\xA0 ")],-1)),Ft={style:{color:"rgba(4, 179, 228, 1)"}},Xt={style:{color:"rgba(4, 179, 228, 1)"}},Zt={class:"rightWra"},Vt={class:"rightTop"},Nt={class:"title"},Ot=_(()=>a("span",null,"\u9AD8\u6807\u51C6\u519C\u7530\u7EDF\u8BA1-\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7",-1)),qt=_(()=>a("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Qt={class:"rightbottom"},Ut={class:"title"},$t=_(()=>a("span",null,"\u4F5C\u7269\u957F\u52BF\u7B49\u7EA7\u7EDF\u8BA1-\u884C\u653F\u533A\u5212",-1)),jt=_(()=>a("img",{src:ee,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),Gt={class:"bottom_center"},Jt=Ge('
',1),Yt={id:"popup"},Ht={id:"pop"},Kt={key:0},eo=_(()=>a("div",null,"\u6751\u540D\uFF1A",-1)),to={class:"mt-4"},oo={__name:"index",setup(O){let u=h(null);const ce=h(null),de=h(null),ue=h(null);h(null);const pe=h(null),T=h("370211"),ke=h(null);let B=Y({arr:[],brr:[],crr:[]});Y({arr:[]});const fe=h({name:"",value:""}),Ie=h([]),me=h([]),q=h(!1);let te=h(!0),oe=h(!0);h("{x:765,y:191}");let ae=Y({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),D={\u5C0F\u9EA6:{value:"12364",percent:"20%"},\u82B1\u751F:{value:"12364",percent:"20%"},\u5927\u8C46:{value:"12364",percent:"20%"},\u5730\u74DC:{value:"12364",percent:"20%"},\u82B1\u751F:{value:"12364",percent:"20%"}};$e(()=>B.arr,e=>{console.log("val:",e)});var Q={title:[]};let R={\u5C0F\u9EA6:[],\u7389\u7C73:[],\u5927\u8C46:[],\u5730\u74DC:[],\u82B1\u751F:[],\u84DD\u8393:[],\u8336\u53F6:[],\u9A6C\u94C3\u85AF:[],\u767D\u83DC\u548C\u841D\u535C:[],\u5176\u4ED6:[]};const Le=()=>{console.log(Ie.value)};je(()=>{ve(),Xe(),he(),Fe(),Be(),be(),_e(),Ve(),G(),ze()});const Ae={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 Be(){u=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({...Ae})}),u.cesiumWidget.creditContainer.style.display="none",le("shuzisannong:huangdaoqu_town","tl"),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),Te(),Qe()}function re(e,t,l){e.forEach(o=>{let r=[];o[0].forEach(i=>{r.push(i[0]),r.push(i[1])}),u.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(r),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:l?Cesium.Color.fromCssColorString(l):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function Pe(e){return e>48e6?0:e>24e6?1:e>12e6?2:e>6e6?3:e>3e6?4:e>15e5?5:e>75e4?6:e>375e3?7:e>187500?8:e>93750?9:e>46875?10:e>23437.5?11:e>11718.75?12:e>5859.38?13:e>2929.69?14:e>1464.84?15:e>732.42?16:e>366.21?17:18}function ze(){ie({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxFeatures=50&outputFormat=application%2Fjson",method:"get"}).then(e=>{console.log("\u519C\u7530\uFF1A",e),me.value=e.data.features}).catch(e=>{})}let x=h({label:[]}),U="";function Te(){var e=new Cesium.ScreenSpaceEventHandler(u.canvas);e.setInputAction(function(t){var l=u.camera.getPickRay(t.position),o=u.scene.globe.pick(l,u.scene);if(o){let r=Cesium.Cartographic.fromCartesian(o);if(r){let i=new Cesium.Cartesian2,g=u.camera.positionCartographic.height,n=Pe(g);const m=u.imageryLayers._layers,c=m.findIndex(p=>p._imageryProvider._layers&&p._imageryProvider._layers==="shuzisannong:huangdaoqu_town");if(c>-1){const p=m[c];let f=p._imageryProvider;if(f&&f.ready&&f._layers&&p.show===!0){i=f.tilingScheme.positionToTileXY(r,n,i);let s=f.pickFeatures(i.x,i.y,n,r.longitude,r.latitude);s&&s.then(C=>{if(C.length>0){let v=C[0];if(v.properties&&v.properties.XZDM)if(U!==v.properties.XZDM){U=v.properties.XZDM,T.value=U,ye();let d=v.data;u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(d.bbox[0],d.bbox[1],d.bbox[2],d.bbox[3]),duration:2}),F("townLine"),re(d.geometry&&d.geometry.coordinates,"townLine","yellow"),k(["village_CQL"]),ge(`XZDM=${v.properties.XZDM}`,"village_CQL");let I=u.entities._entities._array;for(var y=I.length-1;y>=0;y--)if(I[y]._name&&I[y]._name==="point"+v.properties.XZDM){let P=I[y]._info;x.value=P,console.log(x.value,"------------------"),se(t.position),u.scene.postRender.addEventListener(we)}F("villageLine"),$=""}else Re(m,i,n,r);else k(["village_CQL"]),J()}})}}}}},Cesium.ScreenSpaceEventType.LEFT_CLICK)}let $="";function Re(e,t,l,o){const r=e.findIndex(i=>i._imageryProvider._layers&&i._imageryProvider._layers==="shuzisannong:huangdaoqu_village");if(r>-1){const i=e[r];let g=i._imageryProvider;if(g&&g.ready&&g._layers&&i.show===!0){t=g.tilingScheme.positionToTileXY(o,l,t);let n=g.pickFeatures(t.x,t.y,l,o.longitude,o.latitude);n&&n.then(m=>{if(m.length>0){let c=m[0];if(c.properties&&c.properties.XZQDM&&$!==c.properties.XZQDM){$=c.properties.XZQDM;let p=c.data;if(F("villageLine"),re(p.geometry&&p.geometry.coordinates,"villageLine","yellow"),c.properties.XZQDM==="370211104217"){const f=Cesium.Rectangle.fromDegrees(p.bbox[0],p.bbox[1],p.bbox[2],p.bbox[3]),s=Cesium.Rectangle.center(f);let C=Cesium.Math.toDegrees(s.longitude),y=Cesium.Math.toDegrees(s.latitude),v={lon:C,lat:y,...p.properties,label:[{crop:"\u8336\u53F6",Shape_Area:2820},{crop:"\u5927\u8C46",Shape_Area:2767},{crop:"\u82B1\u751F",Shape_Area:62356},{crop:"\u84DD\u8393",Shape_Area:5443},{crop:"\u5730\u74DC",Shape_Area:897},{crop:"\u5C0F\u9EA6",Shape_Area:20111}]};x.value=v}}}})}}}function ge(e,t){let l=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:e}});l.customName=t,u.imageryLayers.addImageryProvider(l)}function k(e,t){if(u){const l=u.imageryLayers._layers;for(let o=l.length-1;o>=0;o--)e.forEach(r=>{l[o]._imageryProvider&&l[o]._imageryProvider.customName&&(t?l[o]._imageryProvider.customName.indexOf(r)>-1&&u.imageryLayers.remove(l[o]):l[o]._imageryProvider.customName===r&&u.imageryLayers.remove(l[o]))})}}function F(e){if(u){let l=u.entities._entities._array;for(var t=l.length-1;t>=0;t--)l[t]._name&&l[t]._name===e&&u.entities.remove(l[t])}}function Ee(){if(te.value=!te.value,te.value){let e=document.querySelector(".leftWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".leftWra");e.style.transform="translate(-107%,0)"}}function We(){if(oe.value=!oe.value,oe.value){let e=document.querySelector(".rightWra");e.style.transform="translate(0,0)"}else{let e=document.querySelector(".rightWra");e.style.transform="translate(107%,0)"}}const ve=()=>{Me({time:"2023-04-25",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(e=>{console.log(e)})},he=()=>{He().then(e=>{B.arr=e.features,B.arr.unshift({bbox:[119.5091,35.5671,120.3285,36.1455],properties:{XZDM:"370211",XZMC:"\u5168\u90E8"}});let t=[...e.features],l=[];t.splice(0,1),t.forEach(o=>{l.push(o.properties.XZMC)}),Q.title=[...Object.values(l)],G()})},Fe=()=>{Ke().then(e=>{B.brr=e.features})},Xe=()=>{et().then(e=>{B.crr=e.features,Q.title.forEach((t,l)=>{let o=e.features.map(r=>{if(t===r.properties.town)return r.properties});Object.keys(R).forEach(r=>{const i=o.findIndex(g=>g&&g.crop===r);i>-1?R[r].push(o[i].Shape_Area):R[r].push(null)})}),G()})},ye=()=>{ve(),D={\u5C0F\u9EA6:{value:"2435",percent:"20%"},\u82B1\u751F:{value:"2435",percent:"20%"},\u5927\u8C46:{value:"2435",percent:"20%"},\u5730\u74DC:{value:"2435",percent:"20%"},\u82B1\u751F:{value:"2435",percent:"20%"}},ae.arr=[{name:"\u5C0F\u9EA6",value:20,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:10,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:13,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:18,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u8336\u53F6",value:16,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}],T.value=="370211"&&(k(["village_CQL"]),k(["aaa"]),he(),D={\u5C0F\u9EA6:{value:12364,percent:"20%"},\u82B1\u751F:{value:12364,percent:"20%"},\u5927\u8C46:{value:12364,percent:"20%"},\u5730\u74DC:{value:12364,percent:"20%"},\u82B1\u751F:{value:12364,percent:"20%"}},ae=Y({arr:[{name:"\u5C0F\u9EA6",value:101,itemStyle:{opacity:.5,color:"rgba(110, 209, 84, 0.9)"}},{name:"\u82B1\u751F",value:156,itemStyle:{opacity:.5,color:"rgba(251, 201, 3, 1)"},label:{show:!0}},{name:"\u5927\u8C46",value:156,itemStyle:{opacity:.5,color:"rgba(240, 129, 31, 0.9)"},label:{show:!0}},{name:"\u5730\u74DC",value:156,itemStyle:{opacity:.5,color:"rgba(27, 85, 222, 1)"},label:{show:!0}},{name:"\u84DD\u8393",value:56,itemStyle:{opacity:.5,color:"rgba(72, 102, 211, 0.9)"},label:{show:!0}},{name:"\u8336\u53F6",value:56,itemStyle:{opacity:.5,color:"rgba(26, 255, 140, 1)"},label:{show:!0}}]}),J());let e=[...B.arr];console.log("arr:",e),e.forEach(o=>{o.properties.XZDM==T.value&&u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),duration:2});let r=[...B.brr],i=[];r.forEach(g=>{g.properties.XZDM==T.value&&i.push(g.properties.XZQMC)}),Q.title=[...Object.values(i)]}),G(),be(),_e();const l=[...B.arr].find(o=>o.properties.XZDM===T.value);l&&(F("townLine"),re(l.geometry.coordinates,"townLine","yellow")),k(["aaa"]),ge(`XZDM=${T.value}`,"aaa"),Me({time:"2023-04-26",subregion:"1",parent:"\u9EC4\u5C9B\u533A"}).then(o=>{let r=[];o.data.map((i,g)=>{i.region==l.properties.XZMC&&r.push({crop:i.type,Shape_Area:i.area})}),x.value={label:r},console.log(),console.log(r),se({x:642,y:312})})},j=e=>{Ze(e)},Ze=e=>{let t=document.createElement("a");t.style.display="none",t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)};function be(){const e=K(ce.value);let t=["\u597D","\u8F83\u597D","\u9002\u4E2D","\u8F83\u5DEE","\u5DEE"],l=[3598,1235,2354,3251,1652],o=!1;l.length>14?o=!0:o=!1;var r={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"10%",right:"5%",left:"15%",bottom:"10%"},xAxis:[{type:"category",data:t,axisLine:{lineStyle:{color:"rgba(66, 192, 255, .3)"}},axisLabel:{interval:0,margin:10,color:"#05D5FF",textStyle:{fontSize:11},rotate:"0"},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:{show:!1},minInterval:1,axisLine:{show:!1},axisTick:{show:!1}},dataZoom:[{show:o,type:"slider",realtime:!0,startValue:0,endValue:14,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],series:[{type:"bar",data:l,barWidth:"10",itemStyle:{normal:{color:new V(0,0,0,1,[{offset:0,color:"rgba(45, 204, 177, 1)"},{offset:.98,color:"rgba(71, 179, 161, 0)"}],!1),shadowColor:"rgba(5, 213, 255, 1)",shadowBlur:4}},label:{normal:{show:!0,lineHeight:10,formatter:"{c}",position:"top",textStyle:{color:"#fff",fontSize:10}}}}]};r&&e.setOption(r),window.addEventListener("resize",function(){e.resize()})}function _e(){const e=K(de.value);let t="",l="",o="",r=g(ae.arr,.7);function i(n,m,c,p,f,s){const C=(n+m)/2,y=n*Math.PI*2,v=m*Math.PI*2,d=C*Math.PI*2;n===0&&m===1&&(c=!1),f=typeof f<"u"?f:1/3;const I=c?Math.cos(d)*.1:0,P=c?Math.sin(d)*.1:0,X=p?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x(M,z){return Mv?I+Math.cos(v)*(1+Math.cos(z)*f)*X:I+Math.cos(M)*(1+Math.cos(z)*f)*X},y(M,z){return Mv?P+Math.sin(v)*(1+Math.cos(z)*f)*X:P+Math.sin(M)*(1+Math.cos(z)*f)*X},z(M,z){return M<-Math.PI*.5?Math.sin(M):M>Math.PI*2.5?Math.sin(M)*s*.1:Math.sin(z)>0?1*s*.1:-1}}}function g(n,m){const c=[];let p=0,f=0,s=0;const C=[],y=typeof m<"u"?(1-m)/(1+m):1/3;for(let d=0;d"u"?`series${d}`:n[d].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:n[d],pieStatus:{selected:!1,hovered:!1,k:y}};if(typeof n[d].itemStyle<"u"){const{itemStyle:P}=n[d];typeof n[d].itemStyle.color<"u"&&(P.color=n[d].itemStyle.color),typeof n[d].itemStyle.opacity<"u"&&(P.opacity=n[d].itemStyle.opacity),I.itemStyle=P}c.push(I)}for(let d=0;d{if(d.seriesName!=="mouseoutSeries")return`${d.seriesName}
${v.series[d.seriesIndex].pieData.value}`}},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:10,top:"-5%",left:"-25",viewControl:{alpha:40,beta:30,rotateSensitivity:1,zoomSensitivity:0,panSensitivity:0,autoRotate:!0,distance:170},postEffect:{enable:!0,bloom:{enable:!0,bloomIntensity:1},SSAO:{enable:!0,quality:"medium",radius:2}}},series:c};return v}e.on("mouseover",function(n){let m,c,p,f,s,C;o!==n.seriesIndex&&(o!==""&&(m=r.series[o].pieStatus.selected,c=!1,p=r.series[o].pieData.startRatio,f=r.series[o].pieData.endRatio,s=r.series[o].pieStatus.k,C=r.series[o].pieData.value===r.series[0].pieData.value?35:10,r.series[o].parametricEquation=i(p,f,m,c,s,C),r.series[o].pieStatus.hovered=c,o=""),n.seriesName!=="mouseoutSeries"&&(m=r.series[n.seriesIndex].pieStatus.selected,c=!0,p=r.series[n.seriesIndex].pieData.startRatio,f=r.series[n.seriesIndex].pieData.endRatio,s=r.series[n.seriesIndex].pieStatus.k,r.series[n.seriesIndex].parametricEquation=i(p,f,m,c,s,r.series[n.seriesIndex].pieData.value+5),r.series[n.seriesIndex].pieStatus.hovered=c,o=n.seriesIndex),e.setOption(r))}),e.on("globalout",function(){if(o!==""){t=r.series[o].pieStatus.selected,l=!1;let n=r.series[o].pieStatus.k,m=r.series[o].pieData.startRatio,c=r.series[o].pieData.endRatio,p=r.series[o].pieData.value===r.series[0].pieData.value?35:10;r.series[o].parametricEquation=i(m,c,t,l,n,p),r.series[o].pieStatus.hovered=l,o=""}e.setOption(r)}),ne(e,r)}function Ve(){const e=K(ue.value);var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{top:"7%",left:"17%",icon:"rect",textStyle:{color:"#fff"}},grid:{top:"15%",left:"5%",right:"5%",bottom:"10%",containLabel:!0},xAxis:{type:"value",axisLine:{lineStyle:{color:"rgba(255,255,255,0.8)"}},splitLine:{lineStyle:{color:"rgba(255,255,255,0.3)"}}},yAxis:{type:"category",data:["\u7247\u533A7","\u7247\u533A6","\u7247\u533A5","\u7247\u533A4","\u7247\u533A3","\u7247\u533A2","\u7247\u533A1"],axisLabel:{color:"rgba(255,255,255,0.8)"},axisTick:{lineStyle:{color:"#668092",width:1},show:!1}},series:[{name:"\u5C0F\u9EA6",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new V(0,0,1,0,[{offset:0,color:"rgba(33, 187, 251, 0.05)"},{offset:1,color:"rgba(33, 187, 251, 0.9)"}]),shadowBlur:16,shadowColor:"rgba(7,165,255,1)"}},{name:"\u82B1\u751F",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new V(0,0,1,0,[{offset:0,color:"rgba(4, 247, 227, 0.05)"},{offset:1,color:"rgba(4, 247, 227, 0.9)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}},{name:"\u5927\u8C46",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521,232,343],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new V(0,0,1,0,[{offset:0,color:"rgba(143, 186, 243, 0.05)"},{offset:1,color:"rgba(143, 186, 243, 0.9)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}},{name:"\u5730\u74DC",type:"bar",stack:"total",label:{show:!1},emphasis:{focus:"series"},data:[271,132,413,210,521,234,321],barWidth:12,itemStyle:{label:{show:!1},labelLine:{show:!1},color:new V(0,0,1,0,[{offset:0,color:"rgba(255, 225, 104, 0.05)"},{offset:1,color:"rgba(255, 225, 104, 1)"}]),shadowBlur:16,shadowColor:"#a2f9f7"}}]};e.on("click",function(l){console.log(l.name)}),e.on("click",l=>Oe(l)),t&&e.setOption(t,{notMerge:!0,grid:{bottom:20}}),ne(e,t)}function le(e,t){let l=new Cesium.WebMapServiceImageryProvider({url:serverAPI.geoserverUrl+"/shuzisannong/wms?",layers:e,parameters:{service:"WMS",format:"image/png",transparent:!0}});l.customName=t;let o=u.imageryLayers.addImageryProvider(l);t.indexOf("gbznt")>-1&&(u.imageryLayers.lowerToBottom(o),u.imageryLayers.raise(o))}function Ne(){k(["gbznt"],!0),le("shuzisannong:huangdaoqu_town","tl"),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),q.value=!1}function Oe(e){console.log("item:",e),k(["huangdaoqu_town"],!0),k(["tl"],!0);let t="shuzisannong:farmland",l=!1;const o=u.imageryLayers._layers;for(let i=o.length-1;i>=0;i--)o[i]&&o[i]._imageryProvider.customName&&o[i]._imageryProvider.customName===t+"gbznt"&&(l=!0);l||le(t,t+"gbznt"),me.value.forEach(i=>{console.log("it.properties.name:",i.properties.name),console.log("item.name:",e.name),i.properties.name===e.name&&(console.log("dingwei"),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(i.bbox[0],i.bbox[1],i.bbox[2],i.bbox[3]),duration:2}))}),q.value=!0,x.value={label:[{crop:"\u5C0F\u9EA6",Shape_Area:"53000"},{crop:"\u5730\u74DC",Shape_Area:"50000"}]},console.log(x.label),se({x:642,y:312})}function G(){const e=K(pe.value);var t={grid:{bottom:"8%",left:"10%",right:"6%",top:"12%",containLabel:!0},legend:{top:"5%",left:"10%",icon:"rect",textStyle:{color:"#fff"}},tooltip:{formatter:function(l){return l.seriesName+''+(l.value/66.72).toFixed(2)+"\u4EA9"}},dataZoom:[{type:"slider",show:!1,zoomLock:!0,width:8,yAxisIndex:[0],bottom:30,top:20,right:10,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"},{type:"inside",id:"insideY",yAxisIndex:0,start:0,end:50,zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],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:Q.title,inverse:!0}],series:[{type:"bar",name:"\u7389\u7C73",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"\u7389\u7C73",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:R.\u7389\u7C73},{type:"bar",name:"\u5927\u8C46",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5927\u8C46",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(143, 186, 243, 0.9)"},{offset:1,color:"rgba(143, 186, 243, 0.3)"}]}},data:R.\u5927\u8C46},{type:"bar",name:"\u82B1\u751F",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u82B1\u751F",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(4, 247, 227, 0.9)"},{offset:1,color:"rgba(4, 247, 227, 0.25)"}]}},data:R.\u82B1\u751F},{type:"bar",name:"\u5C0F\u9EA6",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u5C0F\u9EA6",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(33, 187, 251, 0.9)"},{offset:1,color:"rgba(33, 187, 251, 0.25)"}]}},data:R.\u5C0F\u9EA6},{type:"bar",name:"\u84DD\u8393",stack:"\u603B\u91CF",barMaxWidth:30,label:{show:!1,position:"inside",formatter:"\u84DD\u8393",textStyle:{fontSize:12,fontWeight:"bolder",color:"rgba(255,255,255,1)"}},itemStyle:{barBorderRadius:[0,0,0,0],barBorderRadius:[0,0,0,0],color:{colorStops:[{offset:0,color:"rgba(14, 223, 255, 0.9)"},{offset:1,color:"rgba(14, 223, 255, 0.25)"}]}},data:R.\u84DD\u8393}]};ne(e,t)}function qe(){let e=xe.value;console.log("fl:",e),ie({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson"}).then(t=>{console.log("res1111:",t),t.data.features.forEach((o,r)=>{const i=Cesium.Rectangle.fromDegrees(o.bbox[0],o.bbox[1],o.bbox[2],o.bbox[3]),g=Cesium.Rectangle.center(i);let n=Cesium.Math.toDegrees(g.longitude),m=Cesium.Math.toDegrees(g.latitude);o.properties.XZDM==="370211011"?(n=120.0863,m=35.941):o.properties.XZDM==="370211003"&&(n=120.243682,m=35.97123201);const c=e[o.properties.XZMC];let p=[];c&&(p=c.map((f,s)=>f.properties)),u.entities.add({name:"point"+o.properties.XZDM,position:Cesium.Cartesian3.fromDegrees(n,m),point:new Cesium.PointGraphics({show:!0,pixelSize:10,color:Cesium.Color.fromCssColorString("rgba(255, 255, 26, 1)"),outlineColor:new Cesium.Color(0,0,0,0),outlineWidth:0,disableDepthTestDistance:Number.POSITIVE_INFINITY,heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),info:{label:p,...o.properties,lon:n,lat:m}})})}).catch(t=>{})}let xe=h({});function Qe(){ie({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afenlei&maxFeatures=137&outputFormat=application%2Fjson"}).then(e=>{let t=e.data.features,l={};t.forEach(o=>{let r=o.properties.town;l[r]?l[r].push(o):l[r]=[o]}),xe.value=l,qe()}).catch(e=>{})}function we(){if(x.value&&x.value.lon&&x.value.lat){const t=Cesium.Cartesian3.fromDegrees(Number(x.value.lon),Number(x.value.lat),0);var e=Cesium.SceneTransforms.wgs84ToWindowCoordinates(u.scene,t);if(Cesium.defined(e)){const l=document.getElementById("pop");l.style.top=e.y-10+"px",l.style.left=e.x+10+"px"}}}function J(){U="",$="",k(["village_CQL"]),k(["aaa"]),F("villageLine"),F("townLine");const e=document.getElementById("pop");e.style.display="none",u.scene.postRender.removeEventListener(we),u.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:2}),k(["gbznt"],!0),q.value=!1}function se(e){console.log(e);const t=document.getElementById("pop");t.style.display="block",t.style.position="absolute",t.style.top=e.y-10+"px",t.style.left=e.x+10+"px",t.style.zIndex=99}return(e,t)=>{const l=A("ArrowRightBold"),o=A("el-icon"),r=A("el-option"),i=A("el-select"),g=A("ArrowLeftBold"),n=A("el-checkbox"),m=A("el-checkbox-group"),c=A("el-collapse-item"),p=A("el-collapse"),f=A("el-button");return W(),Z("div",nt,[ct,a("div",dt,[a("div",ut,[a("div",pt,[ft,a("p",{onClick:t[0]||(t[0]=s=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianjishijian.xlsx"))},[L(" \u4E0B\u8F7D \xA0 "),mt])]),a("div",{ref_key:"areaDiv",ref:ce,class:"areaDiv"},null,512),a("div",{ref_key:"leftProgressBarDiv",ref:ke,class:"ProgressBar"},null,512)]),a("div",gt,[a("div",vt,[ht,a("p",{onClick:t[1]||(t[1]=s=>j("https://1912c.oss-cn-beijing.aliyuncs.com/egg-oss-demo/zhongzhimianji%20.xlsx"))},[L(" \u4E0B\u8F7D \xA0 "),yt])]),a("div",{ref_key:"typesofDiv",ref:de,class:"typesofDiv"},null,512),a("div",bt,[a("div",_t,[xt,a("div",wt,b(w(D).\u5C0F\u9EA6.value)+"\u4EA9 ",1),a("div",St,b(w(D).\u5C0F\u9EA6.percent),1)]),a("div",Ct,[Dt,a("div",Mt,b(w(D).\u82B1\u751F.value)+"\u4EA9 ",1),a("div",kt,b(w(D).\u82B1\u751F.percent),1)]),a("div",It,[Lt,a("div",At,b(w(D).\u5927\u8C46.value)+"\u4EA9 ",1),a("div",Bt,b(w(D).\u5927\u8C46.percent),1)]),a("div",Pt,[zt,a("div",Tt,b(w(D).\u5730\u74DC.value)+"\u4EA9 ",1),a("div",Rt,b(w(D).\u5730\u74DC.percent),1)]),a("div",Et,[Wt,a("div",Ft,b(w(D).\u82B1\u751F.value)+"\u4EA9 ",1),a("div",Xt,b(w(D).\u82B1\u751F.percent),1)])])]),a("div",{class:"leftFoldDiv",onClick:t[2]||(t[2]=s=>Ee())},[S(o,null,{default:E(()=>[S(l)]),_:1})])]),a("div",Zt,[a("div",Vt,[a("div",Nt,[Ot,a("p",{onClick:t[3]||(t[3]=s=>j("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"))},[L(" \u4E0B\u8F7D \xA0 "),qt])]),a("div",{ref_key:"farmlandDiv",ref:ue,class:"farmlandDiv"},null,512),H('
')]),a("div",Qt,[a("div",Ut,[$t,a("p",{onClick:t[4]||(t[4]=s=>j("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"))},[L(" \u4E0B\u8F7D \xA0 "),jt])]),S(i,{"popper-class":"select_city",onChange:t[5]||(t[5]=s=>ye(e.item)),modelValue:T.value,"onUpdate:modelValue":t[6]||(t[6]=s=>T.value=s),clearable:"",placeholder:"\u5168\u90E8"},{default:E(()=>[(W(!0),Z(Se,null,Ce(w(B).arr,s=>(W(),De(r,{key:s.properties.XZDM,label:s.properties.XZMC,value:s.properties.XZDM},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a("div",{ref_key:"ASdivisionDiv",ref:pe,class:"ASdivision"},null,512)]),a("div",{class:"rightFoldDiv",onClick:t[7]||(t[7]=s=>We())},[S(o,null,{default:E(()=>[S(g)]),_:1})])]),a("div",Gt,[S(it)]),Jt,a("div",Yt,[a("div",null,b(fe.value.name)+"\uFF1A",1),a("div",null,b(fe.value.value)+"\u4EA9",1),a("div",{class:"cancel",onClick:J},"X")]),a("div",Ht,[(W(!0),Z(Se,null,Ce(w(x).label,(s,C)=>(W(),Z("div",{key:C},[a("div",null,b(s.crop)+"\uFF1A",1),a("div",null,b((s.Shape_Area/666.67).toFixed(2))+" \u4EA9",1)]))),128)),w(x).XZQMC?(W(),Z("div",Kt,[eo,a("div",null,b(w(x).XZQMC),1)])):H("v-if",!0),a("div",{class:"cancel",onClick:J},"X")]),S(p,{class:"legend",accordion:""},{default:E(()=>[S(c,{name:"1"},{title:E(()=>[L("\u56FE\u4F8B")]),default:E(()=>[a("div",to,[S(m,{modelValue:e.checkList,"onUpdate:modelValue":t[13]||(t[13]=s=>e.checkList=s),onChange:Le},{default:E(()=>[H(` `),S(n,{style:{background:"rgba(50, 148, 1, 1)",border:"1px solid rgba(251, 171, 60, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[8]||(t[8]=s=>e.checked3=s),label:"\u597D"},null,8,["modelValue"]),S(n,{style:{background:"rgba(154, 208, 0, 1)",border:"1px solid rgba(251, 219, 13, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[9]||(t[9]=s=>e.checked4=s),label:"\u8F83\u597D"},null,8,["modelValue"]),S(n,{style:{background:"rgba(234, 219, 0, 1)",border:"1px solid rgba(244, 218, 136, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[10]||(t[10]=s=>e.checked3=s),label:"\u9002\u4E2D"},null,8,["modelValue"]),S(n,{style:{background:"rgba(239, 152, 0, 1)",border:"1px solid rgba(174, 83, 110, 1)",width:"100%"},modelValue:e.checked4,"onUpdate:modelValue":t[11]||(t[11]=s=>e.checked4=s),label:"\u8F83\u5DEE"},null,8,["modelValue"]),S(n,{style:{background:"rgba(247, 85, 0, 1)",border:"1px solid rgba(242, 177, 167, 1)",width:"100%"},modelValue:e.checked3,"onUpdate:modelValue":t[12]||(t[12]=s=>e.checked3=s),label:"\u5DEE"},null,8,["modelValue"])]),_:1},8,["modelValue"])])]),_:1})]),_:1}),q.value?(W(),De(f,{key:0,class:"back_button",onClick:t[14]||(t[14]=s=>Ne())},{default:E(()=>[L("\u8FD4\u56DE")]),_:1})):H("v-if",!0)])}}},co=Ue(oo,[["__scopeId","data-v-6a6af1d2"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/crops/site/index.vue"]]);export{co as default};