1 |
- _jsload2&&_jsload2('scommon', 'var ch=new O(23,25),dh=new O(9,25),eh=new O(9,0);V.pV=function(a,b,c,e){var f=fh(b);if(f&&!(0>c||9<c)){b=s;f=new U(f);if(H()){var g=function(){return new qc(G.qa+"markers_hd.png",new O(22,31),{anchor:new O(11,31),imageOffset:new O(0,-32*c),imageSize:new O(85,477),infoWindowAnchor:new O(11,0)})},b=g(),g=g();g.Yt(new O(-28,-32*c));f.oE=b;f.nM=g}else b=new qc(G.qa+"markers.png",ch,{anchor:dh,imageOffset:new O(0,-25*c),infoWindowAnchor:eh});f.Rb(b);a.Ga(f);e&&f.Ec(e);return f}}; V.zw=function(a,b,c){if(b=fh(b)){var b=new U(b),e=s;H()?(e=new qc(G.qa+"markers_hd.png",new O(21,31),{anchor:dh,imageOffset:new O(-29,-320),imageSize:new O(85,477),infoWindowAnchor:eh}),b.oE=e):e=new qc(G.qa+"markers.png",ch,{anchor:dh,imageOffset:new O(0,-250),infoWindowAnchor:eh});b.Rb(e);a.Ga(b);c&&b.Ec(c);return b}}; V.oV=function(a,b,c){if(b=fh(b)){var b=new U(b),e=s;if(H()){var f=function(){return new qc(G.qa+"markers_hd.png",new O(21,31),{anchor:dh,imageOffset:new O(0,-383),imageSize:new O(85,477),infoWindowAnchor:eh})},e=f(),f=f();f.Yt(new O(-29,-352));b.oE=e;b.nM=f}else e=new qc(G.qa+"markers.png",ch,{anchor:dh,imageOffset:new O(0,-300),infoWindowAnchor:eh});b.Rb(e);a.Ga(b);c&&b.Ec(c);return b}}; function fh(a){var b=[],b=s;if(a instanceof J)b=a;else{if("string"==typeof a){b=z.trim(a).split(",");if(2>b.length)return;b[0]=parseFloat(z.trim(b[0]));b[1]=parseFloat(z.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new J(b[0],b[1])}return b} V.wW=function(a){var b=a.title,c=a.cs,e=a.f0,f=a.IW,a=a.iF||0;if(!b)return s;var g=b;1==a?g+="-\\u516c\\u4ea4\\u8f66\\u7ad9":3==a&&(g+="-\\u5730\\u94c1\\u7ad9");var i=13;f&&(i=10);g.replace(/[\\u0100-\\uffff]/g,"##").length>2*i+1&&(g=g.substring(0,i)+"…");b="<p style=\'width:210px;font:bold 14px/16px "+G.fontFamily+";margin:0;color:#cc5522;white-space:nowrap;overflow:hidden\' title=\'"+b+"\'>"+g;f&&(b+="<a target=\'_blank\' href=\'"+f+"\' style=\'margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:normal;text-decoration:none;\'>\\u8be6\\u60c5\\u00bb</a>"); b+="</p>";f=[];f.push("<div style=\'font:12px "+G.fontFamily+";margin-top:10px\'>");if(c){g="\\u5730\\u5740\\uff1a";if(1==a||3==a)g="\\u8f66\\u6b21\\uff1a";f.push(\'<table cellspacing="0" style="overflow:hidden;table-layout:fixed;width:100%;font:12px \'+G.fontFamily+\'" >\');f.push(\'<tr><td style="vertical-align:top;width:38px;white-space:nowrap;word-break:keep-all">\'+g+\' </td><td style="line-height:16px">\');f.push(c+" </td></tr>");e&&f.push(\'<tr><td style="vertical-align:top;">\\u7535\\u8bdd\\uff1a</td><td>\'+ e+"</td></tr>");f.push("</table>")}else e&&(f.push(\'<table cellspacing="0" style="table-layout:fixed;width:100%;font:12px \'+G.fontFamily+\'">\'),f.push(\'<tr><td style="vertical-align:top;width:36px;white-space:nowrap;word-break:keep-all">\\u7535\\u8bdd\\uff1a</td><td>\'+e+"</td></tr></table>"));f.push("</div>");return new tc(f.join(""),{title:b,height:0,width:230,margin:[10,10,20,10]})}; V.zo=function(a,b,c,e){if(b=fh(b))return e=new U(b,{icon:H()?new qc(G.qa+"dest_mkr.png",new O(29,34),{anchor:new O(14,32),imageSize:new O(94,41),imageOffset:new O(-29*e,0),infoWindowAnchor:new O(14,0)}):new qc(G.qa+"dest_markers.png",new O(42,34),{anchor:new O(14,32),imageOffset:new O(0,-34*e),infoWindowAnchor:new O(14,0)}),baseZIndex:35E5,draggingCursor:"pointer"}),a.Ga(e),c&&e.Ec(c),e};V.Ao=function(a,b){return V.Co(a,b,qd)}; V.YP=[{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"}]; V.XP=[{stroke:6,color:"#5298fe",opacity:1,style:"solid"},{stroke:6,color:"#5298fe",opacity:1,style:"solid"},{stroke:6,color:"#4ddc26",opacity:1,style:"solid"},{stroke:6,color:"#00bd01",opacity:1,style:"solid"},{stroke:6,color:"#ff0103",opacity:0.65,style:"dashed"},{stroke:6,color:"#ff0103",opacity:0.65,style:"solid"},{stroke:6,color:"#5298ff",opacity:1,style:"solid"},{stroke:6,color:"#5298ff",opacity:1,style:"solid"},{stroke:6,color:"#ff0103",opacity:0.65,style:"dashed"}]; V.nV=function(a,b,c){var e=V.YP;"undefined"==typeof c&&(c=0);if(e[c])return e=e[c],b=new Gc(b,{strokeWeight:e.stroke,strokeColor:e.color,strokeOpacity:e.opacity,strokeStyle:e.style,clickable:t}),a.Ga(b),b.e2=c,b}; V.Co=function(a,b,c){var e=V.XP;"undefined"==typeof c&&(c=0);if(e[c]){var f=e[c],e=new Gc(b,{strokeWeight:f.stroke,strokeColor:f.color,strokeOpacity:f.opacity,strokeStyle:f.style,clickable:t});a.Ga(e);e.X1=c;c==qd&&(b=new Gc(b,{strokeWeight:f.stroke-2,strokeColor:"#fff",strokeOpacity:0.3,clickable:t}),e.kB=b,a.Ga(b));return e}}; V.$w=function(a){var b=a.content,c=a.dx,e=a.total,f=a.my,g=a.C4,a=a.zY,i=["<div style=\'font:12px "+G.fontFamily+"\'>"];b&&i.push("<div style=\'margin:10px 1em 24px 0\'>"+b+"</div>");a||i.push(V.qX(e,c));i.push("</div>");b=new tc(i.join(""),{title:"",height:0,width:220,margin:[10,10,20,10]});if(a)return b;b.addEventListener("open",function(){var a=H()?"touchend":"click";z.Fc("trans_prev")&&z.M(z.Fc("trans_prev"),a,function(){f&&"function"==typeof f&&f(c-1,g)});z.Fc("trans_next")&&z.M(z.Fc("trans_next"), a,function(){f&&"function"==typeof f&&f(c+1,g)})});return b}; V.qX=function(a,b){var c=[];c.push(\'<table id="trans_nav" width="99%" cols="2" style="background:#eaf2ff;font:12px \'+G.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("")}; V.ZJ=function(a,b,c,e){if(b=fh(b)){c=c||0;if(H())c=new qc(G.qa+"dest_mkr.png",new O(20,20),{imageSize:new O(94,41),imageOffset:new O(-59,-21*c),infoWindowAnchor:new O(10,0)});else{var f=-55;switch(c){case 1:f=-76;break;case 3:f=-118;break;case 4:f=-139;break;default:f=-55}c=new qc(G.qa+"trans_icons.png",new O(21,21),{imageOffset:new O(0,f),infoWindowAnchor:new O(10,0)})}c=new U(b,{icon:c});a.Ga(c);e&&c.Ec(e);return c}};V.Ys=function(a){return a&&a.Na&&a.Na.rg?a.Na.rg.childNodes[0]:s}; V.sV=function(a,b,c){b=new U(b,{icon:new qc(Yd.RU,new O(11,11))});c&&b.Ec(c);a.Ga(b);return b};V.VJ=function(a,b){var c=new U(b,{icon:new qc(G.qa+"drag.png",new O(11,11)),draggingCursor:"pointer"});a.Ga(c);c.Sp(10);return c};V.$J=function(a,b,c){b=new U(b,{icon:new qc(G.qa+"way-points.png",new O(36,40),{imageOffset:new O(-11+-36*c,-35)}),draggingCursor:"pointer",offset:new O(5,-20)});a.Ga(b);b.Sp(10);return b}; V.IK=function(){var a=new uc("\\u62d6\\u52a8\\u4ee5\\u66f4\\u6539\\u8def\\u7ebf",{offset:new O(30,-10)});a.Md({border:"solid 1px gray",padding:"2px",whiteSpace:"nowrap",background:"#fff"});return a};V.BX=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)))}; V.qV=function(a,b,c,e){var f={type:"RouteAddrMarker"},a=fh(a),f=f||{};f.type=f.type||"normal";if(a&&!("undefined"==typeof b||0>b||9<b&&"child"!==f.type||39<b&&"child"===f.type)){var g;g=G.qa+"markers_new.png";var i=0;"RouteAddrMarker"==f.type&&(i=-G.oG);i=new qc(g,G.qG,{offset:G.wP,imageOffset:new O(-G.pG*b,i),infoWindowOffset:G.mG});g=b+1;b=new U(a,{icon:i,zIndexFixed:q,baseZIndex:25E5-100*b});b.C2={type:f.type};e.Ga(b);b.a2=g;c&&b.Ec(c);return b}};W.bc=1;W.bq=2;W.Dn=3;W.Gu=4;W.Hu=5;W.Fu=6;W.Eu=7;W.vG=8;W.uG=9;W.rv=function(a,b){return a?B.vp+"?s="+encodeURIComponent("inf&uid="+a+"&c="+b)+"&i=0&sr=1":""};W.zS=function(a){return!a?-1:"string"==typeof a?2:a instanceof J?1:a instanceof Ka?0:"number"==typeof a?3:-1}; z.extend(W.prototype,{Mg:function(a,b){var c=W.zS(a.src);if(-1!=c){var e=this;if(3==c)b&&b(a.src);else if(2==c)a.EC==c&&a.FC==a.src&&a.gm?b&&b(a.gm):(a.EC=c,a.FC=a.src,rd.ab(function(a){a&&(a.result&&2==a.result.type)&&(e.Ad.gm=a.content.code,b&&b(e.Ad.gm))},{qt:"cur",wd:a.src}));else{var f,g=18;0==c?a.src.Xx()?(f=a.src.Ka(),g=a.src.fa()):a.src.addEventListener("load",function(){e.Mg(a,b)}):f=a.src;c==a.EC&&a.FC.pb(f)&&a.gm?b&&b(a.gm):(0==c&&(f=S.Eb(f)),1==c&&(f=S.Eb(f)),a.EC=c,a.FC=new J(f.lng,f.lat), rd.ab(function(a){if(a&&a.result&&a.result.type==4){e.Ad.gm=a.content?a.content.uid:1;b&&b(e.Ad.gm)}},{qt:"cen",b:f.lng+","+f.lat+";"+f.lng+","+f.lat,l:g}))}}},Ta:function(a){"number"==typeof a?this.Me=a:delete this.Me},Fa:function(a,b,c){var e;e="undefined"===typeof b?4:b.wr&&b.wr.length?1:"[object Object]"===Object.prototype.toString.call(b.aw)&&"[object Object]"===Object.prototype.toString.call(b.lv)?3:2;switch(a){case W.bc:(a=this.j.py)&&a(b,e);break;case W.bq:(a=this.j.BN)&&a(b,c);break;case W.Gu:(a= this.j.bF)&&a(b,c);break;case W.Dn:(a=this.j.AN)&&a(b,c);break;case W.Hu:(a=this.j.DN)&&a(b,c);break;case W.Fu:(a=this.j.zN)&&a(b,c);break;case W.Eu:(a=this.j.yN)&&a(b,c);break;case W.vG:(a=this.j.wN)&&a(b,c);break;case W.uG:(a=this.j.vN)&&a(b,c)}}});var gh=0,hh=1,ih=2;ab.unique=function(a){for(var b=[],c={},e=0,f=a.length;e<f;e++)c[a[e]]||(c[a[e]]=q,b.push(a[e]));return b};ab.tx=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}; ab.Be=function(a,b){if("string"==typeof a&&a){var c=a.split("|"),e,f,g;if(1==c.length)e=jh(a);else if(e=jh(c[2]),f=jh(c[0]),g=jh(c[1]),!b)return e;c={type:e.uX};if(b)switch(c.type){case ih:f=new J(e.Id[0][0],e.Id[0][1]);f=S.Tb(f);c.point=f;c.ja=[f];break;case hh:c.ja=[];e=e.Id[0];for(var i=0,k=e.length-1;i<k;i+=2){var m=new J(e[i],e[i+1]),m=S.Tb(m);c.ja.push(m)}f=new J(f.Id[0][0],f.Id[0][1]);g=new J(g.Id[0][0],g.Id[0][1]);f=S.Tb(f);g=S.Tb(g);c.bb=new fb(f,g)}return c}}; ab.KN=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 e=jh(c[0]);return{type:e.type,bound:"",ja:e.Id.join(",")}}if(1<c.length){for(var f=a.split(";.="),a=[],g=[],i=0,k=f.length,c=0;c<k;c++){i=f[c];1<k&&(0==c&&(i+=";"),0<c&&c<k-1&&(i=".="+i+";"),c==k-1&&(i=".="+i));var i=i.split("|"),e=jh(i[0]),m=jh(i[1]);a.push(e.Id.join(","));a.push(m.Id.join(","));e=jh(i[2]);i=e.type;e=e.Id.join(",");e=ab.JZ(e);0<b&&(e=ab.KZ(e,b));g.push(e)}1>=k&&(g=g.join(";")); if(2==k){b=(g[0]+";"+g[1]).split(";");f=[];for(c=0;c<b.length;c++)g=new J(b[c].split(",")[0],b[c].split(",")[1]),g=S.Tb(g),f.push(g);g=f}return{type:i,bound:a.join(";"),ja:g}}};ab.QL=function(a){var b=[],b=s;if("Point"==a.toString())b=a;else{if("string"==typeof a){b=ia.trim(a).split(",");if(2>b.length)return;b[0]=parseFloat(ia.trim(b[0]));b[1]=parseFloat(ia.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new B.cg(b[0],b[1])}return b};ab.LZ=function(a){a=a.split(",");a=new J(a[0],a[1]);return S.Tb(a)}; ab.xg={country:4,province:11,city:12,l2:13};var kh=["=",".","-","*"],lh=8388608; function jh(a){var b;b=a.charAt(0);var c=-1;b==kh[1]?c=ih:b==kh[2]?c=hh:b==kh[3]&&(c=gh);b=c;for(var c=a.substr(1),e=0,f=c.length,g=[],a=[],i=[];e<f;)if(c.charAt(e)==kh[0]){if(13>f-e)return 0;a:{for(var i=c.substr(e,13),k=g,m=0,n=0,o=0,p=0;6>p;p++){o=mh(i.substr(1+p,1));if(0>o){i=-1-p;break a}m+=o<<6*p;o=mh(i.substr(7+p,1));if(0>o){i=-7-p;break a}n+=o<<6*p}k.push(m);k.push(n);i=0}if(0>i)return 0;e+=13}else if(";"==c.charAt(e))a.push(g.slice(0)),g.length=0,++e;else{if(8>f-e)return 0;i=nh(c.substr(e, 8),g);if(0>i)return 0;e+=8}c=0;for(e=a.length;c<e;c++){f=0;for(g=a[c].length;f<g;f++)a[c][f]/=100}return{uX:b,Id:a}}function nh(a,b){var c=b.length;if(2>c)return-1;for(var e=0,f=0,g=0,i=0;4>i;i++){g=mh(a.substr(i,1));if(0>g)return-1-i;e+=g<<6*i;g=mh(a.substr(4+i,1));if(0>g)return-5-i;f+=g<<6*i}e>lh&&(e=lh-e);f>lh&&(f=lh-f);b.push(b[c-2]+e);b.push(b[c-1]+f);return 0}function mh(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} ab.wy=function(a){var b=[];if("string"===typeof a)for(var a=a.split(";"),c=0;c<a.length;c++){var e=a[c].split(",");b.push(new J(e[0],e[1]))}return b}; ');
|