|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-164c8a71"],{"165e":function(t,n,e){"use strict";(function(t){e("a9e3"),e("d81d");var i=e("2da4"),a=e("4fab"),o=e("76f3");n["a"]={name:"bm-marker",mixins:[Object(i["a"])("overlay")],props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng":function(t,n){var e=this.BMap,i=this.originInstance,a=this.position,s=this.renderByParent,r=this.$parent;t!==n&&t>=-180&&t<=180&&i.setPosition(Object(o["c"])(e,{lng:t,lat:a.lat})),s&&r.reload()},"position.lat":function(t,n){var e=this.BMap,i=this.originInstance,a=this.position,s=this.renderByParent,r=this.$parent;t!==n&&t>=-74&&t<=74&&i.setPosition(Object(o["c"])(e,{lng:a.lng,lat:t})),s&&r.reload()},"offset.width":function(t,n){var e=this.BMap,i=this.originInstance;t!==n&&i.setOffset(new e.Size(t,this.offset.height))},"offset.height":function(t,n){var e=this.BMap,i=this.originInstance;t!==n&&i.setOffset(new e.Size(this.offset.width,t))},icon:{deep:!0,handler:function(t){var n=this.BMap,e=this.originInstance,i=this.rotation;e&&e.setIcon(Object(o["a"])(n,t)),i&&e&&e.setRotation(i)}},massClear:function(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging:function(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking:function(){this.reload()},raiseOnDrag:function(){this.reload()},draggingCursor:function(t){this.originInstance.setDraggingCursor(t)},rotation:function(t){this.originInstance.setRotation(t)},shadow:function(t){this.originInstance.setShadow(t)},title:function(t){this.originInstance.setTitle(t)},label:function(t){this.reload()},animation:function(n){this.originInstance.setAnimation(t[n])},top:function(t){this.originInstance.setTop(t)},zIndex:function(t){this.originInstance.setZIndex(t)}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.position,s=this.offset,r=this.icon,c=this.massClear,l=this.dragging,h=this.clicking,u=this.raiseOnDrag,d=this.draggingCursor,f=this.rotation,p=this.shadow,g=this.title,m=this.label,b=this.animation,y=this.top,w=this.renderByParent,v=this.$parent,I=this.zIndex,B=new n.Marker(new n.Point(i.lng,i.lat),{offset:s,icon:r&&Object(o["a"])(n,r),enableMassClear:c,enableDragging:l,enableClicking:h,raiseOnDrag:u,draggingCursor:d,rotation:f,shadow:p,title:g});this.originInstance=B,m&&B&&B.setLabel(Object(o["b"])(n,m)),B.setTop(y),B.setZIndex(I),a["a"].call(this,B),w?v.reload():e.addOverlay(B),B.setAnimation(t[b])}}}}).call(this,e("c8ba"))},"18a5":function(t,n,e){"use strict";var i=e("23e7"),a=e("857a"),o=e("af03");i({target:"String",proto:!0,forced:o("anchor")},{anchor:function(t){return a(this,"a","name",t)}})},"21b4":function(t,n,e){},"3c86":function(t,n,e){"use strict";var i,a,o=e("6160"),s=o["a"],r=e("2877"),c=Object(r["a"])(s,i,a,!1,null,null,null);n["a"]=c.exports},6160:function(t,n,e){"use strict";(function(t){e("d81d"),e("18a5");var i=e("2da4"),a=e("76f3");n["a"]={name:"bm-city-list",render:function(){},mixins:[Object(i["a"])("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.anchor,o=this.offset,s=this;this.originInstance=new n.CityListControl({anchor:t[i],offset:o&&Object(a["d"])(n,o),onChangeBefore:function(){s.$emit("changeBefore")},onChangeAfter:function(){s.$emit("changeAfter")}}),e.addControl(this.originInstance)}}}}).call(this,e("c8ba"))},6510:function(t,n,e){"use strict";e("21b4")},"6a21":function(t,n,e){"use strict";(function(t){e("d81d"),e("18a5");var i=e("2da4"),a=e("76f3");n["a"]={name:"bm-scale",render:function(){},mixins:[Object(i["a"])("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor: //# sourceMappingURL=chunk-164c8a71.2fcb1c79.js.map
|