/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('opmb', 'var Gg=q,Hg=p; z.Se(function(a){function b(){e&&(e=q,f=p,g||a.dispatchEvent(k))}function c(c){e=o;k=la(new N("ontouch"),c);f=new Q(c.changedTouches[0].clientX,c.changedTouches[0].clientY);var g=d("onclickex",c);setTimeout(function(){b();a.dispatchEvent(g)},a.K.lW);Gg||a.dispatchEvent(d("onclick",c))}function d(b,c){for(var d=new N(b),e=c.target,f=p,g=p;e&&e!==a.Ua;){if(e.ba){var i=x.lang.Mc(e.ba);i instanceof gb&&"canvas"!==e.nodeName.toLowerCase()&&(f=i);i instanceof qc&&(g=i)}e=e.offsetParent}for(var e=c.changedTouches[0].pageX, i=c.changedTouches[0].pageY,k=a.Ua;k&&k!=document.body;)e-=k.offsetLeft,i-=k.offsetTop,k=k.offsetParent;d.offsetX=e;d.offsetY=i;d.pixel=d.ib=new Q(d.offsetX,d.offsetY);d.point=d.point=a.ub(d.ib);d.overlay=d.$a=f;d.infoWindow=g;return d}a.K.lW=500;var e=q,f,g=q,i=q,k;x.M(a.Na(),"touchmove",function(b){a.K.Xb&&b.preventDefault()});x.M(a.platform,"touchstart",function(b){Gg=q;Hg=setTimeout(function(){Gg=o;a.dispatchEvent(la(d("onlongpress",b),b))},1E3);a.K.Xb&&na(b);i=q;a.dispatchEvent(la(d("ontouchstart", b),b));a.K.Xb&&Bb(b)});x.M(a.platform,"touchmove",function(b){a.K.Xb&&na(b);i=o;a.dispatchEvent(la(d("ontouchmove",b),b))});x.M(a.platform,"touchend",function(k){clearTimeout(Hg);a.K.Xb&&Bb(k);i||(e?(g=o,Gg||a.dispatchEvent(d("onclick",k)),20>Eb(f,new Q(k.changedTouches[0].clientX,k.changedTouches[0].clientY))?(a.dispatchEvent(d("ondblclick",k)),a.dispatchEvent(la(new N("ondbltouch"),k))):a.dispatchEvent(la(d("ontouchend",k),k)),b(),g=q):c(k));a.dispatchEvent(la(d("ontouchend",k),k))});x.M(a.platform, "gesturestart",function(b){b.preventDefault();a.dispatchEvent(la(new N("ongesturestart"),b))});x.M(a.platform,"gesturechange",function(b){b.preventDefault();a.dispatchEvent(la(new N("ongesturechange"),b))});x.M(a.platform,"gestureend",function(b){b.preventDefault();a.dispatchEvent(la(new N("ongestureend"),b))})}); z.Se(function(a){function b(a){a&&(B.WebkitTransform="");i=g=0;k=1;l[0].x=l[0].y=l[1].x=l[1].y=0;w=q}function c(){if(x.platform.Gm)if(/Nexus/.test(navigator.userAgent))a.K.Xb&&(B.left=a.offsetX+g+"px",B.top=a.offsetY+i+"px");else{if(a.K.Xb&&(B.left=a.offsetX+g*k+"px",B.top=a.offsetY+i*k+"px"),1!=k)B.WebkitTransform=a.K.Es?"scale("+k+") ":""}else B.WebkitTransform=(a.K.Xb?"translate("+g*k+"px, "+i*k+"px) ":"")+(a.K.Es?"scale("+k+") ":"")}function d(){for(var b=a.Ua,c=0,d=0;b!=document.body;)c+=b.offsetLeft, d+=b.offsetTop,b=b.offsetParent;Ig&&(d=c=0);B.WebkitTransformOrigin=a.K.Xb?(l[0].x+l[1].x)/2-a.offsetX-c+"px "+((l[0].y+l[1].y)/2-a.offsetY-d)+"px":Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px"}function e(b,c){var d=new N(b);d.offsetX=c.changedTouches[0].clientX;d.offsetY=c.changedTouches[0].clientY;d.ib=new Q(d.offsetX,d.offsetY);d.point=a.ub(d.ib);return d}function f(a){for(var b=[],c,d=0,e=a.touches.length;db.changedTouches.length)){for(E=b.target;E&&E!=a.Ua;)E.Ax&&x.lang.Mc(E.Ax),E=E.offsetParent;for(var E=[],B=0;2>B;B++){for(var O=b.changedTouches[B].pageX,M=b.changedTouches[B].pageY,Y=a.Ua;Y&&Y!=document.body;)O-=Y.offsetLeft,M-=Y.offsetTop,Y=Y.offsetParent;E[B]={x:O,y:M}}y=new Q((E[0].x+E[1].x)/2,(E[0].y+E[1].y)/2)}E=b.targetTouches.length;1==m&&2!=n&&(g+=b.targetTouches[0].clientX- l[0].x,i+=b.targetTouches[0].clientY-l[0].y,l[0].x=b.targetTouches[0].clientX,l[0].y=b.targetTouches[0].clientY,c(),w=o);if(2==m){var O=l[0].x,M=l[0].y,Y=l[1].x,oa=l[1].y;if(w){for(var ka=0;kaEb(B,O)?(l[0].x=b.targetTouches[0].clientX,l[0].y=b.targetTouches[0].clientY):(w=o,l[1].x=b.targetTouches[0].clientX,l[1].y=b.targetTouches[0].clientY)),2==E)M=new Q(b.targetTouches[1].clientX,b.targetTouches[1].clientY),30>Eb(O,M)?(l[0].x=b.targetTouches[1].clientX,l[0].y=b.targetTouches[1].clientY):(Eb(B,O)