/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('canvablepath', 'function Yf(a){a=a.replace(/,/gm," ");a=a.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");a=a.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");a=a.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\\s])/gm,"$1 $2");a=a.replace(/([^\\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");a=a.replace(/([0-9])([+\\-])/gm,"$1 $2");a=a.replace(/(\\.[0-9]*)(\\.)/gm,"$1 $2");a=a.replace(/([Aa](\\s+[0-9]+){3})\\s+([01])\\s*([01])/gm,"$1 $3 $4 ");a=Yf.FV(a);a=Yf.trim(a);this.sP=new function(a){this.LF= a.split(" ");this.reset=function(){this.lh=-1;this.Ft=this.Hw="";this.start=new Yf.Yf(0,0);this.Iw=new Yf.Yf(0,0);this.hb=new Yf.Yf(0,0);this.ia=[];this.yo=[]};this.ZL=function(){return this.lh>=this.LF.length-1};this.xj=function(){return this.ZL()?o:this.LF[this.lh+1].match(/^[A-Za-z]$/)!=p};this.tE=function(){switch(this.Hw){case "m":case "l":case "h":case "v":case "c":case "s":case "q":case "t":case "a":case "z":return o}return q};this.EL=function(){this.lh++;return this.LF[this.lh]};this.rj=function(){return parseFloat(this.EL())}; this.RY=function(){this.Ft=this.Hw;this.Hw=this.EL()};this.tm=function(){return this.DY(new Yf.Yf(this.rj(),this.rj()))};this.zD=function(){var a=this.tm();return this.Iw=a};this.sk=function(){var a=this.tm();return this.hb=a};this.xL=function(){return"c"!=this.Ft.toLowerCase()&&"s"!=this.Ft.toLowerCase()&&"q"!=this.Ft.toLowerCase()&&"t"!=this.Ft.toLowerCase()?this.hb:new Yf.Yf(2*this.hb.x-this.Iw.x,2*this.hb.y-this.Iw.y)};this.DY=function(a){this.tE()&&(a.x+=this.hb.x,a.y+=this.hb.y);return a};this.dj= function(a,b,e){e!=p&&(0=w(u,v)&&(n=Math.PI);1<=w(u,v)&&(n=0);u=1-i?1:-1;v=m+u*(n/2);c.PB(new Yf.Yf(g.x+k*Math.cos(v),g.y+l*Math.sin(v)),v-u*Math.PI/2);c.PB(e,v-u*Math.PI);d.ng(e.x,e.y);a!=p&&(w=k>l?k:l,e=k>l?1:k/l,k=k>l?l/k:1,a.translate(g.x,g.y),a.rotate(f),a.scale(e,k),a.arc(0,0,w,m,m+n,1-i),a.scale(1/e,1/k),a.rotate(-f),a.translate(-g.x,-g.y))}break;case "Z":case "z":a!=p&&a.closePath(),c.hb=c.start}return d}} Yf.trim=function(a){return a.replace(/^\\s+|\\s+$/g,"")};Yf.FV=function(a){return a.replace(/[\\s\\r\\t\\n]+/gm," ")};Yf.Yf=function(a,b){this.x=a;this.y=b}; Yf.$O=function(){this.An=this.zn=this.Cj=this.Bj=Number.NaN;this.x=t("Bj");this.y=t("Cj");this.width=function(){return this.zn-this.Bj};this.height=function(){return this.An-this.Cj};this.ng=function(a,b){if(a!=p){if(isNaN(this.Bj)||isNaN(this.zn))this.zn=this.Bj=a;athis.zn&&(this.zn=a)}if(b!=p){if(isNaN(this.Cj)||isNaN(this.An))this.An=this.Cj=b;bthis.An&&(this.An=b)}};this.TB=function(a){this.ng(a,p)};this.UB=function(a){this.ng(p,a)};this.GJ=function(a, b,c,d,e,f){c=a+2/3*(c-a);d=b+2/3*(d-b);this.OB(a,b,c,c+1/3*(e-a),d,d+1/3*(f-b),e,f)};this.OB=function(a,b,c,d,e,f,g,i){var k=[a,b],l=[c,d],m=[e,f],n=[g,i];this.ng(k[0],k[1]);this.ng(n[0],n[1]);for(Zf=0;1>=Zf;Zf++)if(a=function(a){return Math.pow(1-a,3)*k[Zf]+3*Math.pow(1-a,2)*a*l[Zf]+3*(1-a)*Math.pow(a,2)*m[Zf]+Math.pow(a,3)*n[Zf]},b=6*k[Zf]-12*l[Zf]+6*m[Zf],c=-3*k[Zf]+9*l[Zf]-9*m[Zf]+3*n[Zf],d=3*l[Zf]-3*k[Zf],0==c)0!=b&&(b=-d/b,0b&&(0==Zf&&this.TB(a(b)),1==Zf&&this.UB(a(b))));else if(d=Math.pow(b, 2)-4*d*c,!(0>d)&&(e=(-b+Math.sqrt(d))/(2*c),0e&&(0==Zf&&this.TB(a(e)),1==Zf&&this.UB(a(e))),b=(-b-Math.sqrt(d))/(2*c),0b))0==Zf&&this.TB(a(b)),1==Zf&&this.UB(a(b))};this.ng(j,j);this.ng(j,j)};z.aP=Yf; ');