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
15 KiB

/**/_jsload2 && _jsload2('navictrl', 'x.extend(nb.prototype,{yf:function(){this.D&&this.Ie(this.D)},initialize:function(a){Rc.prototype.initialize.call(this,a);this.Er();this.mw();this.Ba();this.ca={};!J()?this.UQ():this.TQ();this.nw(a.ga());this.VQ(a);this.k.mX&&this.b0();return this.C},Er:function(){this.Ui||(this.Ui=o,this.MT=19,this.Io=-1,this.rw=6,this.ek=1,this.rl=this.xo=-1,this.ow=this.OJ=this.Of=p,this.Zq="1100")},VQ:function(a){var b=this;a.addEventListener("zoomend",function(){b.D&&(b.nw(b.D.ga()),!b.$I&&b.Jr&&(b.Df=setTimeout(function(){b.VA()}, 1E3)))});a.addEventListener("mousewheel",function(){b.D&&(b.D.B.lp&&b.Jr)&&(b.Df&&(clearTimeout(b.Df),b.Df=p),b.MJ())});a.addEventListener("load",function(){b.D&&b.nw(b.D.ga())});a.addEventListener("maptypechange",function(){b.D&&b.le()});a.addEventListener("zoomspanchange",function(){b.D&&b.le()})},le:function(){this.mw();this.Cn(this.k.type);this.D&&this.nw(this.D.ga())},mw:function(){var a=this.D.oa();this.Uh=this.D.B.fc;this.Gf=this.D.B.Zb;this.Jr=a==Ra||this.Uh!=a.up()||this.Gf!=a.Jm()?q:o;this.C&& (this.C.style.width=this.fI(0).width+"px");this.k.iG||(this.Jr=q);this.Io=this.Gf-this.Uh+1;this.xo=this.ek+(this.Io-1)*this.rw},Ba:function(){Rc.prototype.Ba.call(this);var a=6==x.da.ma?" BMap_ie6":"",b=" BMap_stdMpType"+this.k.type,c=this.C;x.K.Ta(c,"BMap_stdMpCtrl");x.K.Ta(c,a);x.K.Ta(c,b);c.innerHTML=this.tr(this.k.type);this.aC(x.da.opera?"pointer":I.Xb);this.ld=x.$(c.children[0]);a=this.Of=x.$(c.children[1]);this.Hh=x.$(a.children[0]);this.cg=x.$(a.children[1]);this.OJ=x.$(a.children[2]);this.ow= x.$(a.children[2].children[0]);this.qw=x.$(a.children[2].children[1]);this.MG=this.C.children[1];this.aE=this.C.children[2];this.Cn(this.k.type)},TU:function(){var a=this.fI(this.k.type),b=a.width,c=a.height,d=a.Uu,a=a.zu,e=(this.MT-this.Io)*this.rw;0==this.k.type&&(c=0<=c-e?c-e:0,d=0<=d-e?d-e:0,a=0<=a-e?a-e:0);this.C.style.width=b+"px";this.C.style.height=c+"px";this.Of.style.height=d+"px";this.Of.style.width=b+"px";this.cg.style.top=J()?"44px":d-21+"px";this.OJ.style.height=a+"px";this.ow.style.height= a+"px";this.Of.children[0].style.left=3==this.k.type?this.Of.children[1].style.left="0":this.Of.children[1].style.left=""},fI:function(a){var b=62;if(!this.k.iG||this.D.oa()==Ra)b=37;return[{width:b,height:204,Uu:159,Bz:37,zu:120,mz:120},{width:37,height:97,Uu:42,Bz:37,zu:0,mz:0},{width:37,height:57,Uu:0,Bz:0,zu:0,mz:0},{width:22,height:42,Uu:42,Bz:18,zu:0,mz:0},{width:35,height:71,Bz:35,Uu:71,zu:0,mz:0}][a]},tr:function(){var a=[];a.push(this.GA());a.push(this.HA());a.push(this.zS());return a.join("")}, GA:ea(\'<div class="BMap_stdMpPan"><div class="BMap_button BMap_panN" title="\\u5411\\u4e0a\\u5e73\\u79fb"></div><div class="BMap_button BMap_panW" title="\\u5411\\u5de6\\u5e73\\u79fb"></div><div class="BMap_button BMap_panE" title="\\u5411\\u53f3\\u5e73\\u79fb"></div><div class="BMap_button BMap_panS" title="\\u5411\\u4e0b\\u5e73\\u79fb"></div><div class="BMap_stdMpPanBg BMap_smcbg"></div></div>\'),HA:function(){return J()?[\'<div class="BMap_stdMpZoom" style="width: 35px; height: 71px; background: rgba(255,255,255,.8); -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.4); border-radius: 3px;"><div class="BMap_button BMap_stdMpZoomIn" title="\\u653e\\u5927\\u4e00\\u7ea7" style="position: initial; background: initial; border-radius: initial; box-shadow: initial; width: 35px; height: 35px;">\', \'<div class="BMap_smcbg" style="position: initial; width: 35px; height: 35px; background-image: url(\'+B.la+\'images/navigation-control/mobile/plus-28x29.png); background-size: 14px 15px; background-position: center; background-repeat: no-repeat;">\',\'</div></div><div class="BMap_button BMap_stdMpZoomOut" title="\\u7f29\\u5c0f\\u4e00\\u7ea7" style="position: initial; background: initial; border-radius: initial; box-shadow: initial; width: 35px; height: 35px; border-top: 1px solid #ececec;">\',\'<div class="BMap_smcbg" style="position: initial; width: 35px; height: 35px; background-image: url(\'+ B.la+\'images/navigation-control/mobile/minus-30x6.png); background-size: 15px 3px; background-position: center; background-repeat: no-repeat;">\',\'</div></div><div class="BMap_stdMpSlider"><div class="BMap_stdMpSliderBgTop"><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderBgBot"></div><div class="BMap_stdMpSliderMask" title="\\u653e\\u7f6e\\u5230\\u6b64\\u7ea7\\u522b"></div><div class="BMap_stdMpSliderBar" title="\\u62d6\\u52a8\\u7f29\\u653e"><div class="BMap_smcbg"></div></div></div><div class="BMap_zlHolder"><div class="BMap_zlSt"><div class="BMap_smcbg"></div></div><div class="BMap_zlCity"><div class="BMap_smcbg"></div></div><div class="BMap_zlProv"><div class="BMap_smcbg"></div></div><div class="BMap_zlCountry"><div class="BMap_smcbg"></div></div></div></div>\'].join(""): \'<div class="BMap_stdMpZoom"><div class="BMap_button BMap_stdMpZoomIn" title="\\u653e\\u5927\\u4e00\\u7ea7"><div class="BMap_smcbg"></div></div><div class="BMap_button BMap_stdMpZoomOut" title="\\u7f29\\u5c0f\\u4e00\\u7ea7"><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSlider"><div class="BMap_stdMpSliderBgTop"><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderBgBot"></div><div class="BMap_stdMpSliderMask" title="\\u653e\\u7f6e\\u5230\\u6b64\\u7ea7\\u522b"></div><div class="BMap_stdMpSliderBar" title="\\u62d6\\u52a8\\u7f29\\u653e"><div class="BMap_smcbg"></div></div></div><div class="BMap_zlHolder"><div class="BMap_zlSt"><div class="BMap_smcbg"></div></div><div class="BMap_zlCity"><div class="BMap_smcbg"></div></div><div class="BMap_zlProv"><div class="BMap_smcbg"></div></div><div class="BMap_zlCountry"><div class="BMap_smcbg"></div></div></div></div>\'}, X1:ea(\'<div class="BMap_button BMap_stdMpZoomIn" title="\\u653e\\u5927\\u4e00\\u7ea7"><div class="BMap_smcbg"></div></div><div class="BMap_button BMap_stdMpZoomOut" title="\\u7f29\\u5c0f\\u4e00\\u7ea7"><div class="BMap_smcbg"></div></div>\'),V1:ea(\'<div class="BMap_stdMpSlider"><div class="BMap_stdMpSliderBgTop"><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderBgBot"></div><div class="BMap_stdMpSliderMask" title="\\u653e\\u7f6e\\u5230\\u6b64\\u7ea7\\u522b"></div><div class="BMap_stdMpSliderBar" title="\\u62d6\\u52a8\\u7f29\\u653e"><div class="BMap_smcbg"></div></div></div>\'), W1:ea(\'<div class="BMap_zlHolder"><div class="BMap_zlSt"><div class="BMap_smcbg"></div></div><div class="BMap_zlCity"><div class="BMap_smcbg"></div></div><div class="BMap_zlProv"><div class="BMap_smcbg"></div></div><div class="BMap_zlCountry"><div class="BMap_smcbg"></div></div></div>\'),zS:function(){return J()?[\'<div class="BMap_stdMpGeolocation" style="position: initial; display: none; position: absolute; left: -\'+(this.D.width-46)+\'px; bottom: 0px;">\',\'<div class="BMap_geolocationContainer" style="position: initial; width: 38px; height: 38px; overflow: hidden; margin: 0px; margin-left: 10px; margin-bottom: 20px; box-sizing: border-box;">\', \'<div class="BMap_geolocationIconBackground" style="position: initial; width: 38px; height: 38px; background-image: url(\\\'\'+B.la+"images/navigation-control/geolocation-control/mobile/background-76x76.png\'); background-size: 38px 38px; background-repeat: no-repeat; background-position: center;\\">",\'<div style="position: initial; padding-top: 9px; padding-left: 9px;">\',\'<div class="BMap_geolocationIcon" style="position: initial; width: 20px; height: 20px; cursor: pointer; background-image: url(\\\'\'+ B.la+"images/navigation-control/geolocation-control/mobile/default-40x40.png\'); background-size: 20px 20px; background-repeat: no-repeat; background-position: center;\\"></div>","</div></div></div></div>"].join(""):[\'<div class="BMap_stdMpGeolocation" style="position: initial; display: none; margin-top: 43px; margin-left: 10px;"><div class="BMap_geolocationContainer" style="position: initial; width: 24px; height: 24px; overflow: hidden; margin: 0px; box-sizing: border-box;">\',\'<div class="BMap_geolocationIconBackground" style="width: 24px; height: 24px; background-image: url(\'+ B.la+\'images/navigation-control/geolocation-control/pc/bg-20x20.png); background-size: 20px 20px; background-position: 3px 3px; background-repeat: no-repeat;">\',\'<div class="BMap_geolocationIcon" style="position: initial; width: 24px; height: 24px; cursor: pointer; background-image: url(\\\'\'+B.la+"images/navigation-control/geolocation-control/pc/success-10x10.png\'); background-size: 10px 10px; background-repeat: no-repeat; background-position: center;\\"></div>","</div></div></div>"].join("")},LS:function(a){var b= this.LS;"undefined"===typeof b.IK&&(b.IK=me.C.getElementsByTagName("*"));for(var b=b.IK,c=p,d=b.length,e=p,c=0;c<d;++c)if(e=b[c],e.className.toString().match(a))return e;ca(Error(""+a+" Not found!"))},Cn:function(a){this.k.type=Za(a)&&0<=a&&3>=a?a:0;J()&&(this.k.type=4);if(this.D&&this.C){var b=this.C;b.className=b.className.replace(/BMap_stdMpType[0-4]*/,"BMap_stdMpType"+this.k.type);this.TU();0!=a&&x.K.Tb(b.children[1].children[2],"hvr");this.qc(this.k.anchor)}},Cp:function(){return this.k.type}, UQ:function(){function a(){if(0!=(c.D.Sa&128)){var e=x.$(g);c.rl=parseInt(e.style.top);x.K.Tb(g,"h");c.D.Sa&=-129;d&&(g&&g.releaseCapture)&&g.releaseCapture();x.da.opera||c.aC(I.Xb);c.D.Jg(c.Gf+1-Math.round(parseFloat(c.rl-c.ek)/parseFloat(c.xo-c.ek)*(c.Io-1)+1));x.cd(document,"mousemove",b);x.cd(document,"mouseup",a)}}function b(a){0!=(c.D.Sa&128)&&(a=window.event||a,a=c.rl+(a.pageY||a.clientY)-c.ca.Nk,a<c.ek?a=c.ek:a>c.xo&&(a=c.xo),g.style.top=a+"px",c.qw.style.top=a+"px",c.qw.style.height=parseInt(c.ow.style.height)- a+4+"px")}var c=this,d=c.C;x.M(this.Of,"mouseover",function(){c.Jr&&(c.$I=o,c.Df&&(clearTimeout(c.Df),c.Df=p),c.MJ())});x.M(this.Of,"mouseout",function(){c.Jr&&(c.Df&&clearTimeout(c.Df),c.$I=q,c.Df=setTimeout(function(){c.VA();c.Df=p},1E3))});x.M(d.children[0],"mouseover",function(){c.VA(o)});x.M(d.children[0].children[0],"click",function(){c.Ol(0,Math.round(c.D.height/3))});x.M(d.children[0].children[1],"click",function(){c.Ol(Math.round(c.D.width/3),0)});x.M(d.children[0].children[2],"click",function(){c.Ol(-Math.round(c.D.width/ 3),0)});x.M(d.children[0].children[3],"click",function(){c.Ol(0,-Math.round(c.D.height/3))});x.M(d.children[0].children[0],"mouseover",function(){c.ld.style.backgroundPosition="0 -44px"});x.M(d.children[0].children[1],"mouseover",function(){c.ld.style.backgroundPosition="0 -176px"});x.M(d.children[0].children[2],"mouseover",function(){c.ld.style.backgroundPosition="0 -88px"});x.M(d.children[0].children[3],"mouseover",function(){c.ld.style.backgroundPosition="0 -132px"});x.M(c.ld,"mouseout",function(){c.ld.style.backgroundPosition= "0 0"});var e=d.children[1].children;x.M(e[0],"click",function(){c.jK()});x.M(e[1],"click",function(){c.kK()});for(var f=0;5>f;f++)x.M(d.children[0].children[f],"mouseup",function(a){0==(c.D.Sa&128)&&0==(c.D.Sa&8)&&oa(a)}),x.M(d.children[0].children[f],"contextmenu",function(a){Gb(a)}),x.M(d.children[0].children[f],"click",function(a){Gb(a)});x.M(e[0],"mouseup",function(a){0==(c.D.Sa&128)&&0==(c.D.Sa&8)&&oa(a)});x.M(e[1],"mouseup",function(a){0==(c.D.Sa&128)&&0==(c.D.Sa&8)&&oa(a)});x.M(e[0],"contextmenu", function(a){Gb(a)});x.M(e[1],"contextmenu",function(a){Gb(a)});f=d.children[1].children[2].children[2];x.M(f,"mouseup",function(a){0==(c.D.Sa&128)&&0==(c.D.Sa&8)&&oa(a)});x.M(e[0],"click",function(a){oa(a)});x.M(e[1],"click",function(a){oa(a)});x.M(e[0],"mouseover",function(){e[0].style.backgroundPosition="0 -243px"});x.M(e[0],"mouseout",function(){0==(c.D.Sa&128)&&(e[0].style.backgroundPosition="0 -221px")});x.M(e[1],"mouseover",function(){e[1].style.backgroundPosition="0 -287px"});x.M(e[1],"mouseout", function(){0==(c.D.Sa&128)&&(e[1].style.backgroundPosition="0 -265px")});x.M(f,"click",function(a){oa(a)});var g=d.children[1].children[2].children[3];x.M(g,"mouseup",function(a){2==a.button&&oa(a)});x.M(g,"contextmenu",function(a){Gb(a)});x.M(this.Of.children[3].children[0],"click",function(){c.D.Jg(17)});x.M(this.Of.children[3].children[1],"click",function(){c.D.Jg(12)});x.M(this.Of.children[3].children[2],"click",function(){c.D.Jg(8)});x.M(this.Of.children[3].children[3],"click",function(){c.D.Jg(4)}); x.M(f,"mousedown",function(a){var a=window.event||a,b=0,b=c.Gf+1-Math.round(c.Io*parseFloat((a.layerY||a.offsetY||0)/(c.Io*c.rw)));c.D.Jg(b)});x.M(g,"mouseover",function(){x.K.Ta(g,"h")});x.M(g,"mouseout",function(){0==(c.D.Sa&128)&&x.K.Tb(g,"h")});x.M(g,"mousedown",function(d){d=window.event||d;if(2!=d.button&&!(x.da.ma&&1!=d.button))return g.setCapture&&g.setCapture(),c.D.Sa|=128,c.ca.Nk=d.pageY||d.clientY||0,x.da.opera||c.aC(I.Id),x.M(document,"mousemove",b),x.M(document,"mouseup",a),oa(d),Gb(d)})}, TQ:function(){var a=this,b=a.C.children[1].children;ka.CL(b[0]);ka.CL(b[1]);ka.M(b[0],"tap",function(){a.jK()});ka.M(b[1],"tap",function(){a.kK()})},aC:function(a){this.C.children[1].children[2].children[3].style.cursor=a},Ol:function(a,b){this.D.Ag(a,b)},jK:function(){this.D.EG()},kK:function(){this.D.FG()},nw:function(a){this.C&&0==this.Cp()&&(a=(this.Gf-a)*this.rw+this.ek,this.rl=a>this.xo?this.xo:a<this.ek?this.ek:a,this.C.children[1].children[2].children[3].style.top=this.rl+"px",this.qw.style.top= this.rl+"px",this.qw.style.height=parseInt(this.ow.style.height)-this.rl+4+"px")},VA:function(a){0==this.k.type&&x.K.Tb(this.C.children[1].children[3],"hvr");a&&this.Df&&(clearTimeout(this.Df),this.Df=p)},MJ:function(){0==this.k.type&&this.k.iG&&x.K.Ta(this.C.children[1].children[3],"hvr")},show:function(){Rc.prototype.show.call(this);if(8>x.da.ma){var a=this;setTimeout(function(){a.Cn(a.k.type)},1)}},XY:function(){var a=this,b={};J()?(b.sj=a.aE.children[0],b.op=b.sj.children[0].children[0].children[0]): (b.sj=a.aE.children[0],b.bE=b.sj.children[0],b.op=b.bE.children[0]);J()?a.D.addEventListener("resize",function(){b.sj.parentNode.style.left=(-(a.D.width-46)).toString()+"px"}):3===a.k.type&&(a.aE.style.marginLeft="-2px");b.cu={"default":B.la+"images/navigation-control/geolocation-control/pc/success-10x10.png",loading:B.la+"images/navigation-control/geolocation-control/pc/loading-30x30.gif",success:B.la+"images/navigation-control/geolocation-control/pc/success-10x10.png",fail:B.la+"images/navigation-control/geolocation-control/pc/fail-10x10.png"}; b.Wt={"default":B.la+"images/navigation-control/geolocation-control/mobile/default-40x40.png",loading:B.la+"images/navigation-control/geolocation-control/mobile/loading-40x40.png",success:B.la+"images/navigation-control/geolocation-control/mobile/success-40x40.png",fail:B.la+"images/navigation-control/geolocation-control/mobile/fail-40x40.png"};var c;a.D.addEventListener("moveend",function(){if(c){var d=a.D.pc();d.lng===c.lng&&d.lat===c.lat?J()?b.Vb(b.Wt.success):b.Vb(b.cu.success):J()?b.Vb(b.Wt["default"]): b.Vb(b.cu["default"])}});x.M(b.op,"click",function(){J()?b.Vb(b.Wt.loading):b.Vb(b.cu.loading);(new Geolocation({timeout:1E4})).getCurrentPosition(function(d){J()?b.Vb(b.Wt.success):b.Vb(b.cu.success);var d=new K(d.longitude,d.latitude),e=new W(d,{icon:new nd(B.la+"images/navigation-control/geolocation-control/point/position-icon-14x14.png",new M(14,14))});a.D.Ka(e);a.D.Gd(d,15);c=d},function(){J()?b.Vb(b.Wt.fail):b.Vb(b.cu.fail)})});b.Vb=function(a){b.op.style.backgroundImage="url(\'"+a+"\')"};this.QL= b;this.HX=o},b0:function(){J()||(this.HX||this.XY(),J()||(this.MG.style.top="70px"),this.QL.sj.parentNode.style.display="block")},g4:function(){J()||(this.MG.style.top="45px");this.QL.sj.parentNode.style.display="none"}});nb.prototype.setType=nb.prototype.Cn; ');