import{at as _,by as i,bq as c,a1 as y,bs as f,an as x,aq as t,y as v,ct as r,bT as C,ap as u,bO as E,_ as S}from"./index-BVAEVuZQ.js";import{E as T,a as w}from"./el-descriptions-item-CiCTkhAS.js";import{C as h}from"./CesiumPreview-Dmv-s9ru.js";const D={class:"terrain-details-container"},B=_({__name:"CesiumTerrainDetails",props:{layer:{}},setup(e){const d="/mapserver",a=e,s=i("/mapserver"),o=i(null);return c(()=>{!a.layer.bbox||!a.layer.crs||y.tools.postToolsTransformExtent({extent:a.layer.bbox,sourceCrs:a.layer.crs,destCrs:"EPSG:4326"}).then(l=>{o.value=l.data.data})}),c(()=>{s.value=`${window.location.origin}${s.value}/terrain/${a.layer.uuid}`}),(l,n)=>{const m=w,p=T,b=v;return f(),x("div",D,[t(b,null,{default:r(()=>[t(h,{style:{height:"350px"},url:C(d)+"/terrain/"+e.layer.uuid,type:"terrain",params:{LAYERS:e.layer.id,datasourceId:e.layer.dataSourceId,STYLES:e.layer.style},bbox:o.value},null,8,["url","params","bbox"]),t(p,{title:"服务列表",column:1,"label-width":"180px",border:""},{default:r(()=>[t(m,null,{label:r(()=>[...n[0]||(n[0]=[u(" Cesium地形服务 ",-1)])]),default:r(()=>[u(" "+E(s.value),1)]),_:1})]),_:1})]),_:1})])}}}),k=S(B,[["__scopeId","data-v-c1a934e2"]]);export{k as default};
