2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
|
import{_ as n,u as a,r as e,a7 as o,x as t,ah as i,H as p,S as s,d as r,o as l,c as u,l as m,e as d,w as f,f as c,k as v,m as h,V as g,W as M,A as y,K as w,M as b,J as S,q as L,s as D}from"./index.e5c8b0d6.js";import{_ as x,a as C}from"./zhankaiss.6870329f.js";import{_ as B,a as T}from"./face.d3470a20.js";import{g as J,a as X,b as P,S as H,T as Z,F as k,R as F,C as K,c as E,V as G,M as I,d as Q,_ as A,L as _,P as j,e as Y,f as z}from"./Modify.2dbbb3e0.js";import"./index.2809c208.js";import{u as W}from"./useEcharts.31b48034.js";import"./linesGL.76a64914.js";import{e as q}from"./element-resize-detector.d4d1cd8d.js";import{b as R,c as O,d as V,g as N}from"./ssnyygsj.afabd865.js";import{ai as $,aj as U}from"./linkSeriesData.e74eae00.js";import"./index.030fe210.js";import"./browser-detector.d146ab9e.js";const nn=n=>(L("data-v-8771f93f"),n=n(),D(),n),an={class:"center"},en=nn((()=>m("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1))),on={class:"rightWra"},tn=nn((()=>m("img",{src:x},null,-1))),pn=nn((()=>m("img",{src:C},null,-1))),sn={class:"tool"},rn=nn((()=>m("img",{src:B,alt:""},null,-1))),ln=nn((()=>m("img",{src:T,alt:""},null,-1))),un=nn((()=>m("img",{src:A,alt:""},null,-1))),mn={class:"TimeBox"},dn={style:{color:"white","font-size":"11px"}},fn={class:"InTimeContrl"},cn=n({__name:"index2",setup(n){const L=a(),D=e([]);let x=e(!1),C=e(!1),B=e(!1);e(""),e([]),e("");let T=e(!1);const A=e("null");let nn=e(null);e([]),e("2");let cn=e([]),vn=e(1);e([]),e(!0);let hn=e([]),gn=e([]),Mn=e([]);e("");let yn=e(""),wn=e("");e("高标准农田");let bn=e([]),Sn=e(!1),Ln=e(!1);o((()=>{R().then((n=>{n.data.length>0&&(D.value=n.data)})),O().then((n=>{})),V().then((n=>{})),N().then((n=>{}))})),t((()=>{var n,a;n=document.querySelector(".center"),a=document.getElementById("cesiumContainer"),Dn=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.88661841637813,35.85667692242919],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.flag?"EPSG:4326":"EPSG:3857"}),preload:20})]}),Xn(),Pn(),Dn.on("moveend",(function(n){Dn.getView().getZoom()>=13?nn.setVisible(!0):nn.setVisible(!1)})),Dn.on("singleclick",(function(n){bn=e([]);var a=n.coordinate,o=a[0],t=a[1],i=Dn.getView();Dn.getView().getZoom(),i.animate({center:[o,t],duration:1e3}),cn.value.forEach((a=>{layersDic[a]?Tn(n,layersDic[a].setOf,`${serverAPI.geoserverUrl2}/${layersDic[a].name}/rest/maps/${layersDic[a].setOf}`,a):layersGbz[a]&&Tn(n,layersGbz[a].setOf,`${serverAPI.geoserverUrl2}/${layersGbz[a].name}/rest/maps/${layersGbz[a].setOf}`,a)}))})),new ResizeObserver((function(n){n.forEach((function(n){var e=n.contentRect.width,o=n.contentRect.height;a.style.width=e+"px",a.style.height=o+"px",Dn.updateSize()}))})).observe(n),Jn(),kn(),Hn(),Zn("高标准农田");var o=window.location.host;/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/.test(o)&&(alert("请使用金宏网访问本页面!"),i().delView(L.currentRoute.value),L.go(-1)),document.querySelector(".rightWra").style.transform="translate(101%,0)",localStorage.setItem(L.currentRoute.value.path,!0)})),p((()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"}));let Dn=e(null);e(null);let xn=e(null),Cn=e(null),Bn=e(null);function Tn(n,a,o,t){var i=new ol.geom.Point(n.coordinate),p=new ol.supermap.QueryByGeometryParameters({queryParams:{name:a},geometry:i});let s=document.querySelector("#popup-title"),r=e(null);var l=e(1);function u(){var n=1*(l.value-1),a=n+1,e=bn.value;let o=document.getElementById("popup-content");for(var t=n;t<a&&t<e.length;t++){var i=e[t];i.name>=2019?(s.innerHTML="高标准农田",o.innerHTML='<div class="content-children"><p>类型: <span>高标准农田</span></p><p>项目编号: <span>'+i.information.XMBH+"</span></p><p>项目面积: <span>"+i.information.XMMJ+"</span></p><p>地块面积: <span>"+i.information.DKMJ+"</span></p><p>标识码: <span>"+i.information.BSM+"</span></p><p><EFBFBD>
|