Files
hb_pqs_web/public/static/map/modules/map_e2n0fm.js
2025-01-09 19:02:44 +08:00

2 lines
12 KiB
JavaScript

/**/_jsload2&&_jsload2('map', 'ub.prototype.cancel=ia(1,function(){this.fs&&clearTimeout(this.fs);this.pA=this.Xu;this.Oy=0}); B.Xe(function(a){if(!a.B||!a.B.dy){a.by()?(xg(a),yg(a)):a.addEventListener("load",function(){xg(this);yg(this)});a.bh="\\u4e2d\\u56fd";a.ns="1";var b={CD:o,fb:function(){if(b.CD){b.CD=q;setTimeout(function(){b.mg()},500)}},mg:function(){var c=a.Kd(),d=a.ga(),e=T.tb(c.xe()),c=T.tb(c.pf());$d.fb(function(c){c.current_city.code>=9E3&&c.current_city.code<=9378&&(c.current_city.name="\\u53f0\\u6e7e\\u7701");c.current_city.code>=2E4&&c.current_city.code<=20499&&(c.current_city.name="\\u65b0\\u52a0\\u5761");c.current_city.code>= 20500&&c.current_city.code<=25999&&(c.current_city.name="\\u6cf0\\u56fd");c.current_city.code>=26E3&&c.current_city.code<=29999&&(c.current_city.name="\\u65e5\\u672c");c.current_city.code>=3E4&&c.current_city.code<=30999&&(c.current_city.name="\\u97e9\\u56fd");c.current_city.code>=31E3&&c.current_city.code<=37E3&&(c.current_city.name="\\u4e9a\\u592a");c.current_city.code>=46609&&c.current_city.code<=52505&&(c.current_city.name="\\u6b27\\u6d32");c.current_city.code>=39509&&c.current_city.code<=53500&&(c.current_city.name= "\\u5357\\u7f8e\\u6d32");c.current_city.code>=54E3&&c.current_city.code<=7E4&&(c.current_city.name="\\u5317\\u7f8e\\u6d32");c.current_city.code===54003&&(c.current_city.code>=60731&&c.current_city.code<=61123)&&(c.current_city.name="\\u7f8e\\u56fd");if(c.current_city.code===54015||c.current_city.code>=57970&&c.current_city.code<=60223)c.current_city.name="\\u52a0\\u62ff\\u5927";if(c.current_city.code===54025||c.current_city.code>=54338&&c.current_city.code<=57374)c.current_city.name="\\u58a8\\u897f\\u54e5";b.CD= o;if(c&&c.current_city){var d=c.current_city.name,e=c.current_city.code;e!==a.ns&&a.dispatchEvent("citychange",{name:d,code:e});a.bh=d;a.ns=c.current_city.code;J()||zg(a)}},{qt:"cen",b:e.lng+","+e.lat+";"+c.lng+","+c.lat,l:d},"","",o)}};a.addEventListener("load",function(){b.fb()});a.addEventListener("moveend",function(){b.fb()});a.addEventListener("zoomend",function(){b.fb()});b.fb()}}); function xg(a){if(!a.R.dW){a.R.dW=o;if(!a.bx){var b=new M(2,2);J()&&(b.width=72,b.height=0);var c=new Sc({offset:b,printable:o});a.bx=c}J()||(zg(a),a.addEventListener("maptypechange",function(){zg(a)}));a.js(c);var d=new Ag;d.k={Dg:o};a.js(d);a.addEventListener("resize",function(){if(this.vb().width>=300&&a.vb().height>=100){d.show();c.Ye(b)}else{d.U();c.Ye(new M(4,2))}});300<=a.vb().width&&100<=a.vb().height&&a.B.$Y?d.show():(d.U(),c.Ye(new M(4,2)))}} function zg(a){if(!a.bx){var b=new M(2,2);J()&&(b.width=72,b.height=0);b=new Sc({offset:b,printable:o});a.bx=b}var c=a.bh||"\\u4e2d\\u56fd",b=a.oa(),d="\\u5e38\\u5dde\\u5e02 \\u5357\\u660c\\u5e02 \\u4e4c\\u9c81\\u6728\\u9f50\\u5e02 \\u65e0\\u9521\\u5e02 \\u798f\\u5dde\\u5e02 \\u6cc9\\u5dde\\u5e02 \\u73e0\\u6d77\\u5e02 \\u8d35\\u9633\\u5e02".split(" "),e="\\u5317\\u4eac\\u5e02 \\u4e0a\\u6d77\\u5e02 \\u5e7f\\u5dde\\u5e02 \\u6df1\\u5733\\u5e02 \\u5b81\\u6ce2\\u5e02 \\u77f3\\u5bb6\\u5e84\\u5e02 \\u6c88\\u9633\\u5e02 \\u957f\\u6625\\u5e02 \\u9752\\u5c9b\\u5e02 \\u6e29\\u5dde\\u5e02 \\u53f0\\u5dde\\u5e02 \\u91d1\\u534e\\u5e02 \\u4f5b\\u5c71\\u5e02 \\u4e2d\\u5c71\\u5e02 \\u6606\\u660e\\u5e02 \\u5357\\u5b81\\u5e02 \\u82cf\\u5dde\\u5e02 \\u897f\\u5b89\\u5e02 \\u6d4e\\u5357\\u5e02 \\u90d1\\u5dde\\u5e02 \\u5408\\u80a5\\u5e02 \\u547c\\u548c\\u6d69\\u7279\\u5e02 \\u676d\\u5dde\\u5e02 \\u6210\\u90fd\\u5e02 \\u6b66\\u6c49\\u5e02 \\u957f\\u6c99\\u5e02 \\u5929\\u6d25\\u5e02 \\u5357\\u4eac\\u5e02 \\u91cd\\u5e86\\u5e02 \\u5927\\u8fde\\u5e02 \\u4e1c\\u839e\\u5e02 \\u53a6\\u95e8\\u5e02".split(" "), f=["\\u9999\\u6e2f\\u7279\\u522b\\u884c\\u653f\\u533a"],g;for(g in d)if(d[g]===c){var i=o;break}for(g in e)if(e[g]===c)break;for(g in f)if(f[g]===c){var k=o;break}if("\\u53f0\\u6e7e\\u7701"===c)var l=o;if("\\u65b0\\u52a0\\u5761"===c)var m=o;if("\\u65e5\\u672c"===c)var n=o;if("\\u97e9\\u56fd"===c)var s=o;if("\\u6cf0\\u56fd"===c)var u=o;if("\\u4e9a\\u592a"===c)var w=o;if("\\u6b27\\u6d32"===c)var y=o;if("\\u5357\\u7f8e\\u6d32"===c)var D=o;if("\\u5317\\u7f8e\\u6d32"===c)var C=o;if("\\u7f8e\\u56fd"===c)var F=o;if("\\u52a0\\u62ff\\u5927"=== c)var z=o;if("\\u58a8\\u897f\\u54e5"===c)var A=o;g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "];c="rgba(255, 255, 255, 0.701961)";9>=a.ga()?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]:l?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]:n||s?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]: m||u?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]:w?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]:y?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]:D?g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]: C&&(g=["&copy;&nbsp;2022 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b571100930 - \\u4eacICP\\u8bc1030173\\u53f7 - Data &copy; "]);if(9>=a.ga()){g.push("\\u957f\\u5730\\u4e07\\u65b9");g.push(\' &amp; <a target="_blank" href="http://www.openstreetmap.org/">OpenStreetMap</a>\');g.push(\' &amp; <a target="_blank" href="http://corporate.navteq.com/supplier_terms.html">HERE</a>\');if(b===ab||b===Ta)g.push(\' &amp; <a target="_blank" href="http://www.eso.org/public/">ESO</a>\'),c="rgba(0,0,0,.7)";b===Qa&&(g.push(\' &amp; <a href="http://o.cn" target="_blank" style="color:#fff;font-size: 11px;">\\u90fd\\u5e02\\u5708</a>\'), c="none")}else if(n||s)g.push(\'<a target="_blank" href="http://www.openstreetmap.org/">OpenStreetMap</a>\');else if(m||u)g.push(\'<a target="_blank" href="http://corporate.navteq.com/supplier_terms.html">HERE</a>\');else if(w)g.push(\'<a target="_blank" href="http://corporate.navteq.com/supplier_terms.html">HERE</a>\'),g.push(\' &amp; <a target="_blank" href="https://www.mapbox.com/">Mapbox</a>\');else if(y)g.push(\'<a target="_blank" href="http://www.openstreetmap.org/">OpenStreetMap</a>\'),g.push(\' &amp; <a target="_blank" href="https://www.mapbox.com/">Mapbox</a>\'); else if(D)g.push(\'<a target="_blank" href="http://www.openstreetmap.org/">OpenStreetMap</a>\'),g.push(\' &amp; <a target="_blank" href="https://www.mapbox.com/">Mapbox</a>\');else if(F||A||z)g.push(\'<a target="_blank" href="http://corporate.navteq.com/supplier_terms.html">HERE</a>\'),g.push(\' &amp; <a target="_blank" href="https://www.mapbox.com/">Mapbox</a>\');else if(C)g.push(\'<a target="_blank" href="http://www.openstreetmap.org/">OpenStreetMap</a>\'),g.push(\' &amp; <a target="_blank" href="https://www.mapbox.com/">Mapbox</a>\'); else{g.push("\\u957f\\u5730\\u4e07\\u65b9");i&&g.push(\' &amp; <a target="_blank" href="http://www.palmcity.cn/palmcity/">PalmCity</a>\');k&&g.push(\' &amp; <a target="_blank" href="http://www.mapking.com/HongKong/eng/home/MapKing_Webmap.html">MapKing</a>\');l&&(g.push(\' &amp; <a target="_blank" href="http://corporate.navteq.com/supplier_terms.html">HERE</a>\'),g.push(\' &amp; <a target="_blank" href="http://www.localking.com.tw/about/localking.aspx">\\u6a02\\u5ba2LocalKing</a>\'));if(b===ab||b===Ta)c="rgba(0,0,0,.7)"; b===Qa&&(g.push(\' &amp; <a href="http://o.cn" target="_blank" style="color:#fff;font-size: 11px;">\\u90fd\\u5e02\\u5708</a>\'),c="none")}g.unshift(\'<span style="background: \'+c+\';padding: 0px 1px;line-height: 16px;display: inline;height: 16px;">\');g.push("</span>");g=g.join("");a.bx.Dw({id:1,content:g})} function yg(a){J()||ra(B.oc+"?qt=business_accredit&v=2.1&ak="+qa,function(b){b&&(0===b.error&&b.content&&0===b.content.status)&&(b.content.data&&b.content.data.is_auth)&&(b=new Bg({}),a.Ow=b,a.js(b),a.B.uD||b.U())})}function Ag(){this.defaultAnchor=Qc;this.defaultOffset=new M(1,20);J()&&(this.defaultOffset=new M(1,1));this.Zu=30;this.hl=I.pa+(J()?"copyright_logo_s.png":"copyright_logo.png")}Ag.prototype=new Nc; Ag.prototype.initialize=function(a){this.D=a;var b=H("div");b.style.height="32px";var c=H("a",{title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u6b64\\u533a\\u57df",target:"_blank",href:"http://map.baidu.com/?sr=1"});c.style.outline="none";c.innerHTML=6===x.da.ma?"<div style=\'cursor:pointer;width:77px;height:32px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.hl+")\'></div>":"<img style=\'border:none;width:77px;height:32px\' src=\'"+this.hl+"\' />";J()&&(1<window.devicePixelRatio&& (this.hl=I.pa+"copyright_logo_hd.png"),b.style.height="25px",c.href="http://map.baidu.com/?sr=1",c.innerHTML="<img style=\'border:none;width:68px;height:25px\' src=\'"+this.hl+"\' />");b.appendChild(c);a.Ka().appendChild(b);return b};function Bg(a){this.defaultAnchor=Qc;this.defaultOffset=a.defaultOffset||new M(90,20);this.Zu=30;this.hl=I.pa+"bizAuth.png"}Bg.prototype=new Nc; Bg.prototype.initialize=function(a){this.D=a;var b=H("div");b.style.height="27px";var c=H("a",{title:"\\u767e\\u5ea6\\u5730\\u56fe\\u5546\\u7528\\u6388\\u6743",target:"_blank",href:"http://lbs.baidu.com/cashier/auth?src=jsapi2.0"});c.style.outline="none";c.innerHTML=6===x.da.ma?"<div style=\'cursor:pointer;width:54px;height:27px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.hl+")\'></div>":"<img style=\'border:none;width:54px;height:27px\' src=\'"+this.hl+"\' />";b.appendChild(c);a.Ka().appendChild(b); return b};x.extend(La.prototype,{Ab:function(){this.ca()},ca:function(){var a=this;a.Co=function(){var b=a.vb();if(a.width!=b.width||a.height!=b.height){var c=new M(a.width,a.height),d=new N("onbeforeresize");d.size=c;a.dispatchEvent(d);a.ok((b.width-a.width)/2,(b.height-a.height)/2);a.Ae.style.width=(a.width=b.width)+"px";a.Ae.style.height=(a.height=b.height)+"px";c=new N("onresize");c.size=b;a.dispatchEvent(c);b=parseInt(a.platform.style.left)||0;c=parseInt(a.platform.style.top)||0;0!=a.Sa&&(a.offsetX!=b|| a.offsetY!=c)&&a.Me(b,c)}};a.B.Ss&&!a.R.fm&&(a.R.fm=setInterval(a.Co,80));J()||(x.M(a.Ae,"mouseover",function(b){Db(b);a.dispatchEvent(new N("onmouseover"))}),x.M(a.Ae,"mouseout",function(b){Db(b);a.dispatchEvent(new N("onmouseout"))}))},Me:function(a,b,c,d){if(!isNaN(a)&&!isNaN(b)&&!(this.offsetX==a&&this.offsetY==b)){var e=this.oa(),f=e.k.$a,g=this.offsetY-b,e=e.yc(this.Na),i=this.Nd.Jk(this.re),k=new K(i.lng+(this.offsetX-a)*e,i.lat-(this.offsetY-b)*e);k.lat-this.height/2*e<=f.$d&&0<=g&&(b=f.$d+ this.height/2*e,b=this.offsetY-(i.lat-b)/e);k.lat+this.height/2*e>f.Yd&&0>g&&(b=f.Yd-this.height/2*e,b=this.offsetY-(i.lat-b)/e);this.ok(this.offsetX-a,this.offsetY-b,c);a=Math.round(a);b=Math.round(b);this.offsetX=a;this.offsetY=b;this.platform.style.left=a+"px";this.platform.style.top=b+"px";this.Ae.style.left=-a+"px";this.Ae.style.top=-b+"px";d!=q&&this.dispatchEvent(new N("onmoving"))}},Ai:function(a,b){if(a instanceof O||a instanceof K){var a=Za(a,this),c=this.Cc(a),d=Math.round(this.width/2), e=Math.round(this.height/2),b=b||{};Math.abs(d-c.x)>this.width||Math.abs(e-c.y)>this.height||b.noAnimation?this.UI(d-c.x,e-c.y,a):this.Il(d-c.x,e-c.y,{duration:b.duration})}},UI:function(a,b,c){var d=this.R;d.Ic!=o&&(d.nb&&d.nb.stop(),this.dispatchEvent(new N("onmovestart")),this.Me(this.offsetX+a,this.offsetY+b,c),this.dispatchEvent(new N("onmoveend")))},zg:function(a,b,c){a=Math.round(a)||0;b=Math.round(b)||0;c=c||{};Math.abs(a)<=this.width&&Math.abs(b)<=this.height&&!c.noAnimation?this.Il(a,b): this.UI(a,b)},Il:function(a,b,c){if(this.R.Ic!=o){c=c||{};this.dispatchEvent(new N("onmovestart"));var d=this,e=d.R;e.Gy=d.offsetX;e.m=d.offsetY;e.cG&&e.cG.cancel();e.nb&&e.nb.stop();e.cG=new ub({Hc:c.Hc||d.B.Hc,duration:c.duration||d.B.fV,hc:c.hc||vb.hL,va:function(c){(this.YF=d.R.Ic)||d.Me(e.Gy+Math.ceil(a*c),e.m+Math.ceil(b*c))},finish:function(){d.dispatchEvent(new N("onmoveend"));d.R.cG=q;d.R.Fi==o&&(d.R.Fi=q,0!=d.R.kc&&d.hb())}})}},fY:function(a,b){var c=this.oa();if("object"!=typeof c)return p; c=256*c.yc(b);a=T.tb(a);return{Ly:parseInt(a.lng/c),Xw:parseInt(a.lat/c),vg:b}}});U(Pf,{panTo:Pf.Ai,panBy:Pf.zg}); ');