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