import{_ as d}from"./index.vue_vue_type_script_setup_true_lang.17037962789732.js";import{b as t}from"./system.1703796278973.js";import{r as u,w as _}from"./style.1703796278973.js";import{d as c,k as h,o as r,x as i,b,a as p,F as g,h as f,u as k,c as y,t as C}from"./vue.1703796278973.js";var m=c({name:"ElAmapLabelMarker",mixins:[u],props:{name:{type:String},position:{type:[Array,Object],required:!0},zooms:{type:Array},opacity:{type:Number},rank:{type:Number},icon:{type:Object},text:{type:Object},extData:null},data(){return{converters:{}}},methods:{__initComponent(e){this.$amapComponent=new AMap.LabelMarker(e),this.$parentComponent.add(this.$amapComponent)},destroyComponent(){this.parentInstance.isDestroy||this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render(){return null}});m.__file="src/packages/marker/LabelMarker/LabelMarker.vue";const v=_(m),N=e=>t.post("/device-product/_count",e),z=e=>t.get("/device/instance/_count",e),D=e=>t.post("/dashboard/_multi",e),x=e=>t.post("/geo/object/device/_search/geo.json"),M={style:{width:"100%",height:"400px"}},O=c({__name:"Amap",setup(e){let n=h();return(async()=>{var a;const s=await x();n.value=(a=s.result)==null?void 0:a.features})(),(s,a)=>{const l=v;return r(),i("div",M,[b(d,null,{default:p(()=>[(r(!0),i(g,null,f(k(n),o=>(r(),y(l,{key:o,position:o.geometry.coordinates,text:{content:o.properties.deviceName,direction:"right",style:{fontSize:15,fillColor:"#fff",strokeColor:"rgba(255,0,0,0.5)",strokeWidth:2,padding:[3,10],backgroundColor:"yellow",borderColor:"#ccc",borderWidth:3}},icon:{image:"https://a.amap.com/jsapi_demos/static/images/poi-marker.png",anchor:"bottom-center",size:[25,34],clipOrigin:[459,92],clipSize:[50,68]}},{default:p(()=>[C("123")]),_:2},1032,["position","text","icon"]))),128))]),_:1})])}}});export{O as _,D as a,z as d,N as p};
