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

/**/_jsload2 && _jsload2('scommon', 'var Vh=new M(23,25),Wh=new M(9,25),Xh=new M(9,0);X.EV=function(a,b,c,d){var e=Yh(b);if(e&&!(0>c||9<c)){b=p;e=new W(e);if(J()){var f=function(){return new nd(I.pa+"markers_hd.png",new M(22,31),{anchor:new M(11,31),imageOffset:new M(0,-32*c),imageSize:new M(85,477),infoWindowAnchor:new M(11,0)})},b=f(),f=f();f.ou(new M(-28,-32*c));e.IE=b;e.DM=f}else b=new nd(I.pa+"markers.png",Vh,{anchor:Wh,imageOffset:new M(0,-25*c),infoWindowAnchor:Xh});e.Vb(b);a.Ka(e);d&&e.Dc(d);return e}}; X.Ow=function(a,b,c){if(b=Yh(b)){var b=new W(b),d=p;J()?(d=new nd(I.pa+"markers_hd.png",new M(21,31),{anchor:Wh,imageOffset:new M(-29,-320),imageSize:new M(85,477),infoWindowAnchor:Xh}),b.IE=d):d=new nd(I.pa+"markers.png",Vh,{anchor:Wh,imageOffset:new M(0,-250),infoWindowAnchor:Xh});b.Vb(d);a.Ka(b);c&&b.Dc(c);return b}}; X.DV=function(a,b,c){if(b=Yh(b)){var b=new W(b),d=p;if(J()){var e=function(){return new nd(I.pa+"markers_hd.png",new M(21,31),{anchor:Wh,imageOffset:new M(0,-383),imageSize:new M(85,477),infoWindowAnchor:Xh})},d=e(),e=e();e.ou(new M(-29,-352));b.IE=d;b.DM=e}else d=new nd(I.pa+"markers.png",Vh,{anchor:Wh,imageOffset:new M(0,-300),infoWindowAnchor:Xh});b.Vb(d);a.Ka(b);c&&b.Dc(c);return b}}; function Yh(a){if(a){var b=[],b=p;if(a instanceof O||a instanceof K)b=a;else{if("string"==typeof a){b=x.trim(a).split(",");if(2>b.length)return;b[0]=parseFloat(x.trim(b[0]));b[1]=parseFloat(x.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new O(b[0],b[1])}return b}} X.LW=function(a){var b=a.title,c=a.As,d=a.r0,e=a.WW,a=a.BF||0;if(!b)return p;var f=b;1==a?f+="-\\u516c\\u4ea4\\u8f66\\u7ad9":3==a&&(f+="-\\u5730\\u94c1\\u7ad9");var g=13;e&&(g=10);f.replace(/[\\u0100-\\uffff]/g,"##").length>2*g+1&&(f=f.substring(0,g)+"&#8230");b="<p style=\'width:210px;font:bold 14px/16px "+I.fontFamily+";margin:0;color:#cc5522;white-space:nowrap;overflow:hidden\' title=\'"+b+"\'>"+f;e&&(b+="<a target=\'_blank\' href=\'"+e+"\' style=\'margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:normal;text-decoration:none;\'>\\u8be6\\u60c5\\u00bb</a>"); b+="</p>";e=[];e.push("<div style=\'font:12px "+I.fontFamily+";margin-top:10px\'>");if(c){f="\\u5730\\u5740\\uff1a";if(1==a||3==a)f="\\u8f66\\u6b21\\uff1a";e.push(\'<table cellspacing="0" style="overflow:hidden;table-layout:fixed;width:100%;font:12px \'+I.fontFamily+\'" >\');e.push(\'<tr><td style="vertical-align:top;width:38px;white-space:nowrap;word-break:keep-all">\'+f+\'&nbsp;</td><td style="line-height:16px">\');e.push(c+"&nbsp;</td></tr>");d&&e.push(\'<tr><td style="vertical-align:top;">\\u7535\\u8bdd\\uff1a</td><td>\'+ d+"</td></tr>");e.push("</table>")}else d&&(e.push(\'<table cellspacing="0" style="table-layout:fixed;width:100%;font:12px \'+I.fontFamily+\'">\'),e.push(\'<tr><td style="vertical-align:top;width:36px;white-space:nowrap;word-break:keep-all">\\u7535\\u8bdd\\uff1a</td><td>\'+d+"</td></tr></table>"));e.push("</div>");return new td(e.join(""),{title:b,height:0,width:230,margin:[10,10,20,10]})}; X.So=function(a,b,c,d){if(b=Yh(b))return d=new W(b,{icon:J()?new nd(I.pa+"dest_mkr.png",new M(29,34),{anchor:new M(14,32),imageSize:new M(94,41),imageOffset:new M(-29*d,0),infoWindowAnchor:new M(14,0)}):new nd(I.pa+"dest_markers.png",new M(42,34),{anchor:new M(14,32),imageOffset:new M(0,-34*d),infoWindowAnchor:new M(14,0)}),baseZIndex:35E5,draggingCursor:"pointer"}),a.Ka(d),c&&d.Dc(c),d};X.To=function(a,b){return X.fm(a,b,ce)}; X.sQ=[{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:5,color:"#00bd00",opacity:0.95,style:"solid"},{stroke:5,color:"#ffac00",opacity:0.95,style:"solid"},{stroke:5,color:"#f41c0d",opacity:0.95,style:"solid"}]; X.rQ=[{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:4,color:"#30a208",opacity:0.55,style:"dashed"},{stroke:5,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:4,color:"#ff0103",opacity:0.65,style:"dashed"},{stroke:5,color:"#ff0103",opacity:0.65,style:"solid"}]; X.qK=function(a,b,c){var d=X.sQ;"undefined"==typeof c&&(c=0);if(d[c])return d=d[c],b=new Dd(b,{strokeWeight:d.stroke,strokeColor:d.color,strokeOpacity:d.opacity,strokeStyle:d.style,clickable:q}),a.Ka(b),b.s2=c,b}; X.fm=function(a,b,c){var d=X.rQ;"undefined"==typeof c&&(c=0);if(d[c]){var e=d[c],d=new Dd(b,{strokeWeight:e.stroke,strokeColor:e.color,strokeOpacity:e.opacity,strokeStyle:e.style,clickable:q});a.Ka(d);d.m2=c;c==ce&&(b=new Dd(b,{strokeWeight:e.stroke-2,strokeColor:"#fff",strokeOpacity:0.3,clickable:q}),d.EB=b,a.Ka(b));return d}}; X.qx=function(a){var b=a.content,c=a.ux,d=a.total,e=a.Hy,f=a.H4,a=a.MY,g=["<div style=\'font:12px "+I.fontFamily+"\'>"];b&&g.push("<div style=\'margin:10px 1em 24px 0\'>"+b+"</div>");a||g.push(X.CX(d,c));g.push("</div>");b=new td(g.join(""),{title:"",height:0,width:220,margin:[10,10,20,10]});if(a)return b;b.addEventListener("open",function(){var a=J()?"touchend":"click";x.Ec("trans_prev")&&x.M(x.Ec("trans_prev"),a,function(){e&&"function"==typeof e&&e(c-1,f)});x.Ec("trans_next")&&x.M(x.Ec("trans_next"), a,function(){e&&"function"==typeof e&&e(c+1,f)})});return b}; X.CX=function(a,b){var c=[];c.push(\'<table id="trans_nav" width="99%" cols="2" style="background:#eaf2ff;font:12px \'+I.fontFamily+\'"><tbody><tr>\');c.push(\'<td nowrap="nowrap" width="50%" align="left">\');0==b?c.push(\'<span unselectable="on" style="color:#9c9d99;-moz-user-select:none" >\\u4e0a\\u4e00\\u6b65</span>\'):c.push(\'<a id="trans_prev" style="color:#7777cc;-moz-user-select:none" href="javascript:void(0)">\\u4e0a\\u4e00\\u6b65</a>\');c.push("</td>");c.push(\'<td nowrap="nowrap" width="50%" align="right">\'); b==a+1?c.push(\'<span unselectable="on" style="color:#9c9d99;-moz-user-select:none" >\\u4e0b\\u4e00\\u6b65</span>\'):c.push(\'<a style="color:#7777cc" id="trans_next" href="javascript:void(0)">\\u4e0b\\u4e00\\u6b65</a>\');c.push("</td></tr></tbody></table>");return c.join("")}; X.sK=function(a,b,c,d){if(b=Yh(b)){c=c||0;if(J())c=new nd(I.pa+"dest_mkr.png",new M(20,20),{imageSize:new M(94,41),imageOffset:new M(-59,-21*c),infoWindowAnchor:new M(10,0)});else{var e=-55;1==c&&(e=-76);c=new nd(I.pa+"trans_icons.png",new M(21,21),{imageOffset:new M(0,e),infoWindowAnchor:new M(10,0)})}c=new W(b,{icon:c});a.Ka(c);d&&c.Dc(d);return c}};X.vt=function(a){return a&&a.La&&a.La.qg?a.La.qg.childNodes[0]:p}; X.HV=function(a,b,c){b=new W(b,{icon:new nd(Ne.iV,new M(11,11))});c&&b.Dc(c);a.Ka(b);return b};X.nK=function(a,b){var c=new W(b,{icon:new nd(I.pa+"drag.png",new M(11,11)),draggingCursor:"pointer"});a.Ka(c);c.uu(10);return c};X.tK=function(a,b,c){b=new W(b,{icon:new nd(I.pa+"way-points.png",new M(36,40),{imageOffset:new M(-11+-36*c,-35)}),draggingCursor:"pointer",offset:new M(5,-20)});a.Ka(b);b.uu(10);return b}; X.bL=function(){var a=new ud("\\u62d6\\u52a8\\u4ee5\\u66f4\\u6539\\u8def\\u7ebf",{offset:new M(30,-10)});a.bd({border:"solid 1px gray",padding:"2px",whiteSpace:"nowrap",background:"#fff"});return a};X.OX=function(a,b){if(a&&b)return Math.round(Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)))}; X.FV=function(a,b,c,d){var e={type:"RouteAddrMarker"},a=Yh(a),e=e||{};e.type=e.type||"normal";if(a&&!("undefined"==typeof b||0>b||9<b&&"child"!==e.type||39<b&&"child"===e.type)){var f;f=I.pa+"markers_new.png";var g=0;"RouteAddrMarker"==e.type&&(g=-I.IG);g=new nd(f,I.KG,{offset:I.RP,imageOffset:new M(-I.JG*b,g),infoWindowOffset:I.GG});f=b+1;b=new W(a,{icon:g,zIndexFixed:o,baseZIndex:25E5-100*b});b.R2={type:e.type};d.Ka(b);b.o2=f;c&&b.Dc(c);return b}};Y.Tc=1;Y.zq=2;Y.Tn=3;Y.Xu=4;Y.Yu=5;Y.Wu=6;Y.Vu=7;Y.PG=8;Y.OG=9;Y.Rh=function(a,b){return a?B.Rp+"?s="+encodeURIComponent("inf&uid="+a+"&c="+b)+"&i=0&sr=1":""};Y.SS=function(a){return!a?-1:"string"==typeof a?2:a instanceof O||a instanceof K?1:a instanceof Na?0:"number"==typeof a?3:-1}; x.extend(Y.prototype,{Pg:function(a,b){var c=Y.SS(a.src);if(-1!=c){var d=this;if(3==c)b&&b(a.src);else if(2==c)a.$C==c&&a.aD==a.src&&a.vm?b&&b(a.vm):(a.$C=c,a.aD=a.src,de.eb(function(a){a&&(a.result&&2==a.result.type)&&(d.Ad.vm=a.content.code,b&&b(d.Ad.vm))},{qt:"cur",wd:a.src}));else{var e,f=18;0==c?a.src.oy()?(e=a.src.wc(),f=a.src.ga()):a.src.addEventListener("load",function(){d.Pg(a,b)}):e=a.src;c==a.$C&&a.aD.ab(e)&&a.vm?b&&b(a.vm):(0==c&&(e=T.tb(e)),1==c&&(e=T.tb(e)),a.$C=c,a.aD=new K(e.lng,e.lat), de.eb(function(a){if(a&&a.result&&a.result.type==4){d.Ad.vm=a.content?a.content.uid:1;b&&b(d.Ad.vm)}},{qt:"cen",b:e.lng+","+e.lat+";"+e.lng+","+e.lat,l:f}))}}},sb:function(a){"number"==typeof a?this.Dd=a:delete this.Dd},Ra:function(a,b,c){var d;d="undefined"===typeof b?4:b.Vr&&b.Vr.length?1:"[object Object]"===Object.prototype.toString.call(b.sw)&&"[object Object]"===Object.prototype.toString.call(b.Bv)?3:2;switch(a){case Y.Tc:(a=this.k.Ky)&&a(b,d);break;case Y.zq:(a=this.k.QN)&&a(b,c);break;case Y.Xu:(a= this.k.uF)&&a(b,c);break;case Y.Tn:(a=this.k.PN)&&a(b,c);break;case Y.Yu:(a=this.k.SN)&&a(b,c);break;case Y.Wu:(a=this.k.ON)&&a(b,c);break;case Y.Vu:(a=this.k.NN)&&a(b,c);break;case Y.PG:(a=this.k.LN)&&a(b,c);break;case Y.OG:(a=this.k.KN)&&a(b,c)}}});var Zh=0,$h=1,ai=2;Q.unique=function(a){for(var b=[],c={},d=0,e=a.length;d<e;d++)c[a[d]]||(c[a[d]]=o,b.push(a[d]));return b};Q.Jx=function(a,b){if(b)var c=Math.min(b.width/1100,b.height/660),a=Math.round(a+Math.log(c)/Math.log(2));1>a&&(a=1);18<a&&(a=18);return a}; Q.kb=function(a,b){if("string"==typeof a&&a){var c=a.split("|"),d,e,f;if(1==c.length)d=bi(a);else if(d=bi(c[2]),e=bi(c[0]),f=bi(c[1]),!b)return d;c={type:d.GX};if(b)switch(c.type){case ai:e=new K(d.Jd[0][0],d.Jd[0][1]);e=T.ub(e);c.point=e;c.ha=[e];break;case $h:c.ha=[];d=d.Jd[0];for(var g=0,i=d.length-1;g<i;g+=2){var j=new K(d[g],d[g+1]),j=T.ub(j);c.ha.push(j)}e=new K(e.Jd[0][0],e.Jd[0][1]);f=new K(f.Jd[0][0],f.Jd[0][1]);e=T.ub(e);f=T.ub(f);c.$a=new jb(e,f)}return c}}; Q.$N=function(a){var b;b?0.25>b?b=0:0.25<b&&1>b?b=1:32<b&&(b=32):b=0;var c=a.split("|");if(1==c.length){var d=bi(c[0]);return{type:d.type,bound:"",ha:d.Jd.join(",")}}if(1<c.length){for(var e=a.split(";.="),a=[],f=[],g=0,i=e.length,c=0;c<i;c++){g=e[c];1<i&&(0==c&&(g+=";"),0<c&&c<i-1&&(g=".="+g+";"),c==i-1&&(g=".="+g));var g=g.split("|"),d=bi(g[0]),j=bi(g[1]);a.push(d.Jd.join(","));a.push(j.Jd.join(","));d=bi(g[2]);g=d.type;d=d.Jd.join(",");d=Q.TZ(d);0<b&&(d=Q.UZ(d,b));f.push(d)}1>=i&&(f=f.join(";")); if(2==i){b=(f[0]+";"+f[1]).split(";");e=[];for(c=0;c<b.length;c++)f=new K(b[c].split(",")[0],b[c].split(",")[1]),f=T.ub(f),e.push(f);f=e}return{type:g,bound:a.join(";"),ha:f}}};Q.gM=function(a){var b=[],b=p;if("Point"==a.toString())b=a;else{if("string"==typeof a){b=ka.trim(a).split(",");if(2>b.length)return;b[0]=parseFloat(ka.trim(b[0]));b[1]=parseFloat(ka.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new B.Zf(b[0],b[1])}return b};Q.aO=function(a){a=a.split(",");a=new K(a[0],a[1]);return T.ub(a)}; Q.wg={country:4,province:11,city:12,A2:13};var ci=["=",".","-","*"],di=8388608; function bi(a){var b;b=a.charAt(0);var c=-1;b==ci[1]?c=ai:b==ci[2]?c=$h:b==ci[3]&&(c=Zh);b=c;for(var c=a.substr(1),d=0,e=c.length,f=[],a=[],g=[];d<e;)if(c.charAt(d)==ci[0]){if(13>e-d)return 0;a:{for(var g=c.substr(d,13),i=f,j=0,l=0,m=0,n=0;6>n;n++){m=ei(g.substr(1+n,1));if(0>m){g=-1-n;break a}j+=m<<6*n;m=ei(g.substr(7+n,1));if(0>m){g=-7-n;break a}l+=m<<6*n}i.push(j);i.push(l);g=0}if(0>g)return 0;d+=13}else if(";"==c.charAt(d))a.push(f.slice(0)),f.length=0,++d;else{if(8>e-d)return 0;g=fi(c.substr(d, 8),f);if(0>g)return 0;d+=8}c=0;for(d=a.length;c<d;c++){e=0;for(f=a[c].length;e<f;e++)a[c][e]/=100}return{GX:b,Jd:a}}function fi(a,b){var c=b.length;if(2>c)return-1;for(var d=0,e=0,f=0,g=0;4>g;g++){f=ei(a.substr(g,1));if(0>f)return-1-g;d+=f<<6*g;f=ei(a.substr(4+g,1));if(0>f)return-5-g;e+=f<<6*g}d>di&&(d=di-d);e>di&&(e=di-e);b.push(b[c-2]+d);b.push(b[c-1]+e);return 0}function ei(a){var b=a.charCodeAt(0);return"A"<=a&&"Z">=a?b-65:"a"<=a&&"z">=a?26+b-97:"0"<=a&&"9">=a?52+b-48:"+"==a?62:"/"==a?63:-1}; ');