You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hy-screen-2.0/docs/assets/layers-a7158b54-17867250444...

1 lines
2.9 KiB

var u=(e,t,s)=>new Promise((i,r)=>{var g=n=>{try{o(s.next(n))}catch(l){r(l)}},F=n=>{try{o(s.throw(n))}catch(l){r(l)}},o=n=>n.done?i(n.value):Promise.resolve(n.value).then(g,F);o((s=s.apply(e,t)).next())});import{a3 as d,k as y}from"./index-1786725044461.js";const m="/openApi/screen2/yak-industry-chain";function a(e,t){return u(this,null,function*(){return d(yield y(`${m}${e}`,{params:t,timeout:18e3}))})}function C(){return a("/options")}function v(){return a("/overview")}function w(e,t={}){return a(`/stages/${encodeURIComponent(e)}`,t)}function B(e){return a(`/points/${encodeURIComponent(e)}`)}function D(){return a("/map-points")}function I(e){return a(`/artificial-grasslands/${encodeURIComponent(e)}`)}function b(){return a("/credit/summary")}function A(e={}){return a("/credit/households",e)}const c=[101.852492,31.851389,103.347518,33.319796],p=[["family-pasture","家庭生态牧场","#30DCFF","#C9FBFF","pasture"],["artificial-grassland","人工种草基地点","#22F6B8","#B7FFF2","grass"],["scale-breeding","规模化养殖基地","#FFD166","#FFF1B8","breeding"],["breeding-selection","选育/扩繁基地","#A78BFA","#E5D8FF","gene"],["forage-storage","防灾减灾","#FF8C78","#FFE1D8","storage"],["milk-source-station","奶源站","#6BA7FF","#D8E8FF","milk"],["slaughter-processing","屠宰与加工","#43D9FF","#B8F7FF","factory"],["farm-equipment","农机装备","#30DCFF","#C9FBFF","equipment"],["forage-trade","牧草交易","#46E6AD","#B7FFF2","trade"],["social-service","社会化服务","#F0C35A","#FFF1B8","service"]].map(([e,t,s,i,r])=>({key:`yak-industry-${e}`,name:t,fillColor:s,strokeColor:i,iconType:r,match:{field:"stage_key",value:e},cqlFilter:`stage_key='${e}'`})),f={"yak-recognition-layer":{key:"yak-recognition-layer",name:"牦牛识别",sourceType:"wmts",layerName:"v3:yak_recognition",style:"",styles:"",format:"image/png",tileMatrixSetID:"EPSG:900913",bounds:c,maximumLevel:21,url:"/geoserver/gwc/service/wmts",opacity:.96,mapView:{targetLngLat:[102.58,32.72],distanceScale:.82,targetLocalZ:.76,duration:.85},legends:[{key:"yak-recognition-all",name:"牦牛识别",fillColor:"#FFE600",strokeColor:"#FFF58A",selectable:!1}]},"yak-industry-points":{key:"yak-industry-points",name:"牦牛产业点位",sourceType:"geojson",bounds:c,opacity:.96,pointLabelLimit:12,showPointLabels:!1,showPointAtAllDistances:!0,mapView:{targetLngLat:[102.48,32.69],distanceScale:.82,targetLocalZ:.76,duration:.85},legends:p},"artificial-grassland-plots":{key:"artificial-grassland-plots",name:"人工种草图斑",sourceType:"wms",layerName:"v3:yak_industry_artificial_grassland",styles:"yak_industry_artificial_grassland",url:"/geoserver/v3/wms",bounds:c,opacity:.94,mapView:{targetLngLat:[102.51,32.79],distanceScale:.62,targetLocalZ:.76,duration:.9},legends:[{key:"artificial-grassland-pending",name:"待核定种草图斑",fillColor:"#20D8FF",strokeColor:"#E7FFFF",selectable:!1}]}};function _(e){return f[e]||null}export{B as a,A as b,C as c,v as d,b as e,D as f,_ as g,w as h,I as i};