数通互联化工云平台
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.

2 lines
45 KiB

4 months ago
import{a as Z,f as $,$ as V,R as X,n as Y,O as K,d as J,z as U,c as Q,b as q,e as tt,h as et,_ as it}from"./index-e450010e.js";var nt={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function ot(s,g){const h=g||nt[this.$options.name];h&&h.forEach(x=>{let _=x.slice(0,2)==="on"?x.slice(2):x;const e=this.$attrs["on"+_.replace(_[0],_[0].toUpperCase())];e&&s.addEventListener(x,e)})}const j=s=>Object.prototype.toString.call(s).slice(8,-1);let D={v:"3.0",type:"API"};const rt=(s={})=>{D=Object.assign(D,s),D.ak||console.error("请配置ak:百度地图开发者平台申请的密钥")},A=()=>D;var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},R={exports:{}};function N(){}N.prototype={on:function(s,g,h){var x=this.e||(this.e={});return(x[s]||(x[s]=[])).push({fn:g,ctx:h}),this},once:function(s,g,h){var x=this;function w(){x.off(s,w),g.apply(h,arguments)}return w._=g,this.on(s,w,h)},emit:function(s){var g=[].slice.call(arguments,1),h=((this.e||(this.e={}))[s]||[]).slice(),x=0,w=h.length;for(x;x<w;x++)h[x].fn.apply(h[x].ctx,g);return this},off:function(s,g){var h=this.e||(this.e={}),x=h[s],w=[];if(x&&g)for(var _=0,e=x.length;_<e;_++)x[_].fn!==g&&x[_].fn._!==g&&w.push(x[_]);return w.length?h[s]=w:delete h[s],this}};R.exports=N;R.exports.TinyEmitter=N;var at=R.exports,z=new at,F={$on:(...s)=>z.on(...s),$once:(...s)=>z.once(...s),$off:(...s)=>z.off(...s),$emit:(...s)=>z.emit(...s)};const G={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},L=s=>{const g=A();return g.type=="WebGL"?G[g.type][s]:G[g.type][g.v][s]};let H;new Promise(s=>{H=s});var st=(s,g)=>{const h=s.__vccOpts||s;for(const[x,w]of g)h[x]=w;return h};const lt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(s,g){const{map:h,zoom:x}=this;j(s)==="String"&&s!==g&&this.setCenterZoom(h,s,x)},"center.lng"(s,g){const{BMap:h,map:x,zoom:w,center:_}=this;s!==g&&s>=-18