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.
1 line
14 KiB
1 line
14 KiB
/**/_jsload2 && _jsload2('oppc', 'var Eh=256,Fh=32;function Gh(){this.C=p}var Hh;B.Xe(function(a){if(!a.B.py){var b=new Gh;Db(a.Ua,b.va(a.B.Xb));b.C=a.Ua.lastChild;a.R.l1=b}}); Gh.prototype.va=function(a){a=[\'<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:\'+a+\'">\'];a.push(\'<div class="BMap_zoomer" style="top:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="top:0;right:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;right:0;"></div>\');a.push("</div>");return a.join("")}; Gh.prototype.action=function(a,b){if(!Hh){var c=this.C;if(c){var d=4/3,e=Math.ceil((b?60:120)/2),f=Math.max(15,e/d),g=c.style;g.width=2*e+"px";g.height=2*f+"px";g.visibility="visible";c=c.children;b?(c[0].style.backgroundPosition="0 0",c[1].style.backgroundPosition="-7px 0",c[2].style.backgroundPosition="0 -7px",c[3].style.backgroundPosition="-7px -7px"):(c[0].style.backgroundPosition="-7px -7px",c[1].style.backgroundPosition="0 -7px",c[2].style.backgroundPosition="-7px 0",c[3].style.backgroundPosition= "0 0");var c=p,i=a.x-e,j=a.y-f;if(!isNaN(i)&&!isNaN(j)){g.left=i+"px";g.top=j+"px";var l=Math.ceil((b?120:60)/2),m=Math.max(15,l/d),l=l-e,m=Math.ceil(m-f),n=this.C.style;Hh&&Hh.end();Hh=new wb({Hc:20,duration:240,hc:xb.FD,ep:100,va:function(a){if(!(a<0.1)){var b=Math.ceil(l*a),a=Math.ceil(m*a);n.width=(e+b)*2+"px";n.height=(f+a)*2+"px";n.left=i-b+"px";n.top=j-a+"px"}},finish:function(){Hh=q;setTimeout(function(){g.visibility="hidden"},300)}})}}}};B.Xe(function(a){function b(a){if(f.B.lp){var b=new N("ondeepzoommousewheel");c(a,na(b,a));i.c1.call(i,b);Gb(a)}}function c(a,b){var c=a.srcElement||a.target,d=a.offsetX||a.layerX||0,e=a.offsetY||a.layerY||0,g=p,i=p;1!==c.nodeType&&(c=c.parentNode);for(;c&&c!==f.Ua;){c.ba&&(x.lang.Lc(c.ba)instanceof kb&&(g=x.lang.Lc(c.ba)),x.lang.Lc(c.ba)instanceof td&&(i=x.lang.Lc(c.ba)));if(!(0===c.clientWidth&&0===c.clientHeight&&c.offsetParent&&"TD"===c.offsetParent.nodeName)&&"http://www.w3.org/2000/svg"!==c.namespaceURI)d+= c.offsetLeft||0,e+=c.offsetTop||0;else if("http://www.w3.org/2000/svg"===c.namespaceURI&&B.Eq){var y=B.Eq.ot(f).hf;if(-1<navigator.userAgent.indexOf("Opera")&&"svg"!==c.tagName){if(c=x.lang.Lc(c.ba))c=c.Kd(),d+=f.Cc(c.xe()).x,e+=f.Cc(c.pf()).y;break}if(39<=x.da.Te||51<=x.da.gx)d=a.layerX||0,e=a.layerY||0;if(y&&!(window.ActiveXObject||"ActiveXObject"in window))d+=parseFloat(y.style.left)+f.offsetX,e+=parseFloat(y.style.top)+f.offsetY;if(y&&((window.ActiveXObject||"ActiveXObject"in window)&&"svg"=== c.nodeName.toLowerCase())&&!c.ba)d+=parseFloat(y.style.left)+f.offsetX,e+=parseFloat(y.style.top)+f.offsetY;if((9<=x.da.ma||-1<navigator.userAgent.toLowerCase().indexOf("trident"))&&"svg"!==c.nodeName.toLowerCase()){d+=f.offsetX;e+=f.offsetY;break}if(!x.da.ma)break}c=c.offsetParent}if((65<=x.da.gx||60<=x.da.Te)&&"ondeepzoommousewheel"===b.type){d=a.clientX+window.scrollX;e=a.clientY+window.scrollY;for(c=f.Ga();c;)d-=c.offsetLeft,e-=c.offsetTop,c=c.offsetParent}b.offsetX=d;b.offsetY=e;b.pixel=b.Wa= new R(d,e);b.pointN=b.Cg=f.Rb(b.Wa);b.point=b.point=f.Bg(b.Wa);b.overlay=b.cb=g;b.domEvent=a;b.Bb=i;return b}function d(a){var b=f.R,d=!b.Fy&&!b.Gy;if(b.Wy)clearTimeout(b.Wy),b.Wy=p,d&&(f.dispatchEvent(c(a,na(new N("onrightclick"),a))),f.Sa|=Eh,f.dispatchEvent(c(a,na(new N("onrightdblclick"),a))),f.Sa^=Eh);else{d&&f.dispatchEvent(c(a,na(new N("onrightclick"),a)));var e=c(a,na(new N("onrightclickex"),a));b.Wy=setTimeout(function(){b.Wy=p;d&&f.dispatchEvent(e)},f.B.OC)}}function e(a){if(f.B.lp){var b= f.R;b.nb&&(b.nb.stop(),b.nb=p,setTimeout(function(){f.dispatchEvent(new N("onmoveend"))},1));f.Sa|=Fh;a=window.event||a;f.Mc=f.Na;b=new N("onmousewheel");b.wq=0<=a.wheelDelta||0>a.detail;var d=new Date;b.wq===o&&f.Na===f.oa().Jm()||b.wq===q&&f.Na===f.oa().up()||220>d-g?f.Sa^=Fh:(g=d,c(a,na(b,a)),f.dispatchEvent(b),f.Sa^=Fh,a.returnValue=q);Gb(a)}}var f=a;f.kZ=a.Wb();a.Ua.N4=ea(q);x.M(f.platform,"mousemove",function(a){0===f.Sa&&f.dispatchEvent(c(a,na(new N("onmousemove"),a)))});x.M(f.platform,"mousedown", function(a){if(f.B.OD){a=window.event||a;x.da.ma||Gb(a);var b=f.R;b.Ic=o;var d=a.srcElement||a.target;b.nb&&(b.nb.stop(),b.nb=p,f.dispatchEvent(new N("onmoveend")));b.Ku=a.clientX||a.pageX||0;for(b.Lu=a.clientY||a.pageY||0;d&&d!==f.Ua;){if(x.K.Et(d,"BMap_Marker")){b.Ic=q;var e=x.lang.Lc(d.ba);if(e instanceof W&&e.z.jf===o||e.z.Gb===o)return}d=d.parentNode}x.da.ma&&f.Ae.setCapture&&f.Ae.setCapture();f.dispatchEvent(c(a,na(new N("onmousedown"),a)));f.B.Gb&&(!(f.Sa&8)&&2!==a.button)&&(b.Tp=b.Ku,b.Nk= b.Lu,b.Sy=f.offsetX,b.m=f.offsetY,f.Sa|=8,f.platform.style.cursor=0===f.R.Re.length?f.B.Id:"pointer")}});x.M(document,"mousemove",function(a){var a=window.event||a,b=f.R,d=a.clientX||a.pageX||0,e=a.clientY||a.pageY||0;if(b.Ku||b.Lu)b.Fy=d-b.Ku,b.Gy=e-b.Lu;var g=db(),i=40<g-b.ZM;if(!(18>g-b.Op)&&(i&&(b.ZM=g),b.Op=g,f.Sa&8&&f.B.Gb)){var w=f.platform.style;w.cursor.replace(/"|\\s/g,"")!==f.B.Id&&(w.cursor=f.B.Id);b.gk||(f.dispatchEvent(c(a,na(new N("ondragstart"),a))),f.dispatchEvent(new N("onmovestart")), b.vD=new R(d,e),b.wD=g);0===b.Tp&&(0===b.Nk&&f.R.s4)&&(b.Tp=d,b.Nk=e,b.Sy=f.offsetX,b.m=f.offsetY);if(0!==d-b.Tp||0!==e-b.Nk)f.R.gk=o,f.dispatchEvent(c(a,na(new N("ondragging"),a))),f.Me(b.Sy+d-b.Tp,b.m+e-b.Nk,p,i)}});x.M(document,"mouseup",function(a){x.da.ma&&f.Ae.releaseCapture&&f.Ae.releaseCapture();var b=f.R;b.W4&&f.i3(o);var a=window.event||a,d=a.clientX||a.pageX,e=a.clientY||a.pageY;if(f.Sa&8&&f.B.Gb){f.Sa^=8;f.platform.style.cursor=0===b.Re.length?f.B.Xb:"pointer";if(f.R.gk){var g=c(a,na(new N("ondragend"), a));f.dispatchEvent(g);Ih(f,new R(d,e))}b.gk=q}b.Ic=q;2===a.button&&(b.Ku=p,b.Lu=p,b.Fy=0,b.Gy=0);f.dispatchEvent(c(a,na(new N("onmouseup"),a)))});4<=x.da.Te?(x.M(f.Ua,"mouseup",function(a){2===a.button&&d(a)}),x.M(f.Ua,"contextmenu",function(a){f.B.zL||pa(a)})):x.M(f.Ua,"contextmenu",function(a){d(a);f.B.zL||pa(a)});var g=new Date,i;a.B.AL&&(i=new Jh(a),a.S2=i);if(x.da.ma&&9>=x.da.ma||f.kZ)i=p;x.M(f.Ua,"mousewheel",i?b:e);window.addEventListener&&f.Ua.addEventListener("DOMMouseScroll",i?b:e,q);x.M(f.platform, "click",function(a){var b=new N("onclick"),d=new N("onclickex"),e=f.R;c(a,na(b,a));c(a,na(d,a));if(!f.Sa){var g=!e.Fy&&!e.Gy;g&&f.dispatchEvent(b);if(!e.Si)e.Si=setTimeout(function(){e.Si=p;g&&f.dispatchEvent(d)},f.B.OC)}e.Ku=p;e.Lu=p;e.Fy=0;e.Gy=0});x.M(f.platform,"dblclick",function(a){if(!f.Sa){f.Sa=f.Sa|Eh;x.da.ma&&f.dispatchEvent(c(a,na(new N("onclick"),a)));var b=f.R;if(b.Si){clearTimeout(b.Si);b.Si=p}f.dispatchEvent(c(a,na(new N("ondblclick"),a)));f.Sa=f.Sa^Eh}});x.M(document,"mousedown",function(b){var b= window.event||b,b=b.srcElement||b.target,c=f.R;c.GC=c.GC?x.K.contains(a.Ua,b):x.K.contains(a.platform,b)})}); function Ih(a,b){if(a.B.Ex){var c=a.R,d=db();if(100<d-c.Op)a.dispatchEvent(new N("onmoveend")),c.gk=q;else{var e=c.vD,f=[0<b.x-e.x?1:-1,0<b.y-e.y?1:-1],d=Ib(e,b)/((d-c.wD)/1E3)/2,g=d/1.8,i=0.4*g*d/1E3,j=Math.abs(e.x-b.x),l=0,m=0;0===Math.abs(e.y-b.y)?l=j:(e=Math.abs(e.x-b.x)/Math.abs(e.y-b.y),m=Math.round(Math.sqrt(i*i/(1+e*e))),l=Math.round(e*m));-1===f[0]&&(l=-l);-1===f[1]&&(m=-m);c.nb&&(c.nb.stop(),c.nb=p,a.dispatchEvent(new N("onmoveend")));var n=d/1E3,s=a.offsetX,u=a.offsetY,w=q;c.nb=new wb({duration:g, Hc:30,hc:function(a){a=a*n/1.8;return n*a-0.9*a*a},va:function(b){b=b*3.6/(n*n);w=!w;a.Me(s+Math.round(b*l),u+Math.round(b*m),p,w)},finish:function(){c.nb=p;a.Me(s+Math.round(l),u+Math.round(m));a.dispatchEvent(new N("onmoveend"))},au:function(b){c.nb=p;b=b*3.6/(n*n);a.Me(s+Math.round(b*l),u+Math.round(b*m));setTimeout(function(){a.dispatchEvent(new N("onmoveend"))},1)}})}}else a.dispatchEvent(new N("onmoveend"))} function Jh(a){this.map=a;this.fb=a.fb;this.vW=Kh();this.Rd=0;this.EF=1;this.DF=this.eh=p;this.oF=1;this.pF=-1;this.SE=q;this.Zb=19;this.fc=3;this.bN=0;this.Ok="";this.Lt=q;this.gF=this.aN=0;this.BC()}var Lh=Jh.prototype;Lh.BC=function(){var a=this,b=a.map;a.Zb=b.B.Zb||19;a.fc=b.B.fc||3;b.addEventListener("onmaptypechange",function(){a.Zb=b.B.Zb||19;a.fc=b.B.fc||3})}; Lh.c1=function(a){var b=this,c=b.map,d=c.R;b.Zb=c.B.Zb||19;b.fc=c.B.fc||3;d.nb&&(d.nb.stop(),d.nb=p,c.dispatchEvent(new N("onmoveend")));var e=Math.floor(a.domEvent.timeStamp),f=e-this.bN,g=0<=a.domEvent.wheelDelta,d=Math.abs(a.domEvent.wheelDelta),i=Math.abs(a.domEvent.deltaY);100<f&&(this.Lt=q,this.Ok=Mh(d,i,a.T2),this.Rd=0,this.hO=p);"padScroll"===this.Ok&&(0===i&&0===f&&this.Lt===q)&&(this.Lt=o);if(0!==f){this.bN=e;if("padScroll"===this.Ok&&40>f){b.Rd=g?b.Rd+0.13:b.Rd-0.16;var e=a.domEvent.wheelDelta- this.aN,f=e-this.gF,j=this.gF;this.gF=e;this.aN=a.domEvent.wheelDelta;this.$M=g;if("boolean"===typeof this.$M&&g!==this.$M||"padScroll"===this.Ok&&3===d&&!isNaN(f)&&50<Math.abs(e-j))b.hl&&(b.hl.stop(),b.hl=p);else if(0!==this.hO)if(0>e&&0<j||0<e&&0>j)5>i&&(this.Lt=q);else return}this.hO=this.Rd;d=a.domEvent.wheelDelta/120||-a.domEvent.detail/3;0===d&&x.da.Te&&(d=-a.domEvent.deltaY);if(0!==d&&(d=Math.ceil(Math.abs(d))*(0<=d?1:-1),"padPinch"===this.Ok&&(d=a.domEvent.deltaY),i=0<d?1:-1,c=c.ga(),0>i&& (b.oF=-1),0<i&&(b.pF=1),e=b.fc,!(c>=b.Zb&&0<i&&1===b.oF||c<=e&&0>i&&-1===b.pF))){"mouseWheel"!==this.Ok&&(d*=0.6);b.Rd+=d;"mouseWheel"===this.Ok&&(b.Rd=b.dN(b.Rd));var l=new R(a.Wa.x,a.Wa.y);if("mouseWheel"!==this.Ok){if(!b.hl&&!b.De&&!(0===b.Rd||b.Lt===o))b.De=setTimeout(function(){var a=Math.abs(b.Rd),a=Math.round(a);b.Rd=g?a:-a;b.Rd=b.dN(b.Rd);b.Rd!==0&&b.MP(l,b.Rd);b.De=p},30)}else b.hl&&(b.hl.stop(),b.hl=p),b.De&&clearTimeout(b.De),b.De=setTimeout(function(){b.MP(l,b.Rd);b.De=p},25)}}}; Lh.dN=function(a){var b=this.fc,c=this.Zb,d=this.map.ga(),a=Math.min(Math.max(a,-3),3);d+a>c?a=c-d:d+a<b&&(a=b-d);return a}; Lh.MP=function(a,b){var c=new M(0,0),d=this,e=d.map,f=d.fb,g=Math.pow(2,b),i=d.EF,j,l=e.width,m=e.height,n=(a.x-l/2)/l,s=(a.y-m/2)/m,u=f.Pb,w=u.style,y,D,C=d.vW;d.SE||(d.SE=o,e.dispatchEvent(new N("onzoomstart")));e.rd&&x.K.U(e.rd);f.Ll.style.visibility="hidden";f.nd&&(f.nd.style.visibility="hidden");f.wo.style.visibility="hidden";if(!d.eh){w[C]||(w[C]="translate3d(0,0,0)");var F=d.DF;F&&(F.parentNode&&F.parentNode.removeChild(F),d.DF=p);d.DF=d.eh=u.cloneNode(o);e.platform.insertBefore(d.eh,e.platform.firstChild)}w.visibility= "hidden";var A=d.eh.style;d.hl=new wb({Hc:60,duration:e.B.kp?400:1,hc:xb.bt,va:function(a){if(b>0){j=i+a*(g-i);y=-l*(j-1)*n-c.width*a;D=-m*(j-1)*s-c.height*a}else{j=i-a*(i-g);y=l*(1-j)*n;D=m*(1-j)*s}A[C]="translate3d("+y+"px, "+D+"px, 0) scale("+j+")";d.EF=j},finish:function(){var c=e.ga(),c=Math.round(c+b);e.Mc=e.Na;e.Na=c;var c=f.NA(a),g=e.oa().yc(e.ga());e.dc=new K(c.lng+(e.width/2-a.x)*g,c.lat-(e.height/2-a.y)*g);e.re=e.Nd.rh(e.dc,e.Sb);w.visibility="";f.Vf();e.rd&&(x.da.ma&&x.da.ma<8||document.compatMode=== "BackCompat"?x.K.show(e.rd):setTimeout(function(){x.K.show(e.rd)},100));f.Ll.style.visibility="";f.wo.style.visibility="";e.dispatchEvent(new N("onzoomend"));d.Rd=0;d.EF=1;setTimeout(function(){d.oO()},100);d.oO();d.hl=p;d.oF=1;d.pF=-1;d.SE=q}})};Lh.oO=function(){this.eh&&(Md(this.eh),this.eh.parentNode&&(this.eh.parentNode.removeChild(this.eh),this.eh.innerHTML="",this.eh=p))}; function Kh(){var a="transform",b=document.createElement("div"),c=["Webkit","Moz","O","ms"],d=c.length,e="",b=b.style;a in b&&(e=a);for(a=a.replace(/^[a-z]/,function(a){return a.toUpperCase()});d--;){var f=c[d]+a;if(f in b){e=f;break}}return e}function Mh(a,b,c){var d="mouseWheel";if(120===a&&1>b)d="padPinch";else if(!isNaN(a)&&(10>a||120!==a)&&0===b%1)d="padScroll";x.da.Te&&0===c&&(d="padScroll");x.da.QF&&12===a&&(d="mouseWheel");return d};B.Xe(function(a){x.M(document,"keydown",function(b){a.R.Fi==o&&(a.R.Fi=q);if(a.B.Fx&&a.R.GC)switch(b=window.event||b,b.keyCode||b.which){case 43:case 189:case 109:a.R.Ic=o;a.dispatchEvent(new N("onminuspress"));break;case 43:case 61:case 187:case 107:a.R.Ic=o;a.dispatchEvent(new N("onpluspress"));break;case 33:a.R.Ic=q;a.R.Fi=o;a.Ag(0,Math.round(0.8*a.height));pa(b);break;case 34:a.R.Ic=q;a.R.Fi=o;a.Ag(0,-Math.round(0.8*a.height));pa(b);break;case 35:a.R.Ic=q;a.R.Fi=o;a.Ag(-Math.round(0.8*a.width), 0);pa(b);break;case 36:a.R.Ic=q;a.R.Fi=o;a.Ag(Math.round(0.8*a.width),0);pa(b);break;case 37:a.R.Ic=o;a.R.lc|=1;a.gb();pa(b);break;case 38:a.R.Ic=o;a.R.lc|=2;a.gb();pa(b);break;case 39:a.R.Ic=o;a.R.lc|=4;a.gb();pa(b);break;case 40:a.R.Ic=o,a.R.lc|=8,a.gb(),pa(b)}});x.M(document,"keyup",function(b){if(a.B.Fx)switch(b=window.event||b,b.keyCode||b.which){case 37:a.R.lc&=-2;0!=a.R.lc&&a.gb();break;case 38:a.R.lc&=-3;0!=a.R.lc&&a.gb();break;case 39:a.R.lc&=-5;0!=a.R.lc&&a.gb();break;case 40:a.R.lc&=-9, 0!=a.R.lc&&a.gb()}a.R.Ic=q});Na.prototype.gb=function(){if(!this.gb.Iy||!(this.gb.nB==this.R.lc&&this.R.Fi==o)){var a=this,c=a.R.lc;a.gb.nB=c;a.gb.ny=30;a.gb.duration=999;a.gb.kf=a.gb.lf=0;c&1&&(a.gb.kf=1);c&2&&(a.gb.lf=1);c&4&&(a.gb.kf=-1);c&8&&(a.gb.lf=-1);c&1&&c&4&&(a.gb.kf=0);c&2&&c&8&&(a.gb.lf=0);if(!a.gb.Iy){a.gb.Iy=o;a.gb.time=db();a.gb.UV=a.gb.time;a.dispatchEvent(new N("onmovestart"));var d=new wb({Hc:a.gb.ny,duration:a.gb.duration,hc:xb.gN,va:function(){var c=a.gb,f=a.R.lc;if(a.gb.nB!=f){a.gb.nB= f;if(f&1)c.kf=1;if(f&2)c.lf=1;if(f&4)c.kf=-1;if(f&8)c.lf=-1;if(f&1&&f&4)c.kf=0;if(f&2&&f&8)c.lf=0}if(a.R.Fi==o){c.kf=0;c.lf=0}var f=db(),g=Math.pow((f-c.UV)/c.duration,2);if(!a.R.lc){c.Iy=q;d.mG=o;a.gb.time=db();setTimeout(function(){a.dispatchEvent(new N("onmoveend"))},40)}var i=f-c.time,j=c.kf*i*g>=0?Math.ceil(c.kf*i*g):Math.floor(c.kf*i*g),g=c.lf*i*g>=0?Math.ceil(c.lf*i*g):Math.floor(c.lf*i*g);if(j!=0&&g!=0){j=Math.round(j*0.7);g=Math.round(g*0.7)}c.time=f;a.Me(a.offsetX+j,a.offsetY+g)},finish:function(){a.gb.time= db();setTimeout(function(){a.wH()},a.gb.ny)}})}}};Na.prototype.wH=function(){var a=this,c=a.gb;a.R.Fi&&(c.kf=0,c.lf=0);if(a.R.lc){var d=db(),e=d-c.time,f=Math.ceil(c.kf*e),e=Math.ceil(c.lf*e);c.time=d;a.Me(a.offsetX+f,a.offsetY+e);setTimeout(function(){a.wH()},c.ny)}else c.Iy=q,a.dispatchEvent(new N("onmoveend"))}}); '); |