Commit 088531f5 by niuxiaolin

latest ui 08/16/2019 19:27:31

parent 34632a05
......@@ -2098,6 +2098,11 @@
}
}
},
"classlist.js": {
"version": "1.1.20150312",
"resolved": "https://registry.npm.taobao.org/classlist.js/download/classlist.js-1.1.20150312.tgz",
"integrity": "sha1-HXCEL3Ai8I2awIbOaeWyUPLFd4k="
},
"clean-css": {
"version": "4.2.1",
"resolved": "https://registry.npm.taobao.org/clean-css/download/clean-css-4.2.1.tgz",
......@@ -2595,7 +2600,7 @@
},
"date-fns": {
"version": "1.30.1",
"resolved": "https://registry.npm.taobao.org/date-fns/download/date-fns-1.30.1.tgz",
"resolved": "https://registry.npm.taobao.org/date-fns/download/date-fns-1.30.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdate-fns%2Fdownload%2Fdate-fns-1.30.1.tgz",
"integrity": "sha1-LnG/CxGRU9u0zE6I2epaz7UNwFw="
},
"date-format": {
......@@ -10001,6 +10006,11 @@
"minimalistic-assert": "^1.0.0"
}
},
"web-animations-js": {
"version": "2.3.2",
"resolved": "https://registry.npm.taobao.org/web-animations-js/download/web-animations-js-2.3.2.tgz",
"integrity": "sha1-pRljo1nFQ/l7R8fUvC2BH5/J4VM="
},
"webdriver-js-extender": {
"version": "2.1.0",
"resolved": "https://registry.npm.taobao.org/webdriver-js-extender/download/webdriver-js-extender-2.1.0.tgz",
......
......@@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --port 8008 --host 0.0.0.0 --proxy--config proxy.json",
"start": "ng serve --port 8008 --host 0.0.0.0 --proxy--config proxy.json --disableHostCheck",
"build": "ng build --prod --build-optimizer && npm run publish-to-backend ",
"publish-to-backend": "Powershell.exe -executionpolicy remotesigned -File publish-to-backend.ps1",
"test": "ng test",
......@@ -24,11 +24,13 @@
"@fortawesome/fontawesome-svg-core": "^1.2.19",
"@fortawesome/free-solid-svg-icons": "^5.9.0",
"angular2-baidu-map": "^4.7.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.4",
"ng-zorro-antd": "^7.5.1",
"ngx-color-picker": "^8.1.0",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"web-animations-js": "^2.3.2",
"zone.js": "~0.8.26"
},
"devDependencies": {
......
......@@ -30,10 +30,8 @@ export class LoginComponent implements OnInit {
localStorage.setItem("userName",this.validateForm.value.userName);
localStorage.setItem("password",this.validateForm.value.password);
}
let urlParams:URLSearchParams = new URLSearchParams();
this.http.get(`${this.s.basePath}/user/login/${this.validateForm.value.userName}/${this.validateForm.value.password}`).subscribe(res=>{
this.http.post(`${this.s.basePath}/user/login`, {userName:this.validateForm.value.userName,password:this.validateForm.value.password}).subscribe(res=>{
if((res as any).code==1){
location.href = "./#/home";
}else{
......
......@@ -35,29 +35,29 @@
<div class="proj-info" *ngIf="!highShow">
<label>
<div>
<div class="ie-fix1">
项目总数:
</div>
<div>
<div class="ie-fix">
{{staticHighWay.total}}个
</div>
</label>
<label>
<div>
<div class="ie-fix1">
总建设里程:
</div>
<div>
<div class="ie-fix">
{{staticHighWay.mileage}}Km
</div>
</label>
<label>
<div>
<div class="ie-fix1">
总投资:
</div>
<div>
<div class="ie-fix">
{{staticHighWay.capital}}亿
</div>
</label>
......@@ -74,29 +74,29 @@
<div class="proj-info" *ngIf="!normalShow">
<label>
<div>
<div class="ie-fix1">
项目总数:
</div>
<div>
<div class="ie-fix">
{{staticNormal.total}}个
</div>
</label>
<label>
<div>
<div class="ie-fix1">
总建设里程:
</div>
<div>
<div class="ie-fix">
{{staticNormal.mileage}}Km
</div>
</label>
<label>
<div>
<div class="ie-fix1">
总投资:
</div>
<div>
<div class="ie-fix">
{{staticNormal.capital}}亿
</div>
</label>
......
......@@ -57,9 +57,9 @@
.left{
width: 292px;
width: 301px;
position: absolute;
top: 188px;
top: 15%;
display: flex;
flex-direction: column;
}
......@@ -79,11 +79,16 @@ baidu-map{
}
.function{
// right: 128px;
// /* bottom: 60px; */
// top: 106px;
// width: 35px;
position: absolute;
right: 128px;
/* bottom: 60px; */
top: 106px;
width: 35px;
right: 10%;
top: 10%;
width: 2em;
img{
background:#3170f8;
/*box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #4a83b4, 0 0 35px #4a83b4, 0 0 40px #4a83b4, 0 0 50px #4a83b4, 0 0 75px #4a83b4;*/
......@@ -103,8 +108,11 @@ baidu-map{
.proj-info{
label{
display: -ms-grid;
display: grid;
grid-template-columns: 70% auto;
-ms-grid-columns: 70% 30%;
grid-template-columns: 70% 30%;
color: #eaab4e;
padding-top: 1em;
font-size: 22px;
......@@ -205,3 +213,98 @@ fieldset{
margin-bottom:1em;
}
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
// body{
// background:red;
// }
.ie-fix1{
display:inline-block;
}
.ie-fix{
float:right;
}
.proj-info{
label{
display:inline-block;
}
}
}
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
}
/*
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1025px) and (max-width: 1380px) {
.main{
.left{
width:250px;
}
}
legend{
width:24%!important;
}
//CSS
}
/*
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) {
//CSS
}
/*
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
//CSS
}
/*
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/
@media (min-width: 481px) and (max-width: 767px) {
//CSS
}
/*
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/
@media (min-width: 320px) and (max-width: 480px) {
//CSS
}
\ No newline at end of file
......@@ -217,9 +217,11 @@ export class MainComponent implements OnInit {
const element = collections[key];
const mark = marks[key];
(element as any).style.fontSize=maping[curZoom]+"px";
if(mark){
(mark as any).style.fontSize=maping[curZoom]+"px";
}
}
}
});
this.setBound();
......@@ -373,8 +375,12 @@ export class MainComponent implements OnInit {
this.wheelEvent.target=document.getElementById("baidu-map");
setTimeout(() => {
if(!this.m.isIE()){
(window as any).xiaolinMouseWheel(this.wheelEvent);
(window as any).xiaolinMouseWheel(this.wheelEvent);
}else{
this.map.centerAndZoom(view.center,view.zoom);
}
}, 500);
obj.hadZoom=true;
......
......@@ -293,4 +293,16 @@ clearMapLocal(){
return curveCoordinates;
}
isIE() {
const match = navigator.userAgent.search(/(?:Edge|MSIE|Trident\/.*; rv:)/);
let isIE = false;
if (match !== -1) {
isIE = true;
}
return isIE;
}
}
......@@ -5,8 +5,8 @@
</h1>
<div class="main">
<div>
<button (click)="back()">返回</button>
<div class="left">
<button class="ie-fix-button" (click)="back()">返回</button>
<nz-tree [nzShowIcon]="true" [nzTreeTemplate]="nzTreeTemplate" [nzData]="nodes" nzAsyncData
(nzClick)="addVCR($event)" (nzExpandChange)="nzEvent($event)">
......
......@@ -31,6 +31,7 @@
#playWnd{
width:1000px;
height: 500px;
// border:1px solid red;
}
button{
......@@ -49,3 +50,17 @@ button{
border: 2px solid #f3f42678;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
// body{
// background:red;
// }
.left{
float:left;
}
.right{
margin-left:18%;
}
}
\ No newline at end of file
......@@ -40,7 +40,7 @@ export class VideoComponent implements OnInit {
console.log(event);
// load child async
if (event.eventName === 'expand') {
const node = event.node;
var node = event.node;
var request = null;
switch (node.level) {
case 0://项目
......@@ -57,19 +57,28 @@ export class VideoComponent implements OnInit {
break;
}
if (node && node.getChildren().length === 0 && node.isExpanded) {
console.log('in node')
this.http.get( this.d.basePath+ request+node.key).subscribe(res=>{
console.log('in node2')
if(node.level==2){
(res as any).data.forEach((element,index) => {
this.preview2(element.cameraIndexCode,index+1)
});
// (res as any).data.forEach((element,index) => {
// this.preview2(element.cameraIndexCode,index+1)
console.log('in node4')
// });
console.log(res)
for(var i=0;i<(res as any).data.length;i++){
console.log('in node5')
this.preview2((res as any).data[i].cameraIndexCode,i+1);
}
// concat(...previews);
//of('test').pipe(...concatMaps);
}
node.addChildren((res as any).data.map((d,index)=>({title:d.name || d.cameraName,key:d.id ||d.cameraIndexCode,index:index,isLeaf:node.level==2 })));
//node.addChildren((res as any).data.map((d,index)=>({title:d.name || d.cameraName,key:d.id ||d.cameraIndexCode,index:index,isLeaf:node.level==2 })));
node.addChildren((res as any).data.map(function(d,index){
//alert(d.id ||d.cameraIndexCode);
return {title:d.name || d.cameraName,key:d.id ||d.cameraIndexCode,index:index,isLeaf:node.level==2 }
}))
});
}
// if (node && node.getChildren().length === 0 && node.isExpanded) {
......@@ -80,6 +89,9 @@ export class VideoComponent implements OnInit {
}
}
addVCR($event:Required<NzFormatEmitEvent>){
if($event.node.level<2){
$event.node.setExpanded(true);
}
this.preview2($event.node.key,0);
}
loadNode(): Promise<NzTreeNodeOptions[]> {
......
_jsload2 && _jsload2('opmb', 'var jh=t,kh=s; D.We(function(a){function b(){f&&(f=t,g=s,i||a.dispatchEvent(m))}function c(c){f=p;m=ma(new Q("ontouch"),c);g=new R(c.changedTouches[0].clientX,c.changedTouches[0].clientY);var i=e("onclickex",c);setTimeout(function(){b();a.dispatchEvent(i)},a.U.sV);jh||a.dispatchEvent(e("onclick",c))}function e(b,c){for(var e=new Q(b),f=c.target,g=s,i=s;f&&f!==a.Ya;){if(f.ea){var k=z.lang.Mc(f.ea);k instanceof ib&&"canvas"!==f.nodeName.toLowerCase()&&(g=k);k instanceof tc&&(i=k)}f=f.offsetParent}for(var f=c.changedTouches[0].pageX, k=c.changedTouches[0].pageY,m=a.Ya;m&&m!=document.body;)f-=m.offsetLeft,k-=m.offsetTop,m=m.offsetParent;e.offsetX=f;e.offsetY=k;e.pixel=e.mb=new R(e.offsetX,e.offsetY);e.point=e.point=a.Ib(e.mb);e.overlay=e.sb=g;e.infoWindow=i;return e}a.U.sV=500;var f=t,g,i=t,k=t,m;z.V(a.Ua(),"touchmove",function(b){a.U.Wb&&b.preventDefault()});z.V(a.platform,"touchstart",function(b){jh=t;kh=setTimeout(function(){jh=p;a.dispatchEvent(ma(e("onlongpress",b),b))},1E3);a.U.Wb&&oa(b);k=t;a.dispatchEvent(ma(e("ontouchstart", b),b));a.U.Wb&&Db(b)});z.V(a.platform,"touchmove",function(b){a.U.Wb&&oa(b);k=p;a.dispatchEvent(ma(e("ontouchmove",b),b))});z.V(a.platform,"touchend",function(m){clearTimeout(kh);a.U.Wb&&Db(m);k||(f?(i=p,jh||a.dispatchEvent(e("onclick",m)),20>Fb(g,new R(m.changedTouches[0].clientX,m.changedTouches[0].clientY))?(a.dispatchEvent(e("ondblclick",m)),a.dispatchEvent(ma(new Q("ondbltouch"),m))):a.dispatchEvent(ma(e("ontouchend",m),m)),b(),i=t):c(m));a.dispatchEvent(ma(e("ontouchend",m),m))});z.V(a.platform, "gesturestart",function(b){b.preventDefault();a.dispatchEvent(ma(new Q("ongesturestart"),b))});z.V(a.platform,"gesturechange",function(b){b.preventDefault();a.dispatchEvent(ma(new Q("ongesturechange"),b))});z.V(a.platform,"gestureend",function(b){b.preventDefault();a.dispatchEvent(ma(new Q("ongestureend"),b))})}); D.We(function(a){function b(a){a&&(E.WebkitTransform="");m=k=0;n=1;o[0].x=o[0].y=o[1].x=o[1].y=0;A=t}function c(){if(z.platform.jj)if(/Nexus/.test(navigator.userAgent))a.U.Wb&&(E.left=a.offsetX+k+"px",E.top=a.offsetY+m+"px");else{if(a.U.Wb&&(E.left=a.offsetX+k*n+"px",E.top=a.offsetY+m*n+"px"),1!=n)E.WebkitTransform=a.U.Yr?"scale("+n+") ":""}else E.WebkitTransform=(a.U.Wb?"translate("+k*n+"px, "+m*n+"px) ":"")+(a.U.Yr?"scale("+n+") ":"")}function e(){var b=0,c=0;lh&&(c=b=0);E.WebkitTransformOrigin= a.U.Wb?(o[0].x+o[1].x)/2-a.offsetX-b+"px "+((o[0].y+o[1].y)/2-a.offsetY-c)+"px":Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px"}function f(b,c){var e=new Q(b),f=g(c.changedTouches[0].pageX,c.changedTouches[0].pageY);e.offsetX=f.x;e.offsetY=f.y;e.mb=new R(e.offsetX,e.offsetY);e.point=a.Ib(e.mb);return e}function g(b,c){for(var e=a.Ya;e&&e!=document.body;)b-=e.offsetLeft,c-=e.offsetTop,e=e.offsetParent;return new R(b,c)}function i(a){for(var b=[],c,e=0,f=a.touches.length;e<f;e++)c=a.touches[e], b.push({x:c.pageX,y:c.pageY});return b}var k=0,m=0,n=1,o=[{x:0,y:0},{x:0,y:0}],q=0,v=0,w=t,y=t,A=t,B=s,C,F,E=a.platform.style;a.addEventListener("touchstart",function(b){if(!(b.sb instanceof V)){C=i(b);var c=b.targetTouches.length;q+=c;2<q&&(q=2);var e=a.$;2==c&&(e.jH=p);e.qb&&e.qb.stop();1==q?(this.$.pT=k,this.$.qT=m,b=g(b.targetTouches[0].pageX,b.targetTouches[0].pageY),o[0].x=b.x,o[0].y=b.y):2==q&&(b=g(b.touches[c-1].pageX,b.touches[c-1].pageY),o[1].x=b.x,o[1].y=b.y)}});a.addEventListener("touchmove", function(b){if(4<=z.mB&&2<=b.changedTouches.length){F=i(b);var E=2==C.length&&2==F.length?Fb(F[0],F[1])/Fb(C[0],C[1]):1;0<Math.abs(1-E)&&(n=E,y=p,clearTimeout(kh),e())}if(y&&!(2>b.changedTouches.length)){for(E=b.target;E&&E!=a.Ya;)E.Tw&&z.lang.Mc(E.Tw),E=E.offsetParent;for(var E=[],L=0;2>L;L++){for(var M=b.changedTouches[L].pageX,T=b.changedTouches[L].pageY,da=a.Ya;da&&da!=document.body;)M-=da.offsetLeft,T-=da.offsetTop,da=da.offsetParent;E[L]={x:M,y:T}}B=new R((E[0].x+E[1].x)/2,(E[0].y+E[1].y)/2)}E= b.targetTouches.length;M=g(b.touches[0].pageX,b.touches[0].pageY);1==q&&2!=v&&(k+=M.x-o[0].x,m+=M.y-o[0].y,o[0].x=M.x,o[0].y=M.y,c(),A=p);if(2==q){var T=o[0].x,da=o[0].y,ba=o[1].x,va=o[1].y;if(A){for(M=0;M<E;M++)L=g(b.touches[M].pageX,b.touches[M].pageY),Fb(L,new R(o[0].x,o[0].y))<Fb(L,new R(o[1].x,o[1].y))?(o[0].x=L.x,o[0].y=L.y):(o[1].x=L.x,o[1].y=L.y);k+=(o[0].x-T+o[1].x-ba)/2;m+=(o[0].y-da+o[1].y-va)/2;c()}else if(L=new R(o[0].x,o[0].y),1==E&&(30>Fb(L,M)?(o[0].x=M.x,o[0].y=M.y):(A=p,o[1].x=M.x, o[1].y=M.y)),2==E)T=g(b.touches[1].pageX,b.touches[1].pageY),30>Fb(M,T)?(o[0].x=T.x,o[0].y=T.y):(Fb(L,M)<Fb(L,T)?(o[0].x=M.x,o[0].y=M.y,o[1].x=T.x,o[1].y=T.y):(o[1].x=M.x,o[1].y=M.y,o[0].x=T.x,o[0].y=T.y),A=p)}if(1==q&&2==v){for(M=0;M<E;M++)L=g(b.touches[M].pageX,b.touches[M].pageY),Fb(L,new R(o[0].x,o[0].y))<Fb(L,new R(o[1].x,o[1].y))?(k+=L.x-o[0].x,m+=L.y-o[0].y,o[0].x=L.x,o[0].y=L.y):(k+=L.x-o[1].x,m+=L.y-o[1].y,o[1].x=L.x,o[1].y=L.y);c()}1==q&&this.U.Wb&&(E=this.$,E.Mj||(E.Mj=p,b=f("ondragstart", b),a.dispatchEvent(b),a.dispatchEvent(new Q("onmovestart")),E.$B=b.mb,E.aC=eb(),w=p),E.Ms=eb(),a.dispatchEvent(new Q("ondragging")))});a.addEventListener("touchend",function(c){e();v=q;this.$.jH?(q=c.targetTouches.length,delete this.$.jH):q--; -1==q&&(q=0);z.platform.jj&&(q=0);if(0==q){if(y){var g=0,i=a.ka();a.Bc=a.Va;this.U.Yr&&(g=Math.round(Math.log(n)/Math.log(2)),i=Math.max(Math.min(a.ka()+g,a.U.pc),a.U.gc));var A=a.va().dc(i),C=B;C||(C=new R((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2));var E;E=C;var F= a.fc,va=a.va().dc(a.Bc);E=new J(F.lng+va*(E.x-a.width/2),F.lat-va*(E.y-a.height/2));A=new J(E.lng+(a.width/2-C.x)*A,E.lat-(a.height/2-C.y)*A);A=S.cc(A);A=a.Rb(A);g=new R(A.x-k*n/Math.pow(2,g),A.y-m*n/Math.pow(2,g));A=a.U.Wb?a.Ib(g):a.Bb();if(g=a.$g())if(g=g.ja())g=a.Rb(g,a.Bc),a.Wj(a.width/2-g.x,a.height/2-g.y,a.Ib(g,a.Bc),p);a.Ed(A,i)}if(k!=this.$.pT||m!=this.$.qT)w&&!y&&(c=f("ondragend",c),mh(a,c,c.mb,{x:k,y:m}),w=t),y?b(p):b(t);y=a.$.Mj=t;v=0}});a.addEventListener("gesturechange",function(a){n= a.scale;y=p;clearTimeout(kh);e()})}); function mh(a,b,c,e){var f=a.platform.style;if(a.U.vw){var g=a.$,i=eb();if(140<i-g.Ms)setTimeout(function(){f.WebkitTransform=""},0),setTimeout(function(){a.Je(a.offsetX+e.x,a.offsetY+e.y)},0),window.setTimeout(function(){a.dispatchEvent(new Q("onmoveend"));g.Mj=t},0),window.setTimeout(function(){a.dispatchEvent(b)},0);else{var k=g.$B,m=[0<c.x-k.x?1:-1,0<c.y-k.y?1:-1],i=Fb(k,c)/((i-g.aC)/1E3)/2,n=i/1.6,o=0.5*n*i/1E3,q=Math.abs(k.x-c.x),v=0,w=0;0==Math.abs(k.y-c.y)?v=q:(c=Math.abs(k.x-c.x)/Math.abs(k.y- c.y),w=Math.round(Math.sqrt(o*o/(1+c*c))),v=Math.round(c*w));-1==m[0]&&(v=-v);-1==m[1]&&(w=-w);g.qb&&g.qb.stop();var y=i/1E3,A=a.offsetX,B=a.offsetY;g.qb=new ub({duration:n,Hc:25,$b:function(a){a=a*y/1.6;return y*a-0.8*a*a},za:function(b){b=b*3.2/(y*y);if(z.platform.jj){f.left=a.offsetX+e.x+Math.round(b*v)+"px";f.top=a.offsetY+e.y+Math.round(b*w)+"px"}else f.WebkitTransform="translate("+(e.x+Math.round(b*v))+"px ,"+(e.y+Math.round(b*w))+"px)"},finish:function(){g.qb=s;setTimeout(function(){f.WebkitTransform= ""},0);setTimeout(function(){a.Je(A+e.x+Math.round(v),B+e.y+Math.round(w))},0);setTimeout(function(){a.dispatchEvent(new Q("onmoveend"))},0);window.setTimeout(function(){a.dispatchEvent(b)},0)},Ws:function(b){g.qb=s;b=b*3.2/(y*y);setTimeout(function(){f.WebkitTransform=""},0);setTimeout(function(){a.Je(A+e.x+Math.round(b*v),B+e.y+Math.round(b*w))},0);setTimeout(function(){a.dispatchEvent(new Q("onmoveend"))},0)}})}}else window.setTimeout(function(){f.WebkitTransform=""},0),window.setTimeout(function(){a.Je(a.offsetX+ e.x,a.offsetY+e.y)},0),window.setTimeout(function(){a.dispatchEvent(new Q("onmoveend"))},0)}var lh=-1<navigator.userAgent.indexOf("iPhone OS 5_")?p:t; ');
_jsload2&&_jsload2('oppc',`
function $g(a, b) {
b || (b = document.createElement("canvas"));
b.getContext("2d").drawImage(a, 0, 0)
}
var ah = 256,
bh = 32;
function ch() {
this.P = s
}
var dh;
D.We(function(a) {
if (!a.U.Hs) {
var b = new ch;
Bb(a.Ya, b.za(a.U.yc));
b.P = a.Ya.lastChild;
a.$.d0 = b
}
});
ch.prototype.za = function(a) {
a = ['<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:' + a + '">'];
a.push('<div class="BMap_zoomer" style="top:0;left:0;"></div>');
a.push('<div class="BMap_zoomer" style="top:0;right:0;"></div>');
a.push('<div class="BMap_zoomer" style="bottom:0;left:0;"></div>');
a.push('<div class="BMap_zoomer" style="bottom:0;right:0;"></div>');
a.push("</div>");
return a.join("")
};
ch.prototype.action = function(a, b) {
if (!dh) {
var c = this.P;
if (c) {
var e = 4 / 3,
f = Math.ceil((b ? 60 : 120) / 2),
g = Math.max(15, f / e),
i = c.style;
i.width = 2 * f + "px";
i.height = 2 * g + "px";
i.visibility = "visible";
c = c.children;
b ? (c[0].style.backgroundPosition = "0 0", c[1].style.backgroundPosition = "-7px 0", c[2].style.backgroundPosition = "0 -7px", c[3].style.backgroundPosition = "-7px -7px") : (c[0].style.backgroundPosition = "-7px -7px", c[1].style.backgroundPosition = "0 -7px", c[2].style.backgroundPosition = "-7px 0", c[3].style.backgroundPosition = "0 0");
var c = s,
k = a.x - f,
m = a.y - g;
if (!isNaN(k) && !isNaN(m)) {
i.left = k + "px";
i.top = m + "px";
var n = Math.ceil((b ? 120 : 60) / 2),
o = Math.max(15, n / e),
n = n - f,
o = Math.ceil(o - g),
q = this.P.style;
dh && dh.end();
dh = new ub({
Hc: 20,
duration: 240,
$b: vb.hC,
oo: 100,
za: function(a) {
if (!(a < 0.1)) {
var b = Math.ceil(n * a),
a = Math.ceil(o * a);
q.width = (f + b) * 2 + "px";
q.height = (g + a) * 2 + "px";
q.left = k - b + "px";
q.top = m - a + "px"
}
},
finish: function() {
dh = t;
setTimeout(function() {
i.visibility = "hidden"
}, 300)
}
})
}
}
}
};
D.We(function(a) {
function b(wheelEvent) {
console.log(wheelEvent);
if (g.U.vo) {
var b = new Q("ondeepzoommousewheel");
c(wheelEvent, ma(b, wheelEvent));
k.U_.call(k, b);
Db(wheelEvent)
}
}
this.originB=b;
function c(a, b) {
var c = a.srcElement || a.target,
e = a.offsetX || a.layerX || 0,
f = a.offsetY || a.layerY || 0,
i = s,
k = s;
1 !== c.nodeType && (c = c.parentNode);
for (; c && c !== g.Ya;) {
c.ea && (z.lang.Mc(c.ea) instanceof ib && (i = z.lang.Mc(c.ea)), z.lang.Mc(c.ea) instanceof tc && (k = z.lang.Mc(c.ea)));
if (!(0 === c.clientWidth && 0 === c.clientHeight && c.offsetParent && "TD" === c.offsetParent.nodeName) && "http://www.w3.org/2000/svg" !== c.namespaceURI) e += c.offsetLeft || 0, f += c.offsetTop || 0;
else if ("http://www.w3.org/2000/svg" === c.namespaceURI && D.Ep) {
var A = D.Ep.hs(g).bf;
if (-1 < navigator.userAgent.indexOf("Opera") && "svg" !== c.tagName) {
if (c = z.lang.Mc(c.ea)) c = c.te(), e += g.Rb(c.Se()).x, f += g.Rb(c.Lf()).y;
break
}
if (39 <= z.ga.Qe || 51 <= z.ga.Zv) e = a.layerX || 0, f = a.layerY || 0;
if (A && !(window.ActiveXObject || "ActiveXObject" in window)) e += parseFloat(A.style.left) + g.offsetX, f += parseFloat(A.style.top) + g.offsetY;
if (A && ((window.ActiveXObject || "ActiveXObject" in window) && "svg" === c.nodeName.toLowerCase()) && !c.ea) e += parseFloat(A.style.left) + g.offsetX, f += parseFloat(A.style.top) + g.offsetY;
if ((9 <= z.ga.ma || -1 < navigator.userAgent.toLowerCase().indexOf("trident")) && "svg" !== c.nodeName.toLowerCase()) {
e += g.offsetX;
f += g.offsetY;
break
}
if (!z.ga.ma) break
}
c = c.offsetParent
}
if ((65 <= z.ga.Zv || 60 <= z.ga.Qe) && "ondeepzoommousewheel" === b.type) {
e = a.clientX + window.scrollX;
f = a.clientY + window.scrollY;
for (c = g.Ua(); c;) e -= c.offsetLeft, f -= c.offsetTop, c = c.offsetParent
}
b.offsetX = e;
b.offsetY = f;
b.pixel = b.mb = new R(e, f);
b.point = b.point = g.Ib(b.mb);
b.overlay = b.sb = i;
b.domEvent = a;
b.Cb = k;
return b
}
function e(a) {
var b = g.$,
e = !b.qx && !b.sx;
if (b.Kx) clearTimeout(b.Kx), b.Kx = s, e && (g.dispatchEvent(c(a, ma(new Q("onrightclick"), a))), g.Wa |= ah, g.dispatchEvent(c(a, ma(new Q("onrightdblclick"), a))), g.Wa ^= ah);
else {
e && g.dispatchEvent(c(a, ma(new Q("onrightclick"), a)));
var f = c(a, ma(new Q("onrightclickex"), a));
b.Kx = setTimeout(function() {
b.Kx = s;
e && g.dispatchEvent(f)
}, g.U.zB)
}
}
function f(a) {
if (g.U.vo) {
var b = g.$;
b.qb && (b.qb.stop(), b.qb = s, setTimeout(function() {
g.dispatchEvent(new Q("onmoveend"))
}, 1));
g.Wa |= bh;
a = window.event || a;
g.Bc = g.Va;
b = new Q("onmousewheel");
b.xp = 0 <= a.wheelDelta || 0 > a.detail;
var e = new Date;
b.xp === p && g.Va === g.va().Xh() || b.xp === t && g.Va === g.va().aj() || 220 > e - i ? g.Wa ^= bh : (i = e, c(a, ma(b, a)), g.dispatchEvent(b), g.Wa ^= bh, a.returnValue = t);
Db(a)
}
}
var g = a;
g.YX = a.Nd();
a.Ya.a4 = ea(t);
z.V(g.platform, "mousemove", function(a) {
0 === g.Wa && g.dispatchEvent(c(a, ma(new Q("onmousemove"), a)))
});
z.V(g.platform, "mousedown", function(a) {
if (g.U.pC) {
a = window.event || a;
z.ga.ma || Db(a);
var b = g.$;
b.Ic = p;
var e = a.srcElement || a.target;
b.qb && (b.qb.stop(), b.qb = s, g.dispatchEvent(new Q("onmoveend")));
b.Jt = a.clientX || a.pageX || 0;
for (b.Kt = a.clientY || a.pageY || 0; e && e !== g.Ya;) {
if (z.R.ws(e, "BMap_Marker")) {
b.Ic = t;
var f = z.lang.Mc(e.ea);
if (f instanceof V && f.K.cf === p || f.K.Wb === p) return
}
e = e.parentNode
}
z.ga.ma && g.xe.setCapture && g.xe.setCapture();
g.dispatchEvent(c(a, ma(new Q("onmousedown"), a)));
g.U.Wb && (!(g.Wa & 8) && 2 !== a.button) && (b.Vo = b.Jt, b.sk = b.Kt, b.Ex = g.offsetX, b.o = g.offsetY, g.Wa |= 8, g.platform.style.cursor = 0 === g.$.re.length ? g.U.Gd : "pointer")
}
});
z.V(document, "mousemove", function(a) {
var a = window.event || a,
b = g.$,
e = a.clientX || a.pageX || 0,
f = a.clientY || a.pageY || 0;
if (b.Jt || b.Kt) b.qx = e - b.Jt, b.sx = f - b.Kt;
var i = eb(),
k = 40 < i - b.xL;
if (!(18 > i - b.Ms) && (k && (b.xL = i), b.Ms = i, g.Wa & 8 && g.U.Wb)) {
var y = g.platform.style;
y.cursor.replace(/"|\s/g, "") !== g.U.Gd && (y.cursor = g.U.Gd);
b.Mj || (g.dispatchEvent(c(a, ma(new Q("ondragstart"), a))), g.dispatchEvent(new Q("onmovestart")), b.$B = new R(e, f), b.aC = i);
0 === b.Vo && (0 === b.sk && g.$.z3) && (b.Vo = e, b.sk = f, b.Ex = g.offsetX, b.o = g.offsetY);
if (0 !== e - b.Vo || 0 !== f - b.sk) g.$.Mj = p, g.dispatchEvent(c(a, ma(new Q("ondragging"), a))), g.Je(b.Ex + e - b.Vo, b.o + f - b.sk, s, k)
}
});
z.V(document, "mouseup", function(a) {
z.ga.ma && g.xe.releaseCapture && g.xe.releaseCapture();
var b = g.$;
b.m4 && g.Y1(p);
var a = window.event || a,
e = a.clientX || a.pageX,
f = a.clientY || a.pageY;
if (g.Wa & 8 && g.U.Wb) {
g.Wa ^= 8;
g.platform.style.cursor = 0 === b.re.length ? g.U.yc : "pointer";
if (g.$.Mj) {
var i = c(a, ma(new Q("ondragend"), a));
g.dispatchEvent(i);
eh(g, new R(e, f))
}
b.Mj = t
}
b.Ic = t;
2 === a.button && (b.Jt = s, b.Kt = s, b.qx = 0, b.sx = 0);
g.dispatchEvent(c(a, ma(new Q("onmouseup"), a)))
});
4 <= z.ga.Qe ? (z.V(g.Ya, "mouseup", function(a) {
2 === a.button && e(a)
}), z.V(g.Ya, "contextmenu", function(a) {
oa(a)
})) : z.V(g.Ya, "contextmenu", function(a) {
e(a);
oa(a)
});
var i = new Date,
k;
a.U.TJ && (k = new fh(a), a.M1 = k);
if (z.ga.ma && 9 >= z.ga.ma || g.YX) k = s;
z.V(g.Ya, "mousewheel", k ? b : f);
window.xiaolinMouseWheel=b;
window.addEventListener && g.Ya.addEventListener("DOMMouseScroll", k ? b : f, t);
z.V(g.platform, "click", function(a) {
var b = new Q("onclick"),
e = new Q("onclickex"),
f = g.$;
c(a, ma(b, a));
c(a, ma(e, a));
if (!g.Wa) {
var i = !f.qx && !f.sx;
i && g.dispatchEvent(b);
if (!f.Ci) f.Ci = setTimeout(function() {
f.Ci = s;
i && g.dispatchEvent(e)
}, g.U.zB)
}
f.Jt = s;
f.Kt = s;
f.qx = 0;
f.sx = 0
});
z.V(g.platform, "dblclick", function(a) {
if (!g.Wa) {
g.Wa = g.Wa | ah;
z.ga.ma && g.dispatchEvent(c(a, ma(new Q("onclick"), a)));
var b = g.$;
if (b.Ci) {
clearTimeout(b.Ci);
b.Ci = s
}
g.dispatchEvent(c(a, ma(new Q("ondblclick"), a)));
g.Wa = g.Wa ^ ah
}
});
z.V(document, "mousedown", function(b) {
var b = window.event || b,
b = b.srcElement || b.target,
c = g.$;
c.rB = c.rB ? z.R.contains(a.Ya, b) : z.R.contains(a.platform, b)
})
});
function eh(a, b) {
if (a.U.vw) {
var c = a.$,
e = eb();
if (100 < e - c.Ms) a.dispatchEvent(new Q("onmoveend")), c.Mj = t;
else {
var f = c.$B,
g = [0 < b.x - f.x ? 1 : -1, 0 < b.y - f.y ? 1 : -1],
e = Fb(f, b) / ((e - c.aC) / 1E3) / 2,
i = e / 1.8,
k = 0.4 * i * e / 1E3,
m = Math.abs(f.x - b.x),
n = 0,
o = 0;
0 === Math.abs(f.y - b.y) ? n = m : (f = Math.abs(f.x - b.x) / Math.abs(f.y - b.y), o = Math.round(Math.sqrt(k * k / (1 + f * f))), n = Math.round(f * o)); - 1 === g[0] && (n = -n); - 1 === g[1] && (o = -o);
c.qb && (c.qb.stop(), c.qb = s, a.dispatchEvent(new Q("onmoveend")));
var q = e / 1E3,
v = a.offsetX,
w = a.offsetY,
y = t;
c.qb = new ub({
duration: i,
Hc: 30,
$b: function(a) {
a = a * q / 1.8;
return q * a - 0.9 * a * a
},
za: function(b) {
b = b * 3.6 / (q * q);
y = !y;
a.Je(v + Math.round(b * n), w + Math.round(b * o), s, y)
},
finish: function() {
c.qb = s;
a.Je(v + Math.round(n), w + Math.round(o));
a.dispatchEvent(new Q("onmoveend"))
},
Ws: function(b) {
c.qb = s;
b = b * 3.6 / (q * q);
a.Je(v + Math.round(b * n), w + Math.round(b * o));
setTimeout(function() {
a.dispatchEvent(new Q("onmoveend"))
}, 1)
}
})
}
} else a.dispatchEvent(new Q("onmoveend"))
}
function fh(a) {
this.map = a;
this.oh = a.oh;
this.JU = gh();
this.Od = 0;
this.dE = 1;
this.cE = this.Vg = s;
this.SD = 1;
this.TD = -1;
this.xD = t;
this.pc = 19;
this.gc = 3;
this.AL = 0;
this.uk = "";
this.Cs = t;
this.LD = this.zL = 0;
this.aJ()
}
var hh = fh.prototype;
hh.aJ = function() {
var a = this,
b = a.map;
a.pc = b.U.pc || 19;
a.gc = b.U.gc || 3;
b.addEventListener("onmaptypechange", function() {
a.pc = b.U.pc || 19;
a.gc = b.U.gc || 3
})
};
hh.U_ = function(a) {
var b = this,
c = b.map,
e = c.$;
b.pc = c.U.pc || 19;
b.gc = c.U.gc || 3;
e.qb && (e.qb.stop(), e.qb = s, c.dispatchEvent(new Q("onmoveend")));
var f = Math.floor(a.domEvent.timeStamp),
g = f - this.AL,
i = 0 <= a.domEvent.wheelDelta,
e = Math.abs(a.domEvent.wheelDelta),
k = Math.abs(a.domEvent.deltaY);
100 < g && (this.Cs = t, this.uk = ih(e, k, a.N1), this.Od = 0, this.DM = s);
"padScroll" === this.uk && (0 === k && 0 === g && this.Cs === t) && (this.Cs = p);
if (0 !== g) {
this.AL = f;
if ("padScroll" === this.uk && 40 > g) {
b.Od = i ? b.Od + 0.13 : b.Od - 0.16;
var f = a.domEvent.wheelDelta - this.zL,
g = f - this.LD,
m = this.LD;
this.LD = f;
this.zL = a.domEvent.wheelDelta;
this.yL = i;
if ("boolean" === typeof this.yL && i !== this.yL || "padScroll" === this.uk && 3 === e && !isNaN(g) && 50 < Math.abs(f - m)) b.Lk && (b.Lk.stop(), b.Lk = s);
else if (0 !== this.DM)
if (0 > f && 0 < m || 0 < f && 0 > m) 5 > k && (this.Cs = t);
else return
}
this.DM = this.Od;
e = a.domEvent.wheelDelta / 120 || -a.domEvent.detail / 3;
0 === e && z.ga.Qe && (e = -a.domEvent.deltaY);
if (0 !== e && (e = Math.ceil(Math.abs(e)) * (0 <= e ? 1 : -1), "padPinch" === this.uk && (e = a.domEvent.deltaY), k = 0 < e ? 1 : -1, c = c.ka(), 0 > k && (b.SD = -1), 0 < k && (b.TD = 1), f = b.gc, !(c >= b.pc && 0 < k && 1 === b.SD || c <= f && 0 > k && -1 === b.TD))) {
"mouseWheel" !== this.uk && (e *= 0.6);
b.Od += e;
"mouseWheel" === this.uk && (b.Od = b.CL(b.Od));
var n = new R(a.mb.x, a.mb.y);
if ("mouseWheel" !== this.uk) {
if (!b.Lk && !b.Ik && !(0 === b.Od || b.Cs === p)) b.Ik = setTimeout(function() {
var a = Math.abs(b.Od),
a = Math.round(a);
b.Od = i ? a : -a;
b.Od = b.CL(b.Od);
b.Od !== 0 && b.fO(n, b.Od);
b.Ik = s
}, 30)
} else b.Lk && (b.Lk.stop(), b.Lk = s), b.Ik && clearTimeout(b.Ik), b.Ik = setTimeout(function() {
b.fO(n, b.Od);
b.Ik = s
}, 25)
}
}
};
hh.CL = function(a) {
var b = this.gc,
c = this.pc,
e = this.map.ka(),
a = Math.min(Math.max(a, -3), 3);
e + a > c ? a = c - e : e + a < b && (a = b - e);
return a
};
hh.fO = function(a, b) {
console.log(this.map);
var c = new P(0, 0),
e = this,
f = e.map,
g = e.oh,
i = Math.pow(2, b),
k = e.dE,
m, n = f.width,
o = f.height,
q = (a.x - n / 2) / n,
v = (a.y - o / 2) / o,
w = g.hc ,
y = g.Hg,
A = w.style,
B = y.style,
C, F, E = e.JU;
e.xD || (e.xD = p, f.dispatchEvent(new Q("onzoomstart")));
f.Oc && z.R.aa(f.Oc);
g.ml.style.visibility = "hidden";
g.hg && (g.hg.style.visibility = "hidden");
g.An.style.visibility = "hidden";
if (!e.Vg) {
A[E] || (A[E] = "translate3d(0,0,0)");
var G = e.cE;
G && (G.parentNode && G.parentNode.removeChild(G), e.cE = s);
e.cE = e.Vg = w.cloneNode(p);
(e.se || !f.U.Xi) && f.platform.insertBefore(e.Vg, f.platform.firstChild)
}
g.Hg.style.visibility = "hidden";
if (!e.se && f.U.Xi) {
if (w = e.CM) w.parentNode && w.parentNode.removeChild(w), e.CM = s;
e.se = y.cloneNode(p);
w = e.se.firstChild;
for (G = 0; G < w.childElementCount; G++) $g(y.firstChild.children[G], w.children[G]);
$g(y.lastElementChild, e.se.lastElementChild);
e.se.style.visibility = "";
e.CM = e.se;
f.platform.insertBefore(e.se, f.platform.firstChild)
}
A.visibility = "hidden";
B.visibility = "hidden";
var N = e.Vg.style;
f.U.aM === t && (N.display = "none");
if (f.U.Xi) var L = e.se.children[0].style,
M = e.se.children[1].style;
console.log('test')
e.Lk = new ub({
Hc: 60,
duration: f.U.to ? 900 : 1,
$b: vb.Vr,
za: function(a) {
if (b > 0) {
m = k + a * (i - k);
C = -n * (m - 1) * q - c.width * a;
F = -o * (m - 1) * v - c.height * a
} else {
m = k - a * (k - i);
C = n * (1 - m) * q;
F = o * (1 - m) * v
}
N[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")";
if (f.U.Xi) {
L[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")";
M[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")"
}
e.dE = m
},
finish: function() {
var c = f.ka(),
c = Math.round(c + b);
f.Bc = f.Va;
f.Va = c;
var c = g.uz(a),
i = f.va().dc(f.ka());
f.fc = new J(c.lng + (f.width / 2 - a.x) * i, c.lat - (f.height / 2 - a.y) * i);
f.pe = f.Pc.eh(f.fc, f.Vb);
A.visibility = "";
B.visibility = "";
g.Rf();
f.Oc && (z.ga.ma && z.ga.ma < 8 || document.compatMode === "BackCompat" ? z.R.show(f.Oc) : setTimeout(function() {
z.R.show(f.Oc)
}, 100));
g.ml.style.visibility = "";
g.An.style.visibility = "";
g.Hg.style.visibility = "";
f.dispatchEvent(new Q("onzoomend"));
e.Od = 0;
e.dE = 1;
setTimeout(function() {
e.NM()
}, 100);
e.NM();
e.Lk = s;
e.SD = 1;
e.TD = -1;
e.xD = t
}
})
};
hh.NM = function() {
this.Vg && (Sc(this.Vg), this.Vg.parentNode && (this.Vg.parentNode.removeChild(this.Vg), this.Vg.innerHTML = "", this.Vg = s));
this.se && this.map.U.Xi && (Sc(this.se), this.se.parentNode && (this.se.parentNode.removeChild(this.se), this.se.innerHTML = "", this.se = s))
};
function gh() {
var a = "transform",
b = document.createElement("div"),
c = ["Webkit", "Moz", "O", "ms"],
e = c.length,
f = "",
b = b.style;
a in b && (f = a);
for (a = a.replace(/^[a-z]/, function(a) {
return a.toUpperCase()
}); e--;) {
var g = c[e] + a;
if (g in b) {
f = g;
break
}
}
return f
}
function ih(a, b, c) {
var e = "mouseWheel";
if (120 === a && 1 > b) e = "padPinch";
else if (!isNaN(a) && (10 > a || 120 !== a) && 0 === b % 1) e = "padScroll";
z.ga.Qe && 0 === c && (e = "padScroll");
z.ga.Mx && 12 === a && (e = "mouseWheel");
return e
};
D.We(function(a) {
z.V(document, "keydown", function(b) {
a.$.oi == p && (a.$.oi = t);
if (a.U.ww && a.$.rB) switch (b = window.event || b, b.keyCode || b.which) {
case 43:
case 189:
case 109:
a.$.Ic = p;
a.dispatchEvent(new Q("onminuspress"));
break;
case 43:
case 61:
case 187:
case 107:
a.$.Ic = p;
a.dispatchEvent(new Q("onpluspress"));
break;
case 33:
a.$.Ic = t;
a.$.oi = p;
a.tg(0, Math.round(0.8 * a.height));
oa(b);
break;
case 34:
a.$.Ic = t;
a.$.oi = p;
a.tg(0, -Math.round(0.8 * a.height));
oa(b);
break;
case 35:
a.$.Ic = t;
a.$.oi = p;
a.tg(-Math.round(0.8 * a.width), 0);
oa(b);
break;
case 36:
a.$.Ic = t;
a.$.oi = p;
a.tg(Math.round(0.8 * a.width), 0);
oa(b);
break;
case 37:
a.$.Ic = p;
a.$.mc |= 1;
a.hb();
oa(b);
break;
case 38:
a.$.Ic = p;
a.$.mc |= 2;
a.hb();
oa(b);
break;
case 39:
a.$.Ic = p;
a.$.mc |= 4;
a.hb();
oa(b);
break;
case 40:
a.$.Ic = p, a.$.mc |= 8, a.hb(), oa(b)
}
});
z.V(document, "keyup", function(b) {
if (a.U.ww) switch (b = window.event || b, b.keyCode || b.which) {
case 37:
a.$.mc &= -2;
0 != a.$.mc && a.hb();
break;
case 38:
a.$.mc &= -3;
0 != a.$.mc && a.hb();
break;
case 39:
a.$.mc &= -5;
0 != a.$.mc && a.hb();
break;
case 40:
a.$.mc &= -9, 0 != a.$.mc && a.hb()
}
a.$.Ic = t
});
Oa.prototype.hb = function() {
if (!this.hb.ux || !(this.hb.Wz == this.$.mc && this.$.oi == p)) {
var a = this,
c = a.$.mc;
a.hb.Wz = c;
a.hb.dx = 30;
a.hb.duration = 999;
a.hb.df = a.hb.ef = 0;
c & 1 && (a.hb.df = 1);
c & 2 && (a.hb.ef = 1);
c & 4 && (a.hb.df = -1);
c & 8 && (a.hb.ef = -1);
c & 1 && c & 4 && (a.hb.df = 0);
c & 2 && c & 8 && (a.hb.ef = 0);
if (!a.hb.ux) {
a.hb.ux = p;
a.hb.time = eb();
a.hb.cU = a.hb.time;
a.dispatchEvent(new Q("onmovestart"));
var e = new ub({
Hc: a.hb.dx,
duration: a.hb.duration,
$b: vb.FL,
za: function() {
var c = a.hb,
g = a.$.mc;
if (a.hb.Wz != g) {
a.hb.Wz = g;
if (g & 1) c.df = 1;
if (g & 2) c.ef = 1;
if (g & 4) c.df = -1;
if (g & 8) c.ef = -1;
if (g & 1 && g & 4) c.df = 0;
if (g & 2 && g & 8) c.ef = 0
}
if (a.$.oi == p) {
c.df = 0;
c.ef = 0
}
var g = eb(),
i = Math.pow((g - c.cU) / c.duration, 2);
if (!a.$.mc) {
c.ux = t;
e.NE = p;
a.hb.time = eb();
setTimeout(function() {
a.dispatchEvent(new Q("onmoveend"))
}, 40)
}
var k = g - c.time,
m = c.df * k * i >= 0 ? Math.ceil(c.df * k * i) : Math.floor(c.df * k * i),
i = c.ef * k * i >= 0 ? Math.ceil(c.ef * k * i) : Math.floor(c.ef * k * i);
if (m != 0 && i != 0) {
m = Math.round(m * 0.7);
i = Math.round(i * 0.7)
}
c.time = g;
a.Je(a.offsetX + m, a.offsetY + i)
},
finish: function() {
a.hb.time = eb();
setTimeout(function() {
a.ZF()
}, a.hb.dx)
}
})
}
}
};
Oa.prototype.ZF = function() {
var a = this,
c = a.hb;
a.$.oi && (c.df = 0, c.ef = 0);
if (a.$.mc) {
var e = eb(),
f = e - c.time,
g = Math.ceil(c.df * f),
f = Math.ceil(c.ef * f);
c.time = e;
a.Je(a.offsetX + g, a.offsetY + f);
setTimeout(function() {
a.ZF()
}, c.dx)
} else c.ux = t, a.dispatchEvent(new Q("onmoveend"))
}
});
`);
_jsload2&&_jsload2('oppc','function $g(e,t){(t=t||document.createElement("canvas")).getContext("2d").drawImage(e,0,0)}var dh,ah=256,bh=32;function ch(){this.P=s}function eh(i,e){if(i.U.vw){var a=i.$;if(100<(n=eb())-a.Ms)i.dispatchEvent(new Q("onmoveend")),a.Mj=t;else{var n,o=a.$B,h=[0<e.x-o.x?1:-1,0<e.y-o.y?1:-1],c=(n=Fb(o,e)/((n-a.aC)/1e3)/2)/1.8,r=.4*c*n/1e3,d=Math.abs(o.x-e.x),l=0,f=0;l=0===Math.abs(o.y-e.y)?d:(o=Math.abs(o.x-e.x)/Math.abs(o.y-e.y),f=Math.round(Math.sqrt(r*r/(1+o*o))),Math.round(o*f)),-1===h[0]&&(l=-l),-1===h[1]&&(f=-f),a.qb&&(a.qb.stop(),a.qb=s,i.dispatchEvent(new Q("onmoveend")));var p=n/1e3,u=i.offsetX,m=i.offsetY,v=t;a.qb=new ub({duration:c,Hc:30,$b:function(e){return p*(e=e*p/1.8)-.9*e*e},za:function(e){e=3.6*e/(p*p),v=!v,i.Je(u+Math.round(e*l),m+Math.round(e*f),s,v)},finish:function(){a.qb=s,i.Je(u+Math.round(l),m+Math.round(f)),i.dispatchEvent(new Q("onmoveend"))},Ws:function(e){a.qb=s,e=3.6*e/(p*p),i.Je(u+Math.round(e*l),m+Math.round(e*f)),setTimeout(function(){i.dispatchEvent(new Q("onmoveend"))},1)}})}}else i.dispatchEvent(new Q("onmoveend"))}function fh(e){this.map=e,this.oh=e.oh,this.JU=gh(),this.Od=0,this.dE=1,this.cE=this.Vg=s,this.SD=1,this.TD=-1,this.xD=t,this.pc=19,this.gc=3,this.AL=0,this.uk="",this.Cs=t,this.LD=this.zL=0,this.aJ()}D.We(function(e){if(!e.U.Hs){var t=new ch;Bb(e.Ya,t.za(e.U.yc)),t.P=e.Ya.lastChild,e.$.d0=t}}),ch.prototype.za=function(e){return(e=[\'<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:\'+e+\'">\']).push(\'<div class="BMap_zoomer" style="top:0;left:0;"></div>\'),e.push(\'<div class="BMap_zoomer" style="top:0;right:0;"></div>\'),e.push(\'<div class="BMap_zoomer" style="bottom:0;left:0;"></div>\'),e.push(\'<div class="BMap_zoomer" style="bottom:0;right:0;"></div>\'),e.push("</div>"),e.join("")},ch.prototype.action=function(e,i){if(!dh&&(h=this.P)){var a=Math.ceil((i?60:120)/2),n=Math.max(15,a/(4/3)),o=h.style;o.width=2*a+"px",o.height=2*n+"px",o.visibility="visible",h=h.children,i?(h[0].style.backgroundPosition="0 0",h[1].style.backgroundPosition="-7px 0",h[2].style.backgroundPosition="0 -7px",h[3].style.backgroundPosition="-7px -7px"):(h[0].style.backgroundPosition="-7px -7px",h[1].style.backgroundPosition="0 -7px",h[2].style.backgroundPosition="-7px 0",h[3].style.backgroundPosition="0 0");var h=s,c=e.x-a,r=e.y-n;if(!isNaN(c)&&!isNaN(r)){o.left=c+"px",o.top=r+"px";var d=Math.ceil((i?120:60)/2),l=Math.max(15,d/(4/3)),f=(d=d-a,l=Math.ceil(l-n),this.P.style);dh&&dh.end(),dh=new ub({Hc:20,duration:240,$b:vb.hC,oo:100,za:function(e){if(!(e<.1)){var t=Math.ceil(d*e);e=Math.ceil(l*e);f.width=2*(a+t)+"px",f.height=2*(n+e)+"px",f.left=c-t+"px",f.top=r-e+"px"}},finish:function(){dh=t,setTimeout(function(){o.visibility="hidden"},300)}})}}},D.We(function(i){function e(e){if(console.log(e),r.U.vo){var t=new Q("ondeepzoommousewheel");c(e,ma(t,e)),o.U_.call(o,t),Db(e)}}function c(e,t){var i=e.srcElement||e.target,a=e.offsetX||e.layerX||0,n=e.offsetY||e.layerY||0,o=s,h=s;for(1!==i.nodeType&&(i=i.parentNode);i&&i!==r.Ya;){if(i.ea&&(z.lang.Mc(i.ea)instanceof ib&&(o=z.lang.Mc(i.ea)),z.lang.Mc(i.ea)instanceof tc&&(h=z.lang.Mc(i.ea))),0===i.clientWidth&&0===i.clientHeight&&i.offsetParent&&"TD"===i.offsetParent.nodeName||"http://www.w3.org/2000/svg"===i.namespaceURI){if("http://www.w3.org/2000/svg"===i.namespaceURI&&D.Ep){var c=D.Ep.hs(r).bf;if(-1<navigator.userAgent.indexOf("Opera")&&"svg"!==i.tagName){(i=z.lang.Mc(i.ea))&&(i=i.te(),a+=r.Rb(i.Se()).x,n+=r.Rb(i.Lf()).y);break}if((39<=z.ga.Qe||51<=z.ga.Zv)&&(a=e.layerX||0,n=e.layerY||0),c&&!(window.ActiveXObject||"ActiveXObject"in window)&&(a+=parseFloat(c.style.left)+r.offsetX,n+=parseFloat(c.style.top)+r.offsetY),c&&(window.ActiveXObject||"ActiveXObject"in window)&&"svg"===i.nodeName.toLowerCase()&&!i.ea&&(a+=parseFloat(c.style.left)+r.offsetX,n+=parseFloat(c.style.top)+r.offsetY),(9<=z.ga.ma||-1<navigator.userAgent.toLowerCase().indexOf("trident"))&&"svg"!==i.nodeName.toLowerCase()){a+=r.offsetX,n+=r.offsetY;break}if(!z.ga.ma)break}}else a+=i.offsetLeft||0,n+=i.offsetTop||0;i=i.offsetParent}if((65<=z.ga.Zv||60<=z.ga.Qe)&&"ondeepzoommousewheel"===t.type)for(a=e.clientX+window.scrollX,n=e.clientY+window.scrollY,i=r.Ua();i;)a-=i.offsetLeft,n-=i.offsetTop,i=i.offsetParent;return t.offsetX=a,t.offsetY=n,t.pixel=t.mb=new R(a,n),t.point=t.point=r.Ib(t.mb),t.overlay=t.sb=o,t.domEvent=e,t.Cb=h,t}function a(e){var t=r.$,i=!t.qx&&!t.sx;if(t.Kx)clearTimeout(t.Kx),t.Kx=s,i&&(r.dispatchEvent(c(e,ma(new Q("onrightclick"),e))),r.Wa|=ah,r.dispatchEvent(c(e,ma(new Q("onrightdblclick"),e))),r.Wa^=ah);else{i&&r.dispatchEvent(c(e,ma(new Q("onrightclick"),e)));var a=c(e,ma(new Q("onrightclickex"),e));t.Kx=setTimeout(function(){t.Kx=s,i&&r.dispatchEvent(a)},r.U.zB)}}function n(e){if(r.U.vo){var i=r.$;i.qb&&(i.qb.stop(),i.qb=s,setTimeout(function(){r.dispatchEvent(new Q("onmoveend"))},1)),r.Wa|=bh,e=window.event||e,r.Bc=r.Va,(i=new Q("onmousewheel")).xp=0<=e.wheelDelta||e.detail<0;var a=new Date;i.xp===p&&r.Va===r.va().Xh()||i.xp===t&&r.Va===r.va().aj()||a-h<220?r.Wa^=bh:(h=a,c(e,ma(i,e)),r.dispatchEvent(i),r.Wa^=bh,e.returnValue=t),Db(e)}}this.originB=e;var r=i;r.YX=i.Nd(),i.Ya.a4=ea(t),z.V(r.platform,"mousemove",function(e){0===r.Wa&&r.dispatchEvent(c(e,ma(new Q("onmousemove"),e)))}),z.V(r.platform,"mousedown",function(e){if(r.U.pC){e=window.event||e,z.ga.ma||Db(e);var i=r.$;i.Ic=p;var a=e.srcElement||e.target;for(i.qb&&(i.qb.stop(),i.qb=s,r.dispatchEvent(new Q("onmoveend"))),i.Jt=e.clientX||e.pageX||0,i.Kt=e.clientY||e.pageY||0;a&&a!==r.Ya;){if(z.R.ws(a,"BMap_Marker")){i.Ic=t;var n=z.lang.Mc(a.ea);if(n instanceof V&&n.K.cf===p||n.K.Wb===p)return}a=a.parentNode}z.ga.ma&&r.xe.setCapture&&r.xe.setCapture(),r.dispatchEvent(c(e,ma(new Q("onmousedown"),e))),!r.U.Wb||8&r.Wa||2===e.button||(i.Vo=i.Jt,i.sk=i.Kt,i.Ex=r.offsetX,i.o=r.offsetY,r.Wa|=8,r.platform.style.cursor=0===r.$.re.length?r.U.Gd:"pointer")}}),z.V(document,"mousemove",function(e){e=window.event||e;var t=r.$,i=e.clientX||e.pageX||0,a=e.clientY||e.pageY||0;(t.Jt||t.Kt)&&(t.qx=i-t.Jt,t.sx=a-t.Kt);var n=eb(),o=40<n-t.xL;if(!(n-t.Ms<18)&&(o&&(t.xL=n),t.Ms=n,8&r.Wa&&r.U.Wb)){var h=r.platform.style;h.cursor.replace(/"|\s/g,"")!==r.U.Gd&&(h.cursor=r.U.Gd),t.Mj||(r.dispatchEvent(c(e,ma(new Q("ondragstart"),e))),r.dispatchEvent(new Q("onmovestart")),t.$B=new R(i,a),t.aC=n),0===t.Vo&&0===t.sk&&r.$.z3&&(t.Vo=i,t.sk=a,t.Ex=r.offsetX,t.o=r.offsetY),0==i-t.Vo&&0==a-t.sk||(r.$.Mj=p,r.dispatchEvent(c(e,ma(new Q("ondragging"),e))),r.Je(t.Ex+i-t.Vo,t.o+a-t.sk,s,o))}}),z.V(document,"mouseup",function(e){z.ga.ma&&r.xe.releaseCapture&&r.xe.releaseCapture();var i=r.$;i.m4&&r.Y1(p);var a=(e=window.event||e).clientX||e.pageX,n=e.clientY||e.pageY;if(8&r.Wa&&r.U.Wb){if(r.Wa^=8,r.platform.style.cursor=0===i.re.length?r.U.yc:"pointer",r.$.Mj){var o=c(e,ma(new Q("ondragend"),e));r.dispatchEvent(o),eh(r,new R(a,n))}i.Mj=t}i.Ic=t,2===e.button&&(i.Jt=s,i.Kt=s,i.qx=0,i.sx=0),r.dispatchEvent(c(e,ma(new Q("onmouseup"),e)))}),4<=z.ga.Qe?(z.V(r.Ya,"mouseup",function(e){2===e.button&&a(e)}),z.V(r.Ya,"contextmenu",function(e){oa(e)})):z.V(r.Ya,"contextmenu",function(e){a(e),oa(e)});var o,h=new Date;i.U.TJ&&(o=new fh(i),i.M1=o),(z.ga.ma&&z.ga.ma<=9||r.YX)&&(o=s),z.V(r.Ya,"mousewheel",o?e:n),window.xiaolinMouseWheel=e,window.addEventListener&&r.Ya.addEventListener("DOMMouseScroll",o?e:n,t),z.V(r.platform,"click",function(e){var t=new Q("onclick"),i=new Q("onclickex"),a=r.$;if(c(e,ma(t,e)),c(e,ma(i,e)),!r.Wa){var n=!a.qx&&!a.sx;n&&r.dispatchEvent(t),a.Ci||(a.Ci=setTimeout(function(){a.Ci=s,n&&r.dispatchEvent(i)},r.U.zB))}a.Jt=s,a.Kt=s,a.qx=0,a.sx=0}),z.V(r.platform,"dblclick",function(e){if(!r.Wa){r.Wa=r.Wa|ah,z.ga.ma&&r.dispatchEvent(c(e,ma(new Q("onclick"),e)));var t=r.$;t.Ci&&(clearTimeout(t.Ci),t.Ci=s),r.dispatchEvent(c(e,ma(new Q("ondblclick"),e))),r.Wa=r.Wa^ah}}),z.V(document,"mousedown",function(e){e=(e=window.event||e).srcElement||e.target;var t=r.$;t.rB=t.rB?z.R.contains(i.Ya,e):z.R.contains(i.platform,e)})});var hh=fh.prototype;function gh(){var e="transform",t=document.createElement("div"),i=["Webkit","Moz","O","ms"],a=i.length,n="";e in(t=t.style)&&(n=e);for(e=e.replace(/^[a-z]/,function(e){return e.toUpperCase()});a--;){var o=i[a]+e;if(o in t){n=o;break}}return n}function ih(e,t,i){var a="mouseWheel";return 120===e&&t<1?a="padPinch":!isNaN(e)&&(e<10||120!==e)&&0==t%1&&(a="padScroll"),z.ga.Qe&&0===i&&(a="padScroll"),z.ga.Mx&&12===e&&(a="mouseWheel"),a}hh.aJ=function(){var e=this,t=e.map;e.pc=t.U.pc||19,e.gc=t.U.gc||3,t.addEventListener("onmaptypechange",function(){e.pc=t.U.pc||19,e.gc=t.U.gc||3})},hh.U_=function(e){var i=this,a=i.map,n=a.$;i.pc=a.U.pc||19,i.gc=a.U.gc||3,n.qb&&(n.qb.stop(),n.qb=s,a.dispatchEvent(new Q("onmoveend")));var o=(r=Math.floor(e.domEvent.timeStamp))-this.AL,h=0<=e.domEvent.wheelDelta,c=(n=Math.abs(e.domEvent.wheelDelta),Math.abs(e.domEvent.deltaY));if(100<o&&(this.Cs=t,this.uk=ih(n,c,e.N1),this.Od=0,this.DM=s),"padScroll"===this.uk&&0===c&&0===o&&this.Cs===t&&(this.Cs=p),0!==o){if(this.AL=r,"padScroll"===this.uk&&o<40){i.Od=h?i.Od+.13:i.Od-.16;o=(r=e.domEvent.wheelDelta-this.zL)-this.LD;var r,d=this.LD;if(this.LD=r,this.zL=e.domEvent.wheelDelta,this.yL=h,"boolean"==typeof this.yL&&h!==this.yL||"padScroll"===this.uk&&3===n&&!isNaN(o)&&50<Math.abs(r-d))i.Lk&&(i.Lk.stop(),i.Lk=s);else if(0!==this.DM){if(!(r<0&&0<d||0<r&&d<0))return;c<5&&(this.Cs=t)}}if(this.DM=this.Od,0===(n=e.domEvent.wheelDelta/120||-e.domEvent.detail/3)&&z.ga.Qe&&(n=-e.domEvent.deltaY),0!==n&&(n=Math.ceil(Math.abs(n))*(0<=n?1:-1),"padPinch"===this.uk&&(n=e.domEvent.deltaY),c=0<n?1:-1,a=a.ka(),c<0&&(i.SD=-1),0<c&&(i.TD=1),r=i.gc,!(a>=i.pc&&0<c&&1===i.SD||a<=r&&c<0&&-1===i.TD))){"mouseWheel"!==this.uk&&(n*=.6),i.Od+=n,"mouseWheel"===this.uk&&(i.Od=i.CL(i.Od));var l=new R(e.mb.x,e.mb.y);"mouseWheel"!==this.uk?i.Lk||i.Ik||0===i.Od||i.Cs===p||(i.Ik=setTimeout(function(){var e=Math.abs(i.Od);e=Math.round(e);i.Od=h?e:-e,i.Od=i.CL(i.Od),0!==i.Od&&i.fO(l,i.Od),i.Ik=s},30)):(i.Lk&&(i.Lk.stop(),i.Lk=s),i.Ik&&clearTimeout(i.Ik),i.Ik=setTimeout(function(){i.fO(l,i.Od),i.Ik=s},25))}}},hh.CL=function(e){var t=this.gc,i=this.pc,a=this.map.ka();return i<a+(e=Math.min(Math.max(e,-3),3))?e=i-a:a+e<t&&(e=t-a),e},hh.fO=function(a,n){console.log(this.map);var i,o,h,c=new P(0,0),r=this,d=r.map,l=r.oh,f=Math.pow(2,n),u=r.dE,m=d.width,v=d.height,b=(a.x-m/2)/m,w=(a.y-v/2)/v,e=l.hc,g=l.Hg,x=e.style,y=g.style,M=r.JU;if(r.xD||(r.xD=p,d.dispatchEvent(new Q("onzoomstart"))),d.Oc&&z.R.aa(d.Oc),l.ml.style.visibility="hidden",l.hg&&(l.hg.style.visibility="hidden"),l.An.style.visibility="hidden",!r.Vg){x[M]||(x[M]="translate3d(0,0,0)");var k=r.cE;k&&(k.parentNode&&k.parentNode.removeChild(k),r.cE=s),r.cE=r.Vg=e.cloneNode(p),!r.se&&d.U.Xi||d.platform.insertBefore(r.Vg,d.platform.firstChild)}if(l.Hg.style.visibility="hidden",!r.se&&d.U.Xi){for((e=r.CM)&&(e.parentNode&&e.parentNode.removeChild(e),r.CM=s),r.se=g.cloneNode(p),e=r.se.firstChild,k=0;k<e.childElementCount;k++)$g(g.firstChild.children[k],e.children[k]);$g(g.lastElementChild,r.se.lastElementChild),r.se.style.visibility="",r.CM=r.se,d.platform.insertBefore(r.se,d.platform.firstChild)}x.visibility="hidden",y.visibility="hidden";var E=r.Vg.style;if(d.U.aM===t&&(E.display="none"),d.U.Xi)var $=r.se.children[0].style,C=r.se.children[1].style;console.log("test"),r.Lk=new ub({Hc:60,duration:d.U.to?900:1,$b:vb.Vr,za:function(e){h=0<n?(o=-m*((i=u+e*(f-u))-1)*b-c.width*e,-v*(i-1)*w-c.height*e):(o=m*(1-(i=u-e*(u-f)))*b,v*(1-i)*w),E[M]="translate3d("+o+"px, "+h+"px, 0) scale("+i+")",d.U.Xi&&($[M]="translate3d("+o+"px, "+h+"px, 0) scale("+i+")",C[M]="translate3d("+o+"px, "+h+"px, 0) scale("+i+")"),r.dE=i},finish:function(){var e=d.ka();e=Math.round(e+n);d.Bc=d.Va,d.Va=e;e=l.uz(a);var i=d.va().dc(d.ka());d.fc=new J(e.lng+(d.width/2-a.x)*i,e.lat-(d.height/2-a.y)*i),d.pe=d.Pc.eh(d.fc,d.Vb),x.visibility="",y.visibility="",l.Rf(),d.Oc&&(z.ga.ma&&z.ga.ma<8||"BackCompat"===document.compatMode?z.R.show(d.Oc):setTimeout(function(){z.R.show(d.Oc)},100)),l.ml.style.visibility="",l.An.style.visibility="",l.Hg.style.visibility="",d.dispatchEvent(new Q("onzoomend")),r.Od=0,r.dE=1,setTimeout(function(){r.NM()},100),r.NM(),r.Lk=s,r.SD=1,r.TD=-1,r.xD=t}})},hh.NM=function(){this.Vg&&(Sc(this.Vg),this.Vg.parentNode&&(this.Vg.parentNode.removeChild(this.Vg),this.Vg.innerHTML="",this.Vg=s)),this.se&&this.map.U.Xi&&(Sc(this.se),this.se.parentNode&&(this.se.parentNode.removeChild(this.se),this.se.innerHTML="",this.se=s))},D.We(function(i){z.V(document,"keydown",function(e){if(i.$.oi==p&&(i.$.oi=t),i.U.ww&&i.$.rB)switch(e=window.event||e,e.keyCode||e.which){case 43:case 189:case 109:i.$.Ic=p,i.dispatchEvent(new Q("onminuspress"));break;case 43:case 61:case 187:case 107:i.$.Ic=p,i.dispatchEvent(new Q("onpluspress"));break;case 33:i.$.Ic=t,i.$.oi=p,i.tg(0,Math.round(.8*i.height)),oa(e);break;case 34:i.$.Ic=t,i.$.oi=p,i.tg(0,-Math.round(.8*i.height)),oa(e);break;case 35:i.$.Ic=t,i.$.oi=p,i.tg(-Math.round(.8*i.width),0),oa(e);break;case 36:i.$.Ic=t,i.$.oi=p,i.tg(Math.round(.8*i.width),0),oa(e);break;case 37:i.$.Ic=p,i.$.mc|=1,i.hb(),oa(e);break;case 38:i.$.Ic=p,i.$.mc|=2,i.hb(),oa(e);break;case 39:i.$.Ic=p,i.$.mc|=4,i.hb(),oa(e);break;case 40:i.$.Ic=p,i.$.mc|=8,i.hb(),oa(e)}}),z.V(document,"keyup",function(e){if(i.U.ww)switch(e=window.event||e,e.keyCode||e.which){case 37:i.$.mc&=-2,0!=i.$.mc&&i.hb();break;case 38:i.$.mc&=-3,0!=i.$.mc&&i.hb();break;case 39:i.$.mc&=-5,0!=i.$.mc&&i.hb();break;case 40:i.$.mc&=-9,0!=i.$.mc&&i.hb()}i.$.Ic=t}),Oa.prototype.hb=function(){if(!this.hb.ux||this.hb.Wz!=this.$.mc||this.$.oi!=p){var s=this,e=s.$.mc;if(s.hb.Wz=e,s.hb.dx=30,s.hb.duration=999,s.hb.df=s.hb.ef=0,1&e&&(s.hb.df=1),2&e&&(s.hb.ef=1),4&e&&(s.hb.df=-1),8&e&&(s.hb.ef=-1),1&e&&4&e&&(s.hb.df=0),2&e&&8&e&&(s.hb.ef=0),!s.hb.ux){s.hb.ux=p,s.hb.time=eb(),s.hb.cU=s.hb.time,s.dispatchEvent(new Q("onmovestart"));var h=new ub({Hc:s.hb.dx,duration:s.hb.duration,$b:vb.FL,za:function(){var e=s.hb,i=s.$.mc;s.hb.Wz!=i&&(1&(s.hb.Wz=i)&&(e.df=1),2&i&&(e.ef=1),4&i&&(e.df=-1),8&i&&(e.ef=-1),1&i&&4&i&&(e.df=0),2&i&&8&i&&(e.ef=0)),s.$.oi==p&&(e.df=0,e.ef=0);i=eb();var a=Math.pow((i-e.cU)/e.duration,2);s.$.mc||(e.ux=t,h.NE=p,s.hb.time=eb(),setTimeout(function(){s.dispatchEvent(new Q("onmoveend"))},40));var n=i-e.time,o=0<=e.df*n*a?Math.ceil(e.df*n*a):Math.floor(e.df*n*a);a=0<=e.ef*n*a?Math.ceil(e.ef*n*a):Math.floor(e.ef*n*a);0!=o&&0!=a&&(o=Math.round(.7*o),a=Math.round(.7*a)),e.time=i,s.Je(s.offsetX+o,s.offsetY+a)},finish:function(){s.hb.time=eb(),setTimeout(function(){s.ZF()},s.hb.dx)}})}}},Oa.prototype.ZF=function(){var e=this,i=e.hb;if(e.$.oi&&(i.df=0,i.ef=0),e.$.mc){var a=eb(),n=a-i.time,o=Math.ceil(i.df*n);n=Math.ceil(i.ef*n);i.time=a,e.Je(e.offsetX+o,e.offsetY+n),setTimeout(function(){e.ZF()},i.dx)}else i.ux=t,e.dispatchEvent(new Q("onmoveend"))}});');
......@@ -625,7 +625,9 @@
case 'LineString':
this.render(coordinates.map(c => ({ x: c[0], y: c[1],r:20 })),cordId, context);
this.render(coordinates.map(function(c){
return { x: c[0], y: c[1],r:20 }
} ),cordId, context);
// for (var j = 0; j < coordinates.length; j++) {
// var x = coordinates[j][0];
......
......@@ -4,31 +4,23 @@
<meta charset="utf-8">
<title>Map</title>
<base href="/">
<!-- pre-zone polyfills -->
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/web-animations-js/web-animations.min.js"></script>
<script>
/**
* you can configure some zone flags which can disable zone interception for some
* asynchronous activities to improve startup performance - use these options only
* if you know what you are doing as it could result in hard to trace down bugs..
*/
// __Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
// __Zone_disable_on_property = true; // disable patch onProperty such as onclick
// __zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
/*
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
* with the following flag, it will bypass `zone.js` patch for IE/Edge
*/
// __Zone_enable_cross_context_check = true;
</script>
<!-- zone.js required by Angular -->
<script src="node_modules/zone.js/dist/zone.js"></script>
<!-- application polyfills -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script>
Element.prototype.remove = function() {
this.parentElement.removeChild(this);
}
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
for(var i = this.length - 1; i >= 0; i--) {
if(this[i] && this[i].parentElement) {
this[i].parentElement.removeChild(this[i]);
}
}
}
</script>
<script src="assets/map_load.js"></script>
<link rel="stylesheet" href="assets/DrawingManager_min.css" />
<style>
......
......@@ -19,15 +19,15 @@
*/
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
//import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
//import 'web-animations-js'; // Run `npm install --save web-animations-js`.
//import './zone-flags.ts';
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
......@@ -51,13 +51,42 @@
* (window as any).__Zone_enable_cross_context_check = true;
*
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
import 'core-js/es7/object';
import 'core-js/es7/array';
/**
* If the application will be indexed by Google Search, the following is required.
* Googlebot uses a renderer based on Chrome 41.
* https://developers.google.com/search/docs/guides/rendering
**/
import 'core-js/es6/array';
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
import 'classlist.js'; // Run `npm install --save classlist.js`.
(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
(window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
(window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
(window as any).__Zone_enable_cross_context_check = true;
\ No newline at end of file
......@@ -308,3 +308,14 @@ ul{
max-height: 800px;
}
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
// body{
// background:red;
// }
.ie-fix-button{
background:#2d9ac2;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment