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
44 KiB
1 line
44 KiB
1 year ago
|
/**/_jsload2 && _jsload2('mapclick', 'var Zh=0,$h=1,ai=2,Li,Mi=p;Va=function(a){this.map=a;this.AF=this.ix=p;this.Zo={};this.vZ=8;this.qm=[];this.g0=4;this.jG="";this.Yk=this.he=this.ie=this.Be=this.fn=p;this.It=this.Gp="";this.tz=p;this.ui=0;this.WE=q;this.XN=p;this.wm=this.GL="";this.xj=new nd(I.pa+"spotmkrs.png",new M(18,18),{anchor:new M(9,9),imageOffset:new M(0,0),infoWindowOffset:new M(10,0)});this.ME()};Mi=Va.prototype; Mi.ME=function(){var a=this;a.GV();a.bind();a.Va=o;setTimeout(function(){a.ao()},1E3);setInterval(function(){a.WE=q},300)};Mi.N5=ea(q);Mi.bind=function(){this.WV();this.XV();this.YV();this.ZV()};Mi.ZV=function(){var a=this,b=this.map;b.addEventListener("vectorchanged",function(c,d){d.isvector?a.close():b.B.pj==o&&a.open()})}; Mi.xZ=function(a){var b=this.map;if(this.Va)if(10>b.ga())this.sm();else if(this.LC(),a&&a.point)if(this.ui&&(this.XN=a.point),this.WE=o,1!=this.ui&&(this.he&&this.he.U(),this.ie&&this.ie.U(),this.Od&&this.Od.U()),a=b.AY(a.point,b.ga()),a.Xy&&a.kx&&a.wg)this.wm=a.wg+"_"+a.Xy+"_"+a.kx,this.Zo[a.wg+"_"+a.Xy+"_"+a.kx]?this.jG!=this.wm&&this.oH(this.wm):this.z_({dF:a.wg,x:a.Xy,y:a.kx})}; Mi.oH=function(a){var b=this.map;if(b.oa()!=Oa&&b.oa()!=Ua)this.sm(),this.Jk();else if(b=a.split("_"),b=b[0]+"_"+b[1]+"_"+b[2],this.Zo[b]){this.sm();this.AF=this.rK(this.Zo[b][a]?this.Zo[b][a]:[],"MAP_CLICK_POI");this.jG=a;for(var a=-1,c=0,d=this.qm.length;c<d;c++)if(b==this.qm[c]){a=c;break}0<=a&&(this.qm.splice(a,1),this.qm.push(b))}};Mi.rK=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.m,f=d.v,g=new mb(e,{offsets:[f[3],f[2],f[3],f[2]]});g.v=f;g.m=e;g.o=d.o;g.Fh=d.Fh;this.map.Qw(g,b)}return o}; Mi.XV=function(){var a=this;this.map.addEventListener("mousemove",function(b){a.xZ(b)})};Mi.rW=function(a){if(10>this.map.ga())for(var b=0,c=a.spots.length;b<c;b++){if(a.spots[b].o){this.map.Gd(a.spots[b].o);break}}else this.tz&&this.PC(this.tz)};Mi.PC=function(a){var b=this.map;!(10>b.ga())&&a&&(this.ui=0,this.Yk&&(b.R.ob&&b.R.ob.close(),this.zi=a,this.C_(this.Yk)))};Mi.C_=function(a){if(a){var b=this;de.eb(function(c){b.NS(a,c)},{qt:"inf",uid:a,operate:"mapclick",clicktype:"tile"})}}; Mi.NS=function(a,b){var c=this,d=this.map;if(b&&b.content){var e=b.content,f=e.pano||0;Q.kb(e.geo,o);if(!g)var g={};g.isFromMPC=o;var i=e.addr,g=e.street_id||"";if(1==e.poiType||3==e.poiType)i=Q.unique(i.split(";")).join("; ");var j=e.tel;j&&(j=j.replace(/,/g,", "));c.vr(e.cla);var l=H("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),m=q;if(f)if(360>c.map.height)m=o;else{f=[];f.push("<div class=\'panoInfoBox\' id=\'panoInfoBox\' title=\'"+e.name+"\\u5916\\u666f\' title=\'\\u67e5\\u770b\\u5168\\u666f\' >"); var n=B.url.proto+B.url.domain.pano[0]+"/?qt=poiprv&uid="+g+"&width=323&height=101&quality=80&fovx=200",s=Fc(n);s?(s=Qc(s.path,{Kp:q}),n+="&"+s):n=p;f.push("<img filter = \'pano_thumnail_img\' class=\'pano_thumnail_img\' width=323 height=101 border=\'0\' alt=\'"+e.name+"\\u5916\\u666f\' src=\'"+n+"\' id=\'pano_"+a+"\'/>");f.push("<div filter = \'panoInfoBoxTitleBg\' class=\'panoInfoBoxTitleBg\'></div><a href=\'javascript:void(0)\' filter=\'panoInfoBoxTitleContent\' class=\'panoInfoBoxTitleContent\' >\\u8fdb\\u5165\\u5168\\u666f>></a>"); f.push("</div>");l.innerHTML=f.join("")}i&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u5730\\u5740\\uff1a"+i,l.appendChild(f));j&&(i=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),i.innerHTML="\\u7535\\u8bdd\\uff1a"+j,l.appendChild(i));e.tag&&(j=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),j.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(j));var j="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=tile",i="<div style=\'height:26px;\' id=\'detailDiv\'><a filter=\'detailInfo\' href=\'"+j+"\' target=\'_blank\' style=\'font-size:14px;color:#4d4d4d;font-weight:bold;text-decoration:none;\' onmouseover=\'this.style.textDecoration=\\"underline\\";this.style.
|