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
214 KiB
1 line
214 KiB
10 months ago
|
/**/_jsload2 && _jsload2('tile', 'function Ig(){this.Fd=this.fq=this.Qp=this.Tj=p;this.XE=q;this.ii=p}x.lang.ua(Ig,jd,"MobileInfoWindow"); x.extend(Ig.prototype,{initialize:function(a){this.D=a;this.ii=document.createElement("div");this.ii.className="iw";this.ii.style.cssText="position:absolute; line-height:28px; text-align:center; border:0px;";var b=this.Tj=document.createElement("div");this.ii.appendChild(b);this.Qp=document.createElement("div");this.Qp.className="iw_l";b.appendChild(this.Qp);this.fq=document.createElement("div");this.fq.className="iw_r";b.appendChild(this.fq);this.sk=document.createElement("a");this.sk.setAttribute("target", "_blank");this.sk.className="iw_s iw_s0 iw_c";this.sk.innerHTML="<div class=\'iw_bg iw_cc\'></div>";b.appendChild(this.sk);a.Rf().YD.appendChild(this.ii);this.bind();this.Fd=this.sk.getElementsByTagName("DIV")[0];this.Qp.style.display="block";this.fq.style.display="block";return this.ii},bind:function(){var a=this;x.M(a.Qp,"click",function(b){a.HZ();b.preventDefault();b.stopPropagation()});x.M(a.fq,"click",function(b){a.pZ();b.preventDefault();b.stopPropagation()});x.M(a.sk,"click",function(a){a.stopPropagation()}); x.Fb("touchstart touchmove touchend gesturestart gesturechange mousedown mouseout mouseover click mousewheel keydown selectstart".split(" "),function(b){x.M(a.sk,b,oa);x.M(a.Qp,b,oa);x.M(a.fq,b,oa)})},GJ:t(),wJ:t(),ia:function(){return new K(this.RI.lng,this.RI.lat)},ta:t(),Va:v("XE"),U:function(){x.K.U(this.V);this.ii.style.display="none";this.XE=q},show:function(a){a&&(this.point=a);x.K.show(this.V);this.ii.style.display="block";this.XE=o;this.D.R.ob=this},N_:function(){var a=this.D,b=this.Yh,c= this.Tj.offsetWidth,d=this.Tj.offsetHeight,e=a.vb(),c=c/2+16,d=d/2+78;if(this.Yh){var f=new R(0,0);b.x<c?f.x=c-b.x:e.width-b.x-8<c&&(f.x=e.width-b.x-8-c);b.y<d?f.y=d-b.y:60>e.height-b.y&&(f.y=e.height-b.y-60);0==f.x&&0==f.y||a.Ag(f.x,f.y)}},switchTo:function(a){this.Yh=a.point;this.ff=a.name;this.ok=a.uid;this.hk=a.Aa;this.gU=parseInt(this.D.platform.style.left);this.hU=parseInt(this.D.platform.style.top);this.RI=this.D.Rb(this.Yh);this.show();this.k_();this.CO()},g5:function(){this.Tj.className= "iw_rt";this.show();this.CO()},k_:function(){this.sk.setAttribute("href","http://map.baidu.com/place/detail?uid="+this.ok+"&output=html&source=jsapi&operate=mapclick&clicktype=vector");this.Tj.className="iw_rt";this.Fd.innerHTML="<div class=\'iw_poir\'><div class=\'crl_ar\' style=\'white-space:nowrap;text-overflow:ellipsis;overflow:hidden;\'>"+this.ff+"</div></div>";this.draw()},CO:function(){var a=this;a.LE||(a.LE=setTimeout(function(){a.N_();clearTimeout(a.LE);a.LE=p},100))},Z5:function(){var a=$("popList"); 43<this.Fd.textContent.length&&(58<=this.Fd.textContent.length?a.Ta("zoom2"):a.Ta("zoom1"))},L2:function(){this.Fd.innerHTML=""},draw:function(){if(this.Yh){var a=this.Yh,b=a.y;this.ii.style.left=a.x-98-this.gU+"px";this.ii.style.top=b-62-this.hU+"px"}},r4:function(){Xa()&&(location.href="http://map.baidu.com/detail?qt=ninf&wd=&detail=scope&uid="+this.ok);J()&&(location.href="http://map.baidu.com/mobile/#place/detail/qt=inf&c=131&uid="+this.ok)},HZ:function(){this.D.Rb(this.Yh);var a=this.D.ga(), a=Math.pow(2,18-a),b=this.D.vb(),c=this.D.dc,a="http://map.baidu.com/mobile/?third_party=uri_api#index/searchnearby/foo=bar/"+this.mZ({nb_x:c.lng+a*(this.Yh.x-b.width/2),nb_y:c.lat-a*(this.Yh.y-b.height/2),center_name:this.ff,from:"searchnearby"});window.open(a,"_blank")},pZ:function(){var a=this.D.dh,b=this.D.Wb()?"&operate=vectorclick":"&operate=mapclick",a=B.jc+"direction?origin=\\u6211\\u7684\\u4f4d\\u7f6e&destination="+this.ff+"&mode=navigation&output=html&src=jsapi"+b+"®ion="+a;Ta("navlinkmobile"); window.open(a,"_blank")},mZ:function(a){if(!a)return"";var b=[],c;for(c in a)b.push(c+"="+encodeURIComponent(a[c]));return b.join("&")}});B.bH=Ig;window.Eb={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,-23767
|