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

1 line
2.3 KiB

/**/_jsload2 && _jsload2('copyrightctrl', 'x.extend(Xc.prototype,{yf:function(){this.D&&this.Ie(this.D)},initialize:function(a){Rc.prototype.initialize.call(this,a);this.Ba();this.Lo();this.ca(a);return this.C},ca:function(a){var b=this;a.addEventListener("load",function(){b.Lo()});a.addEventListener("moveend",function(){b.Lo()});a.addEventListener("zoomend",function(){b.Lo()});a.addEventListener("maptypechange",function(){b.C&&(b.C.style.color=b.D.oa().Qm())})},Ba:function(){Rc.prototype.Ba.call(this);x.K.Ta(this.C,"BMap_cpyCtrl");var a= this.C.style;a.cursor="default";a.whiteSpace="nowrap";a.MozUserSelect="none";a.color=this.D.oa().Qm();a.background="none";a.font="11px/15px "+I.fontFamily;Rc.prototype.Eo.call(this)},Lo:function(){if(this.D&&this.C&&0!=this.bc.length)for(var a=0,b=this.bc.length;a<b;a++){this.D.ga();var c=this.D.Rb({x:0,y:0}),d=this.D.Rb({x:this.D.width,y:this.D.height}),c=new jb(c,d);if(this.bc[a].bounds&&c.Mt(this.bc[a].bounds)==p){if(this.C)for(d=0;d<this.C.children.length;d++)if(this.C.children[d].getAttribute("_cid")== this.bc[a].id&&"none"!=this.C.children[d].style.display){this.C.children[d].style.display="none";return}}else if(this.C){for(var c=q,d=0,e=this.C.children.length;d<e;d++)if(this.C.children[d].getAttribute("_cid")==this.bc[a].id){c=o;this.C.children[d].style.display="inline";this.C.children[d].innerHTML!=this.bc[a].content&&(this.C.children[d].innerHTML=this.bc[a].content);break}c||this.sr(this.bc[a])}}},Pw:function(a){if(a&&Za(a.id)&&!isNaN(a.id)){var b={bounds:p,content:""},c;for(c in a)b[c]=a[c]; if(a=this.Gm(a.id))for(var d in b)a[d]=b[d];else this.bc.push(b);this.Lo()}},Gm:function(a){for(var b=0,c=this.bc.length;b<c;b++)if(this.bc[b].id==a)return this.bc[b]},kE:v("bc"),JF:function(a){for(var b,c=0,d=this.bc.length;c<d;c++)this.bc[c].id==a&&(b=this.bc.splice(c,1),c--,d=this.bc.length);(a=this.Ld(a))&&a.parentNode&&a.parentNode.removeChild(a);this.Lo();return b},sr:function(a){this.C&&(this.C.innerHTML+="<span _cid=\'"+a.id+"\'>"+a.content+"</span>")},Ld:function(a){var b=Rc.prototype.Ld.call(this); if(Kb(a)){if(b)for(var c=0,d=b.children.length;c<d;c++)if(b.children[c].getAttribute("_cid")==a)return b.children[c]}else return b}});U(mg,{addCopyright:mg.Pw,removeCopyright:mg.JF,getCopyright:mg.Gm,getCopyrightCollection:mg.kE}); ');