"use weex:vue";

if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor
    return this.then(
      value => promise.resolve(callback()).then(() => value),
      reason => promise.resolve(callback()).then(() => {
        throw reason
      })
    )
  }
};

if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
  const global = uni.requireGlobal()
  ArrayBuffer = global.ArrayBuffer
  Int8Array = global.Int8Array
  Uint8Array = global.Uint8Array
  Uint8ClampedArray = global.Uint8ClampedArray
  Int16Array = global.Int16Array
  Uint16Array = global.Uint16Array
  Int32Array = global.Int32Array
  Uint32Array = global.Uint32Array
  Float32Array = global.Float32Array
  Float64Array = global.Float64Array
  BigInt64Array = global.BigInt64Array
  BigUint64Array = global.BigUint64Array
};


(()=>{var f=Object.create;var p=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var F=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var S=(e,o,a,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of k(o))!y.call(e,l)&&l!==a&&p(e,l,{get:()=>o[l],enumerable:!(s=m(o,l))||s.enumerable});return e};var C=(e,o,a)=>(a=e!=null?f(w(e)):{},S(o||!e||!e.__esModule?p(a,"default",{value:e,enumerable:!0}):a,e));var c=F((T,h)=>{h.exports=Vue});var I=C(c());function d(e,o,...a){uni.__log__?uni.__log__(e,o,...a):console[e].apply(console,[...a,o])}var t=C(c());var b=(e,o)=>{let a=e.__vccOpts||e;for(let[s,l]of o)a[s]=l;return a};var _={content:{"":{flex:1}},map:{"":{width:"750rpx",height:250,backgroundColor:"#f0f0f0"}},scrollview:{"":{flex:1,paddingTop:10,paddingRight:10,paddingBottom:10,paddingLeft:10}},"list-item":{"":{flexDirection:"row",flexWrap:"nowrap",alignItems:"center",paddingTop:5,paddingRight:0,paddingBottom:5,paddingLeft:0}},"list-text":{"":{flex:1}},button:{"":{marginTop:5,marginBottom:5}}},v=[{id:0,latitude:39.989631,longitude:116.481018,title:"\u65B9\u6052\u56FD\u9645 \u961C\u901A\u4E1C\u5927\u88576\u53F7",zIndex:"1",rotate:0,width:20,height:20,anchor:{x:.5,y:1},callout:{content:"\u65B9\u6052\u56FD\u9645 \u961C\u901A\u4E1C\u5927\u88576\u53F7",color:"#00BFFF",fontSize:10,borderRadius:4,borderWidth:1,borderColor:"#333300",bgColor:"#CCFF99",padding:"5",display:"ALWAYS"}},{id:1,latitude:39.908692,longitude:116.397477,title:"\u5929\u5B89\u95E8",zIndex:"1",iconPath:"/static/location.png",width:40,height:40,anchor:{x:.5,y:1},callout:{content:`\u9996\u90FD\u5317\u4EAC
\u5929\u5B89\u95E8`,color:"#00BFFF",fontSize:12,borderRadius:2,borderWidth:0,borderColor:"#333300",bgColor:"#CCFF11",padding:"1",display:"ALWAYS"}}],P=[{points:[{latitude:39.925539,longitude:116.279037},{latitude:39.925539,longitude:116.520285}],color:"#FFCCFF",width:7,dottedLine:!0,arrowLine:!0,borderColor:"#000000",borderWidth:2},{points:[{latitude:39.938698,longitude:116.275177},{latitude:39.966069,longitude:116.289253},{latitude:39.944226,longitude:116.306076},{latitude:39.966069,longitude:116.322899},{latitude:39.938698,longitude:116.336975}],color:"#CCFFFF",width:5,dottedLine:!0,arrowLine:!0,borderColor:"#CC0000",borderWidth:3}],x=[{points:[{latitude:39.781892,longitude:116.293413},{latitude:39.7876,longitude:116.391842},{latitude:39.733187,longitude:116.417932},{latitude:39.704653,longitude:116.338255}],fillColor:"#FFCCFF",strokeWidth:3,strokeColor:"#CC99CC",zIndex:11},{points:[{latitude:39.8876,longitude:116.518932},{latitude:39.781892,longitude:116.518932},{latitude:39.781892,longitude:116.428932},{latitude:39.8876,longitude:116.428932}],fillColor:"#CCFFFF",strokeWidth:5,strokeColor:"#CC0000",zIndex:3}],O=[{latitude:39.996441,longitude:116.411146,radius:15e3,strokeWidth:5,color:"#CCFFFF",fillColor:"#CC0000"},{latitude:40.096441,longitude:116.511146,radius:12e3,strokeWidth:3,color:"#CCFFFF",fillColor:"#FFCCFF"},{latitude:39.896441,longitude:116.311146,radius:9e3,strokeWidth:1,color:"#CCFFFF",fillColor:"#CC0000"}],N=[{latitude:39.989631,longitude:116.481018},{latitude:39.908692,longitude:116.397477}],L={data(){return{location:{longitude:116.397477,latitude:39.908692},controls:[{id:1,position:{left:5,top:180,width:30,height:30},iconPath:"/static/logo.png",clickable:!0}],showLocation:!1,scale:13,showCompass:!0,enable3D:!0,enableOverlooking:!0,enableZoom:!0,enableScroll:!0,enableRotate:!0,enableSatellite:!1,enableTraffic:!1,polyline:[],markers:[],polygons:[],circles:[],includePoints:[],rotate:0,skew:0}},onLoad(){},onReady(){this.map=uni.createMapContext("map1",this)},methods:{changeScale(){this.scale=this.scale==9?15:9},changeRotate(){this.rotate=this.rotate==90?0:90},changeSkew(){this.skew=this.skew==30?0:30},enableThreeD(e){this.enable3D=e.detail.value},changeShowCompass(e){this.showCompass=e.detail.value},changeEnableOverlooking(e){this.enableOverlooking=e.detail.value},changeEnableZoom(e){this.enableZoom=e.detail.value},changeEnableScroll(e){this.enableScroll=e.detail.value},changeEnableRotate(e){this.enableRotate=e.detail.value},changeEnableSatellite(e){this.enableSatellite=e.detail.value},changeEnableTraffic(e){this.enableTraffic=e.detail.value},addMarkers(){this.markers=v},addPolyline(){this.polyline=P},addPolygons(){this.polygons=x},addCircles(){this.circles=O},includePoint(){this.includePoints=N},handleGetCenterLocation(){this.map.getCenterLocation({success:e=>{d("log","at pages/API/map/map.nvue:341",JSON.stringify(e)),uni.showModal({content:JSON.stringify(e)})}})},handleGetRegion(){this.map.getRegion({success:e=>{d("log","at pages/API/map/map.nvue:351",JSON.stringify(e)),uni.showModal({content:JSON.stringify(e)})}})},handleTranslateMarker(){this.map.translateMarker({markerId:1,destination:{latitude:39.989631,longitude:116.481018},duration:2e3},e=>{d("log","at pages/API/map/map.nvue:368",JSON.stringify(e)),uni.showModal({content:JSON.stringify(e)})})},maptap(e){uni.showModal({content:JSON.stringify(e)})},onmarkertap(e){uni.showModal({content:JSON.stringify(e)})},oncontroltap(e){uni.showModal({content:JSON.stringify(e)})},oncallouttap(e){uni.showModal({content:JSON.stringify(e)})},onupdated(e){d("log","at pages/API/map/map.nvue:396",JSON.stringify(e))},onregionchange(e){d("log","at pages/API/map/map.nvue:399",JSON.stringify(e))},onpoitap(e){uni.showModal({content:JSON.stringify(e)})}}};function M(e,o,a,s,l,n){let r=(0,t.resolveComponent)("button");return(0,t.openBlock)(),(0,t.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,t.createElementVNode)("view",{class:"content"},[(0,t.createElementVNode)("map",{class:"map",id:"map1",ref:"map1",controls:l.controls,scale:l.scale,longitude:l.location.longitude,latitude:l.location.latitude,showLocation:l.showLocation,enable3D:l.enable3D,rotate:l.rotate,skew:l.skew,showCompass:l.showCompass,enableOverlooking:l.enableOverlooking,enableZoom:l.enableZoom,enableScroll:l.enableScroll,enableRotate:l.enableRotate,enableSatellite:l.enableSatellite,enableTraffic:l.enableTraffic,markers:l.markers,polyline:l.polyline,circles:l.circles,polygons:l.polygons,includePoints:l.includePoints,onTap:o[0]||(o[0]=(...i)=>n.maptap&&n.maptap(...i)),onControltap:o[1]||(o[1]=(...i)=>n.oncontroltap&&n.oncontroltap(...i)),onMarkertap:o[2]||(o[2]=(...i)=>n.onmarkertap&&n.onmarkertap(...i)),onCallouttap:o[3]||(o[3]=(...i)=>n.oncallouttap&&n.oncallouttap(...i)),onPoitap:o[4]||(o[4]=(...i)=>n.onpoitap&&n.onpoitap(...i)),onUpdated:o[5]||(o[5]=(...i)=>n.onupdated&&n.onupdated(...i)),onRegionchange:o[6]||(o[6]=(...i)=>n.onregionchange&&n.onregionchange(...i))},null,40,["controls","scale","longitude","latitude","showLocation","enable3D","rotate","skew","showCompass","enableOverlooking","enableZoom","enableScroll","enableRotate","enableSatellite","enableTraffic","markers","polyline","circles","polygons","includePoints"]),(0,t.createElementVNode)("scroll-view",{class:"scrollview",scrollY:"true"},[(0,t.createVNode)(r,{class:"button",onClick:n.changeScale},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("changeScale")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.changeRotate},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("changeRotate")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.changeSkew},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("skew")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.addMarkers},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("addMarkers")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.addPolyline},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("addPolyline")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.addPolygons},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("addPolygons")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.addCircles},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("addCircles")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.includePoint},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("includePoints")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.handleGetCenterLocation},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("getCenterLocation")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.handleGetRegion},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("getRegion")]),_:1},8,["onClick"]),(0,t.createVNode)(r,{class:"button",onClick:n.handleTranslateMarker},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)("translateMarker")]),_:1},8,["onClick"])])])])}var u=b(L,[["render",M],["styles",[_]]]);var g=plus.webview.currentWebview();if(g){let e=parseInt(g.id),o="pages/API/map/map",a={};try{a=JSON.parse(g.__query__)}catch(l){}u.mpType="page";let s=Vue.createPageApp(u,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:o,__pageQuery:a});s.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...u.styles||[]])),s.mount("#root")}})();
