Agriculture-front-end/dist/assets/index.1eaa55b3.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2023-05-28 21:55:59 +08:00
import{_ as ge,r as p,A as ve,B as _e,C as ye,D as O,d as U,o as h,c as C,l as o,e as L,w as E,f as g,g as T,x as k,J as he,K as Ce,y as be,p as we,q as xe}from"./index.770945b1.js";import{_ as W}from"./close1.45635d81.js";import{_ as Me,a as De,b as Se,c as Ie,d as Le,e as Te}from"./linesGL.90f708a5.js";import"./index.c9f5bd8b.js";import{a as ke,b as Pe,c as Fe,g as Xe}from"./classify.0eb45b6d.js";const N=P=>(we("data-v-21cafe5e"),P=P(),xe(),P),Ze={class:"center"},Ae=N(()=>o("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),Ee={class:"leftWra"},We={class:"leftTop"},Ne=N(()=>o("div",{class:"title"},[o("span",null,"\u6444\u50CF\u5934\u9009\u62E9")],-1)),Re={class:"search"},ze={key:0,src:W,alt:""},Be={key:0,class:"imgrotate",src:W,alt:""},Oe={class:"rightWra"},Qe=N(()=>o("div",{class:"rightTop"},[o("div",{class:"title"},[o("span",null,"\u89C6\u9891\u76D1\u63A7")])],-1)),qe={key:0,src:W,alt:""},Ge={key:0,class:"imgrotate",src:W,alt:""},Je=be('<div class="tool" data-v-21cafe5e><span data-v-21cafe5e><img src="'+Me+'" alt="" data-v-21cafe5e></span><span data-v-21cafe5e><img src="'+De+'" alt="" data-v-21cafe5e></span><span data-v-21cafe5e><img src="'+Se+'" alt="" data-v-21cafe5e></span><span data-v-21cafe5e><img src="'+Ie+'" alt="" data-v-21cafe5e></span><span data-v-21cafe5e><img src="'+Le+'" alt="" data-v-21cafe5e></span><span data-v-21cafe5e><img src="'+Te+'" alt="" data-v-21cafe5e></span></div>',1),Ve={id:"popup"},Ue={id:"pop"},Ye={key:0},je=N(()=>o("div",null,"\u6751\u540D\uFF1A",-1)),He={__name:"index",setup(P){let i=p(null);p(null),p(null);const Y=p("370211");p(null);let M=ve({arr:[],brr:[],crr:[]});const Q=p({name:"",value:""}),j=p([]),H=p(!1);let b=p(!0),w=p(!0);_e(()=>M.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:[]};ye(()=>{ne(),ue(),le(),ce(),K(),te()});const $={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 K(){i=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({...$})}),i.cesiumWidget.creditContainer.style.display="none",de("shuzisannong:huangdaoqu_town","tl"),i.camera.flyTo({destination:Cesium.Rectangle.fromDegrees(119.5091,35.5671,120.3285,36.1455),duration:0}),ae(),fe()}function G(e,t,r){e.forEach(a=>{let s=[];a[0].forEach(l=>{s.push(l[0]),s.push(l[1])}),i.entities.add({name:t,polyline:{positions:Cesium.Cartesian3.fromDegreesArray(s),width:6,material:new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:r?Cesium.Color.fromCssColorString(r):Cesium.Color.fromBytes(250,128,114)}),clampToGround:!0}})})}function ee(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 te(){O({url:serverAPI.geoserverUrl+"/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Afarmland&maxF