/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('scommon', 'var Og=new L(23,25),Pg=new L(9,25),Qg=new L(9,0);U.NU=function(a,b,c,d){var e=Rg(b);if(e&&!(0>c||9b.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 H(b[0],b[1])}return b} U.SV=function(a){var b=a.title,c=a.Wr,d=a.y_,e=a.cW,a=a.UE||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)+"…");b="

"+f;e&&(b+="\\u8be6\\u60c5\\u00bb"); b+="

";e=[];e.push("
");if(c){f="\\u5730\\u5740\\uff1a";if(1==a||3==a)f="\\u8f66\\u6b21\\uff1a";e.push(\'\');e.push(\'");d&&e.push(\'");e.push("
\'+f+\' \');e.push(c+" 
\\u7535\\u8bdd\\uff1a\'+ d+"
")}else d&&(e.push(\'\'),e.push(\'
\\u7535\\u8bdd\\uff1a\'+d+"
"));e.push("
");return new qc(e.join(""),{title:b,height:0,width:230,margin:[10,10,20,10]})}; U.vo=function(a,b,c,d){if(b=Rg(b))return d=new T(b,{icon:G()?new nc(F.pa+"dest_mkr.png",new L(29,34),{anchor:new L(14,32),imageSize:new L(94,41),imageOffset:new L(-29*d,0),infoWindowAnchor:new L(14,0)}):new nc(F.pa+"dest_markers.png",new L(42,34),{anchor:new L(14,32),imageOffset:new L(0,-34*d),infoWindowAnchor:new L(14,0)}),baseZIndex:35E5,draggingCursor:"pointer"}),a.Ia(d),c&&d.Dc(c),d};U.wo=function(a,b){return U.Ql(a,b,Zc)}; U.zP=[{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"}]; U.yP=[{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"}]; U.HJ=function(a,b,c){var d=U.zP;"undefined"==typeof c&&(c=0);if(d[c])return d=d[c],b=new Ac(b,{strokeWeight:d.stroke,strokeColor:d.color,strokeOpacity:d.opacity,strokeStyle:d.style,clickable:q}),a.Ia(b),b.c1=c,b}; U.Ql=function(a,b,c){var d=U.yP;"undefined"==typeof c&&(c=0);if(d[c]){var e=d[c],d=new Ac(b,{strokeWeight:e.stroke,strokeColor:e.color,strokeOpacity:e.opacity,strokeStyle:e.style,clickable:q});a.Ia(d);d.X0=c;c==Zc&&(b=new Ac(b,{strokeWeight:e.stroke-2,strokeColor:"#fff",strokeOpacity:0.3,clickable:q}),d.ZA=b,a.Ia(b));return d}}; U.Kw=function(a){var b=a.content,c=a.Nw,d=a.total,e=a.Yx,f=a.n3,a=a.TX,g=["
"];b&&g.push("
"+b+"
");a||g.push(U.KW(d,c));g.push("
");b=new qc(g.join(""),{title:"",height:0,width:220,margin:[10,10,20,10]});if(a)return b;b.addEventListener("open",function(){var a=G()?"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}; U.KW=function(a,b){var c=[];c.push(\'\');c.push(\'");c.push(\'
\');0==b?c.push(\'\\u4e0a\\u4e00\\u6b65\'):c.push(\'\\u4e0a\\u4e00\\u6b65\');c.push("\'); b==a+1?c.push(\'\\u4e0b\\u4e00\\u6b65\'):c.push(\'\\u4e0b\\u4e00\\u6b65\');c.push("
");return c.join("")}; U.JJ=function(a,b,c,d){if(b=Rg(b)){c=c||0;if(G())c=new nc(F.pa+"dest_mkr.png",new L(20,20),{imageSize:new L(94,41),imageOffset:new L(-59,-21*c),infoWindowAnchor:new L(10,0)});else{var e=-55;1==c&&(e=-76);c=new nc(F.pa+"trans_icons.png",new L(21,21),{imageOffset:new L(0,e),infoWindowAnchor:new L(10,0)})}c=new T(b,{icon:c});a.Ia(c);d&&c.Dc(d);return c}};U.Qs=function(a){return a&&a.La&&a.La.og?a.La.og.childNodes[0]:p}; U.QU=function(a,b,c){b=new T(b,{icon:new nc(Gd.sU,new L(11,11))});c&&b.Dc(c);a.Ia(b);return b};U.EJ=function(a,b){var c=new T(b,{icon:new nc(F.pa+"drag.png",new L(11,11)),draggingCursor:"pointer"});a.Ia(c);c.St(10);return c};U.KJ=function(a,b,c){b=new T(b,{icon:new nc(F.pa+"way-points.png",new L(36,40),{imageOffset:new L(-11+-36*c,-35)}),draggingCursor:"pointer",offset:new L(5,-20)});a.Ia(b);b.St(10);return b}; U.sK=function(){var a=new rc("\\u62d6\\u52a8\\u4ee5\\u66f4\\u6539\\u8def\\u7ebf",{offset:new L(30,-10)});a.Kd({border:"solid 1px gray",padding:"2px",whiteSpace:"nowrap",background:"#fff"});return a};U.WW=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)))}; U.OU=function(a,b,c,d){var e={type:"RouteAddrMarker"},a=Rg(a),e=e||{};e.type=e.type||"normal";if(a&&!("undefined"==typeof b||0>b||9a&&(a=1);18b?b=0:0.25b?b=1:32=i&&(f=f.join(";")); if(2==i){b=(f[0]+";"+f[1]).split(";");e=[];for(c=0;cb.length)return;b[0]=parseFloat(ha.trim(b[0]));b[1]=parseFloat(ha.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new z.Yf(b[0],b[1])}return b};P.dZ=function(a){a=a.split(",");a=new H(a[0],a[1]);return R.Eb(a)}; P.vg={country:4,province:11,city:12,j1:13};var Wg=["=",".","-","*"],Xg=8388608; function Vg(a){var b;b=a.charAt(0);var c=-1;b==Wg[1]?c=Ug:b==Wg[2]?c=Tg:b==Wg[3]&&(c=Sg);b=c;for(var c=a.substr(1),d=0,e=c.length,f=[],a=[],g=[];de-d)return 0;a:{for(var g=c.substr(d,13),i=f,k=0,l=0,m=0,n=0;6>n;n++){m=Yg(g.substr(1+n,1));if(0>m){g=-1-n;break a}k+=m<<6*n;m=Yg(g.substr(7+n,1));if(0>m){g=-7-n;break a}l+=m<<6*n}i.push(k);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=Zg(c.substr(d, 8),f);if(0>g)return 0;d+=8}c=0;for(d=a.length;cc)return-1;for(var d=0,e=0,f=0,g=0;4>g;g++){f=Yg(a.substr(g,1));if(0>f)return-1-g;d+=f<<6*g;f=Yg(a.substr(4+g,1));if(0>f)return-5-g;e+=f<<6*g}d>Xg&&(d=Xg-d);e>Xg&&(e=Xg-e);b.push(b[c-2]+d);b.push(b[c-1]+e);return 0}function Yg(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}; ');