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/hotspot_3t1ygi.js

1 line
2.0 KiB

1 year ago
/**/_jsload2 && _jsload2('hotspot', 'B.Xe(function(a){function b(a){var b=this.R;b.Re=[];if(this.Sh)for(var c in this.Sh)if(!(0==c.indexOf("vector_")&&!this.Wb()||0==c.indexOf("tile_")&&this.Wb())){var g=this.Sh[c],i;for(i in g){var j=g[i];if(!(j.Uh>this.ga()||j.Gf<this.ga())){var l=this.Cc(j.ia());l.x<this.width&&l.y<this.height&&a.offsetX<l.x+j.Yv[1]&&(a.offsetX>l.x-j.Yv[3]&&a.offsetY>l.y-j.Yv[0]&&a.offsetY<l.y+j.Yv[2])&&b.Re.push(j)}}}}function c(){a.R.pL&&0<a.R.Re.length?(a.platform.style.cursor="pointer",a.R.pL=q):(a.R.Re=[],a.platform.style.cursor= a.B.Xb)}a.R.Cu=new ud("",{Aa:new M(15,-3),tq:{border:"1px solid #aaa",background:"#fffec2",whiteSpace:"nowrap",font:"12px "+I.fontFamily,mozBoxShadow:"1px 2px 6px #666",webkitBoxShadow:"1px 2px 6px #666",boxShadow:"1px 2px 6px #666",padding:"2px 4px"}});a.addEventListener("mousemove",function(c){if(!(c.cb&&!(c.cb instanceof ld)||c.Bb)){var e=this.R,f=e.Re.slice(0);b.call(this,c);for(var g=e.Re.slice(0),i=0;i<f.length;i++)for(var j=0;j<g.length;j++)f[i]===g[j]&&(f.splice(i,1),i--,g.splice(j,1),j--); if(0<f.length){var l=new N("onhotspotout");l.spots=f.slice(0);this.dispatchEvent(l)}if(0==e.Re.length&&!e.ty)this.platform.style.cursor!=this.B.Xb&&(this.platform.style.cursor=this.B.Xb),e.rq&&(clearTimeout(e.rq),e.rq=p),e.kG=setTimeout(function(){e.Cu.U()},400);else if(0<g.length&&(this.platform.style.cursor="pointer",l=new N("onhotspotover"),l.spots=g.slice(0),this.dispatchEvent(l),e.rq&&(clearTimeout(e.rq),e.rq=p),e.kG&&(clearTimeout(e.kG),e.kG=p),l.spots[0].AE()))e.rq=setTimeout(function(){e.Cu.ad(l.spots[0].AE()); e.Cu.ta(c.point);e.Cu.show();a.Ka(e.Cu)},400)}});a.addEventListener("clickex",function(a){var c=this.R;a.overlay||(0==c.Re.length&&b.call(this,a),0<c.Re.length&&(a=new N("onhotspotclick"),a.spots=c.Re.slice(0),a.spots.sort(function(a,b){return a.ia().lat-b.ia().lat}),this.dispatchEvent(a),c.Re.length=0))});a.addEventListener("load",c);a.addEventListener("moveend",c);a.addEventListener("zoomend",c);a.addEventListener("dragend",function(){this.R.pL=o})}); ');