text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-API-map-map"],{"0e1d":function(t,n,e){var o=e("24fb");n=o(!1),n.push([t.i,".content[data-v-e5418bfc]{flex:1}.map[data-v-e5418bfc]{width:%?750?%;\nwidth:100%;\nheight:250px;background-color:#f0f0f0}.scrollview[data-v-e5418bfc]{\nmargin-top:240px;\nflex:1;padding:10px}.list-item[data-v-e5418bfc]{flex-direction:row;flex-wrap:nowrap;align-items:center;padding:5px 0}.list-text[data-v-e5418bfc]{flex:1}.button[data-v-e5418bfc]{margin-top:5px;margin-bottom:5px}",""]),t.exports=n},"15f1":function(t,n,e){"use strict";e.r(n);var o=e("6a7e"),a=e("827f");for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("2ba3");var l,d=e("f0c5"),c=Object(d["a"])(a["default"],o["b"],o["c"],!1,null,"e5418bfc",null,!1,o["a"],l);n["default"]=c.exports},"2a64":function(t,n,e){var o=e("0e1d");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("4f06").default;a("4596942a",o,!0,{sourceMap:!1,shadowMode:!1})},"2ba3":function(t,n,e){"use strict";var o=e("2a64"),a=e.n(o);a.a},"6a7e":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-map",{ref:"map1",staticClass:"map",attrs:{id:"map1",controls:t.controls,scale:t.scale,longitude:t.location.longitude,latitude:t.location.latitude,"show-location":t.showLocation,"enable-3D":t.enable3D,rotate:t.rotate,skew:t.skew,"show-compass":t.showCompass,"enable-overlooking":t.enableOverlooking,"enable-zoom":t.enableZoom,"enable-scroll":t.enableScroll,"enable-rotate":t.enableRotate,"enable-satellite":t.enableSatellite,"enable-traffic":t.enableTraffic,markers:t.markers,polyline:t.polyline,circles:t.circles,polygons:t.polygons,"include-points":t.includePoints},on:{controltap:function(n){arguments[0]=n=t.$handleEvent(n),t.oncontroltap.apply(void 0,arguments)},markertap:function(n){arguments[0]=n=t.$handleEvent(n),t.onmarkertap.apply(void 0,arguments)},callouttap:function(n){arguments[0]=n=t.$handleEvent(n),t.oncallouttap.apply(void 0,arguments)},poitap:function(n){arguments[0]=n=t.$handleEvent(n),t.onpoitap.apply(void 0,arguments)},updated:function(n){arguments[0]=n=t.$handleEvent(n),t.onupdated.apply(void 0,arguments)},regionchange:function(n){arguments[0]=n=t.$handleEvent(n),t.onregionchange.apply(void 0,arguments)},click:function(n){arguments[0]=n=t.$handleEvent(n),t.maptap.apply(void 0,arguments)}}}),e("v-uni-scroll-view",{staticClass:"scrollview",attrs:{"scroll-y":"true"}},[e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeScale.apply(void 0,arguments)}}},[t._v("changeScale")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeRotate.apply(void 0,arguments)}}},[t._v("changeRotate")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeSkew.apply(void 0,arguments)}}},[t._v("skew")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addMarkers.apply(void 0,arguments)}}},[t._v("addMarkers")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addPolyline.apply(void 0,arguments)}}},[t._v("addPolyline")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addPolygons.apply(void 0,arguments)}}},[t._v("addPolygons")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addCircles.apply(void 0,arguments)}}},[t._v("addCircles")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.includePoint.apply(void 0,arguments)}}},[t._v("includePoints")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleGetCenterLocation.apply(void 0,arguments)}}},[t._v("getCenterLocation")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleGetRegion.apply(void 0,arguments)}}},[t._v("getRegion")]),e("v-uni-button",{staticClass:"button",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handleTranslateMarker.apply(void 0,arguments)}}},[t._v("translateMarker")])],1)],1)},i=[]},"827f":function(t,n,e){"use strict";e.r(n);var o=e("b616"),a=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},b616:function(t,n,e){"use strict";(function(t){var o=e("4ea4");e("d81d"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(e("ade3")),i=[{id:0,latitude:39.989631,longitude:116.481018,title:"方恒国际 阜通东大街6号",zIndex:"1",rotate:0,width:20,height:20,anchor:{x:.5,y:1},callout:{content:"方恒国际 阜通东大街6号",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:"天安门",zIndex:"1",iconPath:"/static/location.png",width:40,height:40,anchor:{x:.5,y:1},callout:{content:"首都北京\n天安门",color:"#00BFFF",fontSize:12,borderRadius:2,borderWidth:0,borderColor:"#333300",bgColor:"#CCFF11",padding:"1",display:"ALWAYS"}}],l=[{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}],d=[{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}],c=[{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"}],u=[{latitude:39.989631,longitude:116.481018},{latitude:39.908692,longitude:116.397477}],s={data:function(){var t;return t={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},(0,a.default)(t,"enableOverlooking",!0),(0,a.default)(t,"enableZoom",!0),(0,a.default)(t,"enableScroll",!0),(0,a.default)(t,"enableRotate",!0),(0,a.default)(t,"enableSatellite",!1),(0,a.default)(t,"enableTraffic",!1),(0,a.default)(t,"polyline",[]),(0,a.default)(t,"markers",[]),(0,a.default)(t,"polygons",[]),(0,a.default)(t,"circles",[]),(0,a.default)(t,"includePoints",[]),(0,a.default)(t,"rotate",0),(0,a.default)(t,"skew",0),t},onLoad:function(){},onReady:function(){this.map=uni.createMapContext("map1",this)},methods:{changeScale:function(){this.scale=9==this.scale?15:9},changeRotate:function(){this.rotate=90==this.rotate?0:90},changeSkew:function(){this.skew=30==this.skew?0:30},enableThreeD:function(t){this.enable3D=t.detail.value},changeShowCompass:function(t){this.showCompass=t.detail.value},changeEnableOverlooking:function(t){this.enableOverlooking=t.detail.value},changeEnableZoom:function(t){this.enableZoom=t.detail.value},changeEnableScroll:function(t){this.enableScroll=t.detail.value},changeEnableRotate:function(t){this.enableRotate=t.detail.value},changeEnableSatellite:function(t){this.enableSatellite=t.detail.value},changeEnableTraffic:function(t){this.enableTraffic=t.detail.value},addMarkers:function(){this.markers=i},addPolyline:function(){this.polyline=l},addPolygons:function(){this.polygons=d},addCircles:function(){this.circles=c},includePoint:function(){this.includePoints=u},handleGetCenterLocation:function(){this.map.getCenterLocation({success:function(n){t("log",JSON.stringify(n)," at pages/API/map/map.nvue:332"),uni.showModal({content:JSON.stringify(n)})}})},handleGetRegion:function(){this.map.getRegion({success:function(n){t("log",JSON.stringify(n)," at pages/API/map/map.nvue:342"),uni.showModal({content:JSON.stringify(n)})}})},handleTranslateMarker:function(){this.map.translateMarker({markerId:1,destination:{latitude:39.989631,longitude:116.481018},duration:2e3},(function(n){t("log",JSON.stringify(n)," at pages/API/map/map.nvue:358"),uni.showModal({content:JSON.stringify(n)})}))},maptap:function(t){uni.showModal({content:JSON.stringify(t)})},onmarkertap:function(t){uni.showModal({content:JSON.stringify(t)})},oncontroltap:function(t){uni.showModal({content:JSON.stringify(t)})},oncallouttap:function(t){uni.showModal({content:JSON.stringify(t)})},onupdated:function(n){t("log",JSON.stringify(n)," at pages/API/map/map.nvue:385")},onregionchange:function(n){t("log",JSON.stringify(n)," at pages/API/map/map.nvue:388")},onpoitap:function(t){uni.showModal({content:JSON.stringify(t)})}}};n.default=s}).call(this,e("0de9")["log"])}}]);