import{u as e}from"./index-6530d0f6.js";import{d as t}from"./pinia-0c8641d4.js";import{v as a}from"./request-2ce564d0.js";import{m as r}from"./mapbox-gl-b315653c.js";import{_ as s}from"./sm-crypto-2cfdc71b.js";import{d as o,h as i,X as l,i as n,l as p,S as d,ad as m,n as u,J as c,Q as f,o as g,c as h,D as y,E as v,F as w,ag as A,b as L,I as x,a as I,G as b,L as S,a4 as k,P as C,W as N,O as B}from"./@vue-37836d09.js";import{_ as z}from"./vue-next-wxlogin-91e03b70.js";import{p as D,t as F,b as q,d as O,m as P,e as j,f as M}from"./@turf-e5dd68ad.js";const Q="https://plant2.hbatg.com/v2",V=e=>a.request({url:Q+"/datav-api/org-stat/farm-type-list",method:"get",params:e}),E=e=>a.request({url:Q+"/serviceCenter/select-data-list",method:"get",params:e}),T=e=>a.request({url:Q+"/land-api/map-image-replace/wmts-rgb-list",method:"get",params:e}),H=e=>a.request({url:Q+"/land-api/land/list-land",method:"get",params:e}),J=e=>a.request({url:Q+"/land-api/land/view",method:"get",params:e}),G=e=>a.request({url:Q+"/land-api/plan/view",method:"get",params:e}),Y=e=>a.request({url:Q+"/land-api/land/landpositionlist",method:"get",params:e}),X=e=>a.request({url:Q+"/base-api/info/city/getaddress",method:"get",params:e}),K=e=>a.request({url:Q+"/land-api/farm/remotesense/listDate",method:"get",params:e}),U=e=>a.request({url:Q+"/land-api/farm/remotesense/histories",method:"get",params:e}),Z=e=>a.request({url:Q+"/land-api/remotesense/listyear",method:"get",params:e}),R=e=>a.request({url:Q+"/land-api/remotesense/v1/histories",method:"get",params:e}),W=e=>a.request({url:Q+"/land-api/calamity/warning/land15dayearlywarningmsg",method:"get",params:e}),_=e=>a.request({url:Q+"/land-api/remotesense/apply",method:"post",data:e}),$=e=>a.request({url:Q+"/land-api/calamity/warning/listyear",method:"get",params:e}),ee=e=>a.request({url:Q+"/land-api/calamity/warning/listwarningforpc",method:"get",params:e}),te="https://plant2.hbatg.com/v2",ae=e=>a.request({url:te+"/datav-api/service-center-stat/land-farm-stat",method:"get",params:e}),re=e=>a.request({url:te+"/datav-api/service-center-stat/planting-stat",method:"get",params:e}),se=e=>a.request({url:te+"/datav-api/service-center-stat/agricultural-cost-stat",method:"get",params:e}),oe=e=>a.request({url:te+"/datav-api/service-center-stat/farming-cost-stat",method:"get",params:e}),ie=e=>a.request({url:te+"/datav-api/service-center-stat/yield-data-stat",method:"get",params:e}),le=e=>a.request({url:te+"/datav-api/service-center-stat/yield-income-stat",method:"get",params:e}),ne=e=>a.request({url:te+"/datav-api/service-center-stat/stage-progress-stat",method:"get",params:e}),pe=e=>a.request({url:te+"/datav-api/service-center-stat/farming-progress-stat",method:"get",params:e}),de=e=>a.request({url:te+"/datav-api/service-center-stat/machine-data-stat",method:"get",params:e}),me=e=>a.request({url:te+"/datav-api/service-center-stat/sense-data-stat",method:"get",params:e}),ue=t("app-map",{state:()=>({
// $map: null as any, // 不可放大对象，监听数据反应迟钝
mapLoading:!0,mapStyle:"google",
// 地图样式
farmList:[],farmInfo:{},farmerList:[],farmerItem:{},pointData:{},pointIndex:-1,landList:[],landInfo:{},
// 当前地块
mapRemoteDate:null,
// 地图上的遥感日期
popDetailStatus:0,
// 农场级地块气泡内容
remoteLayer:null,
// 单块遥感影像
remoteCallBackLandInfo:0,
// 开通遥感后处理地块列表数据
mapRightLandViewAll:!0}),getters:{
// getMap(state) {
//   return windw.$map;
// },
getMapLoading:e=>e.mapLoading,getMapStyle:e=>e.mapStyle,getFarmList:e=>e.farmList,getFarmInfo:e=>e.farmInfo,getFarmerList:e=>e.farmerList,getFarmerItem:e=>e.farmerItem,getPointData:e=>e.pointData,getPointIndex:e=>e.pointIndex,getLandList:e=>e.landList,getMapRemoteDate:e=>e.mapRemoteDate,getPopDetailStatus:e=>e.popDetailStatus,getRemoteLayer:e=>e.remoteLayer,getRemoteCallBackLandInfo:e=>e.remoteCallBackLandInfo},actions:{setMap(e){this.$map=e},setMapLoading(e){document.getElementById("firstLoad").style.display=e?"block":"none",this.mapLoading=e},setMapStyle(e){this.mapStyle=e},setPointData(e,t){this.pointIndex=-1,this.pointData=e,this.pointIndex=t},setFarmList(e){this.farmList=e},setFarmInfo(e){this.farmInfo=e},setFarmerList(e){this.farmerList=e},setLandList(e){this.landList=e},setMapRemoteDate(e){this.mapRemoteDate=e},setPopDetailStatus(e){this.popDetailStatus=e},setRemoteLayer(e){this.remoteLayer=e},setRemoteCallBackLandInfo(e){this.remoteCallBackLandInfo+=1},
// 获取农场列表
async GetFarmList(e){return new Promise(((t,r)=>{(e=>a.request({url:Q+"/serviceCenter/farm-list",method:"get",params:e}))(e).then((async e=>{if(e&&e.length>0)for(const t of e)t.__type="farm";this.setFarmList(e),t(e)})).catch((e=>{r(e)}))}))},
// 获取服务中心农场列表
async GetServiceCenterFarmList(e){return new Promise(((t,r)=>{(e=>a.request({url:te+"/datav-api/service-center-stat/farm-list",method:"get",params:e}))(e).then((async e=>{if(e&&e.length>0)for(const t of e)t.__type="farm";this.setFarmList(e),t(e)})).catch((e=>{r(e)}))}))},
// 获取所有农场数据
GetFarmInfoList:async e=>new Promise(((t,r)=>{(e=>a.request({url:Q+"/farm-api/farmInfo/farmList",method:"get",params:e}))(e).then((async e=>{if(e.content&&e.content.length>0)for(const t of e.content)t.__type="farm";t(e)})).catch((e=>{r(e)}))})),
// 获取农户列表
async GetFarmerList(e){return new Promise(((t,r)=>{(e=>a.request({url:Q+"/serviceCenter/registered-farmer-list",method:"get",params:e}))(e).then((async e=>{if(e&&e.length>0)for(const t of e)t.__type="farmer";this.setFarmerList(e),t(e)})).catch((e=>{r(e)}))}))},
// 获取服务中心农户列表
async GetServiceCenterFarmerList(e){return new Promise(((t,r)=>{(e=>a.request({url:te+"/datav-api//service-center-stat/reg-farm-list",method:"get",params:e}))(e).then((async e=>{if(e&&e.length>0)for(const t of e)t.__type="farmer";this.setFarmerList(e),t(e)})).catch((e=>{r(e)}))}))}},
// 持久化存储
persist:{
// enabled: true,
key:"map",pick:["farmInfo"],storage:sessionStorage}});r.accessToken=// eslint-disable-next-line prettier/prettier
"pk.eyJ1IjoiMTg1MTEyNzIzODMiLCJhIjoiY2tuaXBqaHdsMHh2ejJubDdhNml4aXluaSJ9.FY6yDQHpGIpr5sqT7ozF6g";const ce=o({name:"mbHtml",
/**
   * 属性参数
   * @member props
   * @property {string} [id] html 元素 id
   * @property {Boolean} [autoPan] //当前窗口可见
   * @property {Object} [autoPanAnimation] //当Popup超出地图边界时，为了Popup全部可见，地图移动的速度
   * @property {Number} [autoPanMargin] autoPan为true时地图视口移动到出现html元素显示位置的距离
   * @property {Boolean} [insertFirst] 是否预先添加进地图
   * @property {number[]} [offset] html 相对 position 的 xy偏移值 单位px
   * @property {number[]} [position] 地图坐标
   * @property {String} [positioning] html 相对 position的 定位原点， 可选值： 'bottom-left', 'bottom-center', 'bottom-right', 'center-left', 'center-center', 'center-right', 'top-left', 'top-center', and 'top-right'
   * @property {Boolean} [stopEvent] //是否应该停止事件传播到地图窗口
   * @property {Boolean} [show=true] 是否可见
   */
props:{id:[Number,String],show:{type:Boolean,default:!0},properties:{type:Object},lnglat:{type:Array,default:()=>[]},offset:{type:Array,default:()=>[0,0]},zIndex:{type:Number,default:11},showArrow:{type:Boolean,default:!1}},emits:["update:show"],setup(e,t){const a=i(),s=l({popup:null}),o=()=>{if(!e.show)return;let o=window.$map;return s.popup=new r.Popup({closeButton:!1,closeOnClick:!1,offset:e.offset||[0,-40],properties:e.properties||{},index:e.zIndex}).setLngLat(e.lnglat).setMaxWidth("400px").setDOMContent(a.value).addTo(o),s.popup._container.style.zIndex=e.zIndex,t.emit("update:show",!0),s.popup},c=()=>{s.popup&&(s.popup.remove(),s.popup=null,t.emit("update:show",!1))};return n((()=>e),((t,a)=>{e.show?u((()=>{o()})):c()}),{deep:!0,immediate:!0}),p((()=>{o()})),d((()=>{c()})),{...m(s),mbHtml:a,addOverlay:o,removeOverlay:c}}});const fe=z(ce,[["render",function(e,t,a,r,s,o){return c((g(),h("div",{class:v(["mb-html",e.showArrow?"arrow arrow-bottom arrow-blue":""]),ref:"mbHtml",style:w({zIndex:e.zIndex})},[y(e.$slots,"default",{},void 0,!0)],6)),[[f,e.show]])}],["__scopeId","data-v-07da240a"]]),ge=o({name:"mbPopup",components:{mbHtml:fe},props:{width:String,height:String,show:Boolean,showClose:{type:Boolean,default:!0},zIndex:{type:Number,default:101},showPopup:{type:Boolean,default:!0}},emits:["show","close","update:show"],setup(e,t){const a=i(),r=l({});return{...m(r),openPopup:e=>{a.value.addOverlay(e),t.emit("show"),t.emit("update:show",!0)},closePopup:()=>{t.emit("close"),t.emit("update:show",!1)},html:a}}});const he=z(ge,[["render",function(e,t,a,r,s,o){const i=A("mb-html");return e.showPopup?(g(),L(i,b({key:0,style:{width:e.width,height:e.height}},e.$attrs,{ref:"html",class:["mb-popup",{none:!e.showPopup}],show:e.show,zIndex:e.zIndex,showPopup:e.showPopup}),{default:x((()=>[t[1]||(t[1]=I("i",{class:"mb-popup__left-icon"},null,-1)),c(I("img",{class:"mb-popup__close",onClick:t[0]||(t[0]=(...t)=>e.closePopup&&e.closePopup(...t)),src:"data:image/png;base64, "},null,512),[[f,e.showClose]]),y(e.$slots,"default",{},void 0,!0)])),_:3},16,["style","show","zIndex","showPopup","class"])):S("",!0)}],["__scopeId","data-v-6cd73221"]]);s.sm2;const ye=e=>{let t,a,r,s=Number(e);return s>99999999?(r=(s/1e8).toFixed(1),a="亿亩",t=r+a):s>9999?(r=(s/1e4).toFixed(1),a="万亩",t=r+a):(r=s.toFixed(1),a="亩",t=r+a),[t,r,a]},ve=()=>{let e=new Date;e.getDay();let t=String(e.getFullYear()),a=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth(),r=String(e.getDate()<10?"0"+e.getDate():e.getDate()),s=String(e.getHours()<10?"0"+e.getHours():e.getHours()),o=String(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes());return String(e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds()),t+"/"+a+"/"+r+" "+s+":"+o},we=()=>{for(var e="#",t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAeCAYAAADOziUSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABPklEQVRIx63Sr0teYRQH8M/7KAYRh8ygsOBkbWDQuCwYNCxYLP4Ba4vCEMw266IGERUWhjazwV/RFVGT5QVZeEH0WO4Ff7yv7/Xee+DbHj6c85zT0KaCccxm+YyPuMUFDvCnwZG3KkjBz6AZRJesBkOdoA/BTgHkaQ6DLy+hnmDznVCes2DkKfajJJTndw6NBlcVsfvgW8IMPqlWCfMJcxWhvKYF/yqOmOchYbimzhoJrZowCTc1WXcJJzVhxwm7NWF/BYPBacVNNoOvIPheEVt+1mOwUhLaDnpfDV0C3AgGOv5isFQUKrSWYK0LtB/0FMV6g4MO0HUw9q6jCaaCVhtsodQVtlnIVikowwaDywy6CyZKYxn4K7+nSlCGTWbYYre3qYB3gz2c14H9xzqu6xizLxgL+uvAUgY2ur19BOtHsFKvh0yDAAAAAElFTkSuQmCC";let Le=null;const xe=z(o({name:"mbMarker",components:{mbPopup:he},props:{type:{type:String},popupClass:{type:String},width:{type:Number,default:46},height:{type:Number,default:46},show:{type:Boolean,default:!1},
//图标
icon:{type:String,default:Ae},activeIcon:{type:String},pointOffset:{type:Array,default:()=>[0,0]},popupOffset:{type:Array,default:()=>[0,-30]},showArrow:{type:Boolean,default:!0},zIndex:{type:Number,default:101},lnglat:{type:Array,default:()=>[]},color:{type:String},
// 图标位置
anchor:{type:String,default:"center"},rotation:{type:Number,default:0},
// 缩放比例
scale:{type:Number,default:1},id:{type:[Number,String]},showClose:{type:Boolean,default:!0},index:{type:Number},properties:{type:Object}},emits:["onClick","closePopup","click","update:show"],setup(e,t){const a=i(),s=l({markerId:"",marker:null,currentItem:{},pointIndex:null,ele:null,popupList:[]}),o=t=>{if(!s.ele)return;const a=s.ele.querySelector(`#mb-marker-icon-${s.ele.id}`);a&&(t?(a.src=e.activeIcon||e.icon,f("block")):(a.src=e.icon,f("none")))},c=()=>{s.marker.selected=!1,o(!1),g()},f=t=>{const a=document.querySelector(`.mb-marker-popup-${s.ele.id}`);let r,o;r=a&&a.querySelector(".mb-popup__left-icon"),o=a&&a.querySelector(".mb-popup__close"),"addClick"==t||(t=e.showClose?t:"none",r&&o&&(r.style.display=t,o.style.display=t,"block"==t?o.addEventListener("click",c):o.removeEventListener("click",c)))},g=()=>{s.marker&&(s.marker.selected=!1,f("none"),s.popupList[0].show=!1,o(!1),t.emit("closePopup"))},h=(e="hover",a=!1)=>{s.popupList[0].show=!0,"click"==e&&(t.emit("update:show",!0),s.marker.selected=!0,setTimeout((()=>{o(!0)}),0))},y=()=>{if(!e.lnglat||!e.lnglat[0]||!e.lnglat[1])return;const a=document.createElement("div");a.style.width=(e.width||46)+"px",a.style.height=(e.height||46)+"px",a.style.zIndex=e.zIndex,a.style.backgroundSize="100% 100%";let o=e.icon||Ae;s.markerId=a.id=e.id||function(e=10){return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)}(),a.innerHTML=`<img id="mb-marker-icon-${a.id}" class="mb-marker-icon" src="${o}">`,window.$map&&(s.marker=new r.Marker(a,{offset:e.pointOffset}).setLngLat(e.lnglat).addTo(window.$map)),s.marker.props=e,s.marker.id=a.id,s.ele=a,s.popupList=[{lnglat:e.lnglat,show:!1,properties:e.properties}],a.addEventListener("click",(r=>{h("click",!0),t.emit("onClick",{__type:e.type||"",...e.properties},e.index,{marker:s.marker,el:a})})),a.onmouseenter=()=>{s.marker.selected||h()},a.onmouseout=()=>{s.marker.selected||g()}},v=()=>{s.marker&&(g(),s.marker.remove(),s.marker=null,s.pointIndex=null)};n((()=>e.lnglat),(e=>{v(),u((()=>{y()}))}),{immediate:!0}),n((()=>e.show),(e=>{s.marker&&(e?setTimeout((()=>{h("click")}),0):g())}),{immediate:!0});const w=e=>{s.marker&&s.ele&&e.originalEvent.target.id!="mb-marker-icon-"+s.ele.id&&(s.marker.selected=!1,g())};return p((()=>{window.$map&&(window.$map.off("click",w),window.$map.on("click",w))})),d((()=>{Le&&clearTimeout(Le),Le=null,v(),window.$map&&window.$map.off("click",w)})),{...m(s),mbMarkerPopup:a,closePopup:g}}}),[["render",function(e,t,a,r,s,o){const i=A("mbPopup");return g(!0),h(C,null,k(e.popupList,((t,a)=>(g(),L(i,{style:w({zIndex:e.zIndex}),class:v(["mb-marker-popup",`mb-marker-popup-${e.markerId}`,e.popupClass]),ref_for:!0,ref:"mbMarkerPopup",show:t.show,"onUpdate:show":e=>t.show=e,lnglat:t.lnglat,properties:t.properties,key:a,offset:e.popupOffset,showArrow:e.showArrow,zIndex:e.zIndex,showClose:e.showClose,onClose:e.closePopup},{default:x((()=>[y(e.$slots,"default",{},void 0,!0)])),_:2},1032,["style","class","show","onUpdate:show","lnglat","properties","offset","showArrow","zIndex","showClose","onClose"])))),128)}],["__scopeId","data-v-b119f430"]]),Ie={center:[112.13,30.75],zoom:6.2,pitch:36,maxZoom:18,minZoom:4};function be(e){let t=[0,0],a=[0,0];return e.forEach((e=>{(0===t[0]||e[0]<t[0])&&(t[0]=e[0]),(0===t[1]||e[1]<t[1])&&(t[1]=e[1]),e[0]>a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1])})),[t,a]}function Se(e,t){if(e.getStyle().layers.forEach((t=>{"landLine"===t.id&&(e.removeLayer("landLine"),e.removeSource("landLine")),"landBox"===t.id&&(e.removeLayer("landBox"),e.removeSource("landBox")),"state-fills-hover1"===t.id&&(e.removeLayer("state-fills-hover1"),e.removeSource("state-fills-hover1")),"state-fills-hover2"===t.id&&(e.removeLayer("state-fills-hover2"),e.removeSource("state-fills-hover2")),"state-fills-click1"===t.id&&(e.removeLayer("state-fills-click1"),e.removeSource("state-fills-click1")),"chicago"===t.id&&(e.removeLayer("chicago"),e.removeSource("chicago")),"landDistance"===t.id&&(e.removeLayer("landDistance"),e.removeSource("landDistance"))})),t&&t.length>0){for(let e=t.length-1;e>=0;e--)try{t[e].remove()}catch(a){}t=[]}}function ke(e,t,a,r,s){const o=[];s&&e.forEach((e=>{if(0==e.points.length)return;JSON.stringify(e.points[0])!=JSON.stringify(e.points[e.points.length-1])&&e.points.push(e.points[0]);let t=[],a=D([e.points]),r=F(a,1.1);t=r.geometry.coordinates[0];let s=[];e.points.forEach(((t,a)=>{if(a==e.points.length-1)return;let r=q(t),o=q(e.points[a+1]),i=O(r,o);s.push(1e3*i)})),t.forEach(((a,r)=>{if(r==t.length-1)return;let i=q(a),l=q(t[r+1]),n=P(i,l),p=j(i,l);n.properties={name:s[r].toFixed(2)+"m",bearing:Math.ceil(p-90),landId:e.landId},o.push(n)}))}));const i=[];if(e.forEach(((e,t)=>{0!=e.points.length&&(e.points.push([e.points[0][0],e.points[0][1]]),i.push({type:"Feature",properties:{...e,landName:e.landName,id:e.landId,landId:e.landId,landArea:e.landArea,kindName:e.kindName,modelName:e.modelName,latitude:e.latitude,longitude:e.longitude,points:e.points,color:e.style,fillStyle:e.fillStyle,strokeStyle:e.strokeStyle,address:e.address},geometry:{type:"MultiPolygon",coordinates:[[e.points]]}}),r&&r(e,t))})),a){let e=["landBox","landLine","state-fills-hover1","state-fills-hover2","state-fills-click1"];for(let a=0;a<e.length;a++)t.getSource(e[a])&&t.getSource(e[a]).setData({type:"FeatureCollection",features:i});t.getSource("landDistance")&&t.getSource("landDistance").setData({type:"FeatureCollection",features:o})}else{const e={type:"geojson",data:{type:"FeatureCollection",features:i}},a={type:"geojson",data:{type:"FeatureCollection",features:o}};t.addLayer({id:"landLine",type:"line",source:e,paint:{"line-color":["get","strokeStyle"],"line-width":2}}),t.addLayer({id:"landBox",type:"fill",source:e,paint:{"fill-color":["get","fillStyle"],"fill-opacity":.4}},"landLine"),t.addLayer({id:"state-fills-hover1",type:"line",source:e,paint:{"line-color":"#FFD23C","line-width":3},filter:["==","landId",""]}),t.addLayer({id:"state-fills-hover2",type:"fill",source:e,paint:{"fill-color":"#FFD23C","fill-opacity":0},filter:["==","landId",""]}),t.addLayer({id:"state-fills-click1",type:"line",source:e,paint:{"line-color":"#FCF58E","line-width":3},
//filter: ["==", "landId", ""],
filter:["match",["get","landId"],[""],!0,!1]}),s&&t.addLayer({id:"landDistance",type:"symbol",source:a,layout:{"text-field":"{name}","text-size":18,"text-anchor":"center","text-rotate":["get","bearing"]},paint:{"text-color":"#FFD23C"},filter:["match",["get","landId"],[""],!0,!1]})}}function Ce(e,t,a){let r=(a=a||{}).padding||{top:0,bottom:0,left:0,right:0},s=a.duration||2e3;a.zoom?e.fitBounds(t,{padding:r,duration:s,zoom:a.zoom}):e.fitBounds(t,{padding:r,duration:s})}function Ne(e){const t=[];return e.map((e=>{t.push([e.longitude,e.latitude])})),t}const Be=(e,t,a,r=4e4)=>{e.loadImage("/datav/assets/png/area-bg-4130c844.png",(function(s,o){if(s)throw s;e.addImage("ground",o),e.addLayer({id:"fill-extrusion",type:"fill-extrusion",source:{type:"geojson",data:JSON.parse(JSON.stringify(t))},paint:{
// 'fill-extrusion-height': ['interpolate', ['linear'], ['zoom'], 15, 25000, 15.05, ['get', 'height']],
"fill-extrusion-color":"#4B92EA",
// 蓝色填充
"fill-extrusion-height":r,"fill-extrusion-base":0,"fill-extrusion-opacity":.8,
// 'fill-extrusion-pattern': 'ground',
"fill-extrusion-translate":[0,0],
// 'fill-extrusion-translate-anchor': 'map',
"fill-extrusion-vertical-gradient":!0}}),a&&(De(e,a,{type:"line1",lineColor:"#fff",opacity:1,height:r+1e3,lineWidth:4}),De(e,a,{type:"line-grow",lineColor:"#fff",opacity:.2,height:r,lineWidth:12})),De(e,t,{type:"line2",lineColor:"#000",opacity:.3,height:r}),((e,t)=>{let a=JSON.parse(JSON.stringify(t)),r=[];a.features.forEach((e=>{r.push({type:"Feature",properties:{name:e.properties.name},geometry:{type:"Point",coordinates:e.properties.center}})})),e.addLayer({id:"areaText",type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:JSON.parse(JSON.stringify(r))}},layout:{"text-field":"{name}","text-size":14,"text-anchor":"center","text-offset":[0,0]},paint:{"text-color":"#fff"}})})(e,t)})),e.loadImage("/datav/assets/png/area-bg1-6beb2083.png",(function(a,r){if(a)throw a;e.addImage("ground1",r),e.addLayer({id:"area-hover",type:"fill-extrusion",source:{type:"geojson",data:JSON.parse(JSON.stringify(t))},paint:{"fill-extrusion-color":"#3EF7FE","fill-extrusion-vertical-gradient":!0,
// 是否开启垂直渐变
"fill-extrusion-height":55e3,"fill-extrusion-base":4e4,"fill-extrusion-opacity":1,
// 'fill-extrusion-pattern': 'ground1',
"fill-extrusion-translate":[0,0],"fill-extrusion-translate-anchor":"map"},filter:["==","adcode",""]})}))};function ze(e){let t=[];return e.forEach((e=>{e.forEach((e=>{let a=e;t.push(a)}))})),t}function De(e,t,a){let r=JSON.parse(JSON.stringify(t));for(let d=0;d<r.features.length;d++)r.features[d].geometry.type="MultiLineString",r.features[d].geometry.coordinates=ze(r.features[d].geometry.coordinates);const s=(a=a||{}).type||"line",o=a.lineColor||"#fff",i=a.lineWidth||2,l=a.opacity||1,n=a.height||4e4;a.minzoom;let p=M(r,305.74811314055756*i,{units:"meters"});e.addSource(s+"Source8",{type:"geojson",data:p}),e.addLayer({id:s+"Layer8",type:"fill-extrusion",source:s+"Source8",
// minzoom: i - minzoom,
// maxzoom: i + 1,
paint:{"fill-extrusion-vertical-gradient":!0,"fill-extrusion-color":o,"fill-extrusion-height":n+100,
// 挤出高度
"fill-extrusion-base":n,
// 底部的高度。必须小于或等于挤出高度
"fill-extrusion-opacity":l}})}const Fe="/datav/assets/png/big-title-02406175.png",qe={class:"large-panel"},Oe={class:"dv-box-title"},Pe={class:"right-wrap"},je={class:"large-panel-content scroll-black"},Me=z(o({__name:"panelBox",props:{showMore:{type:Boolean,default:!0},title:{type:String},type:{type:String},size:{type:[String,Number],default:400}},emits:["viewMore"],setup(t,{emit:a}){const r=a,s=t;e();const o=()=>{r("viewMore")};return p((()=>{})),N((()=>{})),(e,a)=>(g(),h("div",qe,[I("header",{class:v(["large-panel-header",["bg-"+s.size]])},[I("span",Oe,B(s.title),1),I("div",Pe,[y(e.$slots,"header",{},void 0,!0),t.showMore?(g(),h("span",{key:0,class:"more",onClick:o},"更多>")):S("",!0)])],2),I("div",je,[y(e.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-5cbb1bb4"]]);export{W as A,_ as B,$ as C,ee as D,G as E,T as F,Y as G,Ce as H,be as I,ke as J,K,U as L,Se as M,Ne as N,H as O,Fe as _,V as a,we as b,he as c,fe as d,xe as e,ye as f,E as g,ve as h,ne as i,pe as j,re as k,de as l,Ie as m,me as n,se as o,Me as p,oe as q,ie as r,Be as s,le as t,ue as u,ae as v,X as w,J as x,Z as y,R as z};
//# sourceMappingURL=panelBox-38406f97.js.map
