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.
pingAnQiYeWeb/public/modules/marker_xrrh5u.js

1 line
16 KiB

1 year ago
/**/_jsload2 && _jsload2('marker', 'function kh(a,b){0<a.$f.length?a.$f[a.$f.length-1].k.finish=b:a.k.finish=b} x.extend(kb.prototype,{initialize:function(a){this.map=a;this.Pj();this.ca();this.ig&&this.ig.ra(this.map,this);x.lang.Da.call(this,this.ba);if(this.V)return this.V.ba=this.ba,this.Oa||x.K.U(this.V),this.V},ca:function(){function a(a,b){var f=a.srcElement||a.target,g=a.clientX||a.pageX,i=a.clientY||a.pageY;if(a&&b&&g&&i&&f){var f=x.K.ia(c.Ua),j=Hb();b.pixel=b.Wa=new R(g-f.left+j[1],i-f.top+j[0]);b.point=c.Bg(b.Wa);b.pointN=c.Rb(b.Wa)}return b}if(this.V){var b=this,c=this.map;x.M(this.V,"mouseover", function(c){b.tl||b.dispatchEvent(a(c,na(new N("onmouseover"),c)))});x.M(this.V,"mouseout",function(c){b.tl||b.dispatchEvent(a(c,na(new N("onmouseout"),c)))});b.z.jf&&(x.M(this.V,"touchstart",function(a){b.ca.lC=new R(a.changedTouches[0].clientX,a.changedTouches[0].clientY)}),x.M(this.V,"touchend",function(c){var e=db(),f=new R(c.changedTouches[0].clientX,c.changedTouches[0].clientY);10<Math.abs(f.x-b.ca.lC.x)||10<Math.abs(f.y-b.ca.lC.y)?b.ca.lC=p:(b.dispatchEvent(a(c,na(new N("onclick"),c))),e-b.OH< b.map.B.OC&&b.dispatchEvent(a(c,na(new N("ondblclick"),c))),b.OH=e)}),J()||x.M(this.V,"click",function(c){for(var e=c.srcElement||c.target;e;){if(e===b.V){(!(b instanceof W)||b instanceof W&&(!b.Ov||b.Ov&&(b.ia().ab(b.Ov)||b.po().ab(b.Ov))))&&b.dispatchEvent(a(c,na(new N("onclick"),c)));break}else if(b.map&&b.map.La&&e===b.map.La.zc)break;e=e.parentNode}}),x.M(this.V,"dblclick",function(c){b.dispatchEvent(a(c,na(new N("ondblclick"),c)));pa(c)}),(!x.da.Te||4>x.da.Te)&&x.M(this.V,"contextmenu",function(c){b.dispatchEvent(a(c, na(new N("onrightclick"),c)))}));x.M(this.V,"mousedown",function(c){if(b instanceof W)b.Ov=b.po();b.dispatchEvent(a(c,na(new N("onmousedown"),c)))});x.M(this.V,"mouseup",function(c){b.dispatchEvent(a(c,na(new N("onmouseup"),c)));x.da.Te>=4&&(c.button===2&&b.z.jf)&&b.dispatchEvent(a(c,na(new N("onrightclick"),c)))})}},U:function(){this.Oa!==q&&(this.Oa=q,jd.prototype.U.call(this),this.Bb&&(this.Bb.cb&&this.Bb.cb===this)&&this.Wc())},show:function(){this.Oa!==o&&(this.Oa=o,jd.prototype.show.call(this))}, AO:function(a){if(a)for(var b in a)typeof this.z[b]===typeof a[b]&&(this.z[b]=a[b])},uu:function(a){this.zIndex=a;this.bm()},bm:function(){var a;Kb(this.zIndex)?a=this.zIndex:(a=0,this.map&&this.ia()&&(a=this.ia()?this.ia().lat:0,a=jd.Sm(a)+(this.z.FK||0)));this.V&&(this.V.style.zIndex=a)},Qo:function(a){this.ig=a;this.map&&a.ra(this.map,this)},aq:function(){this.ig.remove();this.ig=p}});U(Zf,{show:Zf.show,hide:Zf.U,addContextMenu:Zf.Qo,removeContextMenu:Zf.aq});W.gv=jd.Sm(-90)+1E6;W.UG=W.gv+1E6;W.CS=function(a){if(W.xv[a])return W.xv[a];var b=W.xv[a]=["BMap_"+Math.round(1E4*Math.random()),"BMap_"+Math.round(1E4*Math.random())],c=Fd[a],d=W.jV;d||(d=W.jV=H("style",{type:"text/css"}),document.getElementsByTagName("head")[0].appendChild(d));d.textContent+=W.cI(c.Um,b[0])+W.cI(c.vu,b[1]);return W.xv[a]}; W.cI=function(a,b){var c=["@-webkit-keyframes "+b+" {\\\\n"];x.kc.Fb(a,function(a){c.push(100*a.$b,"% { ");c.push("-webkit-transform: translate(",a.translate[0],"px,",a.translate[1],"px); ");c.push("-webkit-animation-timing-function: ",a.gc,"; ");c.push("}\\\\n")});c.push("}\\\\n");return c.join("")}; W.IQ=function(a,b){if(!W.Oh&&(W.Oh=H("img",{src:I.pa+"drag_cross.png",width:13,height:9}),W.Oh.style.position="absolute",6==x.da.ma)){delete W.Oh;var c=(W.Oh=H("div")).style;c.position="absolute";c.width="13px";c.height="9px";c.filter=\'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image,src="\'+I.pa+\'drag_cross.png")\'}c=W.Oh.style;c.left=a.width-6+"px";c.top=a.height-5+"px";b.appendChild(W.Oh)};W.vU=function(){W.Oh&&W.Oh.parentNode&&W.Oh.parentNode.removeChild(W.Oh)};W.xv=[]; W.uH=function(){this.style.WebkitAnimation=""}; x.extend(W.prototype,{initialize:function(a){this.Er();kb.prototype.initialize.call(this,a);this.Oa||x.K.U(this.Bc);this.point=$a(this.point,this.map);this.ta(this.point);this.Vb(this.z.yj);this.hz(this.z.Wk);this.ez(this.z.rotation);this.z.label&&this.rv&&this.z.label.