1 line
214 KiB
JavaScript
1 line
214 KiB
JavaScript
|
|
_jsload2&&_jsload2('tile', 'function Of(){this.Ed=this.Gp=this.sp=this.Ij=s;this.BE=t;this.Zh=s}z.lang.ta(Of,mc,"MobileInfoWindow"); z.extend(Of.prototype,{initialize:function(a){this.B=a;this.Zh=document.createElement("div");this.Zh.className="iw";this.Zh.style.cssText="position:absolute; line-height:28px; text-align:center; border:0px;";var b=this.Ij=document.createElement("div");this.Zh.appendChild(b);this.sp=document.createElement("div");this.sp.className="iw_l";b.appendChild(this.sp);this.Gp=document.createElement("div");this.Gp.className="iw_r";b.appendChild(this.Gp);this.lk=document.createElement("a");this.lk.setAttribute("target", "_blank");this.lk.className="iw_s iw_s0 iw_c";this.lk.innerHTML="<div class=\'iw_bg iw_cc\'></div>";b.appendChild(this.lk);a.Tf().BD.appendChild(this.Zh);this.bind();this.Ed=this.lk.getElementsByTagName("DIV")[0];this.sp.style.display="block";this.Gp.style.display="block";return this.Zh},bind:function(){var a=this;z.M(a.sp,"click",function(b){a.xZ();b.preventDefault();b.stopPropagation()});z.M(a.Gp,"click",function(b){a.gZ();b.preventDefault();b.stopPropagation()});z.M(a.lk,"click",function(a){a.stopPropagation()}); z.Fb("touchstart touchmove touchend gesturestart gesturechange mousedown mouseout mouseover click mousewheel keydown selectstart".split(" "),function(b){z.M(a.lk,b,ma);z.M(a.sp,b,ma);z.M(a.Gp,b,ma)})},mJ:u(),cJ:u(),ga:function(){return new J(this.wI.lng,this.wI.lat)},sa:u(),Xa:w("BE"),U:function(){z.D.U(this.V);this.Zh.style.display="none";this.BE=t},show:function(a){a&&(this.point=a);z.D.show(this.V);this.Zh.style.display="block";this.BE=q;this.B.R.qb=this},y_:function(){var a=this.B,b=this.Ph,c= this.Ij.offsetWidth,e=this.Ij.offsetHeight,f=a.cb(),c=c/2+16,e=e/2+78;if(this.Ph){var g=new Q(0,0);b.x<c?g.x=c-b.x:f.width-b.x-8<c&&(g.x=f.width-b.x-8-c);b.y<e?g.y=e-b.y:60>f.height-b.y&&(g.y=f.height-b.y-60);0==g.x&&0==g.y||a.Ag(g.x,g.y)}},switchTo:function(a){this.Ph=a.point;this.kd=a.name;this.hk=a.uid;this.Zj=a.za;this.PT=parseInt(this.B.platform.style.left);this.QT=parseInt(this.B.platform.style.top);this.wI=this.B.xb(this.Ph);this.show();this.$Z();this.nO()},d5:function(){this.Ij.className= "iw_rt";this.show();this.nO()},$Z:function(){this.lk.setAttribute("href","http://map.baidu.com/place/detail?uid="+this.hk+"&output=html&source=jsapi&operate=mapclick&clicktype=vector");this.Ij.className="iw_rt";this.Ed.innerHTML="<div class=\'iw_poir\'><div class=\'crl_ar\' style=\'white-space:nowrap;text-overflow:ellipsis;overflow:hidden;\'>"+this.kd+"</div></div>";this.draw()},nO:function(){var a=this;a.qE||(a.qE=setTimeout(function(){a.y_();clearTimeout(a.qE);a.qE=s},100))},Y5:function(){var a=$("popList"); 43<this.Ed.textContent.length&&(58<=this.Ed.textContent.length?a.Ua("zoom2"):a.Ua("zoom1"))},w2:function(){this.Ed.innerHTML=""},draw:function(){if(this.Ph){var a=this.Ph,b=a.y;this.Zh.style.left=a.x-98-this.PT+"px";this.Zh.style.top=b-62-this.QT+"px"}},i4:function(){Ua()&&(location.href="http://map.baidu.com/detail?qt=ninf&wd=&detail=scope&uid="+this.hk);H()&&(location.href="http://map.baidu.com/mobile/#place/detail/qt=inf&c=131&uid="+this.hk)},xZ:function(){this.B.xb(this.Ph);var a=this.B.fa(), a=Math.pow(2,18-a),b=this.B.cb(),c=this.B.fc,a="http://map.baidu.com/mobile/?third_party=uri_api#index/searchnearby/foo=bar/"+this.dZ({nb_x:c.lng+a*(this.Ph.x-b.width/2),nb_y:c.lat-a*(this.Ph.y-b.height/2),center_name:this.kd,from:"searchnearby"});window.open(a,"_blank")},gZ:function(){var a=this.B.$g,b=this.B.Sb()?"&operate=vectorclick":"&operate=mapclick",a=B.Wc+"direction?origin=\\u6211\\u7684\\u4f4d\\u7f6e&destination="+this.kd+"&mode=navigation&output=html&src=jsapi"+b+"®ion="+a;Ra("navlinkmobile"); window.open(a,"_blank")},dZ:function(a){if(!a)return"";var b=[],c;for(c in a)b.push(c+"="+encodeURIComponent(a[c]));return b.join("&")}});B.JG=Of;window.Db={1:[3,-1497178369,[2,-1497178369,1,0,0,[],0,0]],10:[2,-1365210369,2,2,2,[4,3],1,0],100:[2,-237677057,8,2,2,[],2,0],1E3:[2,-843149313,8,0,2,[],1,0],1001:[2,-843149313,12,0,2,[],1,0],1002:[2,-237677057,3,0,2,[],1,0],1003:[2,-237677057,3
|