📄 avinclude.js
字号:
var $t3L=new Array();
var b=new VV96("undefined");
function VV96(id,op2P3,p9I,e53,B92_,bnI,Llg9,P30)
{
this.e53=e53;
this.B92_=B92_;
if(id!="undefined"&&op2P3!="undefined")
{
this.id=id;
this.bnI=bnI;
this.Llg9=Llg9;
this.P30=(P30=="1")?true:false;
this.I1$W=0;
this.lt74=16;
if(this.id!="undefined"&&bnI!="undefined")
{
ocn[this.id]=bnI;
$t3L[this.id]=(Llg9==null||Llg9=="undefined")?'详细信息':Llg9
}
if(op2P3!="undefined"&&op2P3!="")this.op2P3=op2P3;
if(p9I!="undefined"&&p9I!="")this.p9I=p9I;
this.t649s=new Image();
this.t649s.unselectable="on";
if(p9I!="undefined"&&p9I!="")this.t649s.L1AWp=p9I;
this.t649s.id=this.id;
this.t649s.I5b3P=true;
this.color="#FF0000";
if(op2P3!="undefined"&&op2P3!="")this.t649s.src=op2P3;
this.t649s.Qfr=op2P3;
this.t649s.onerror=function()
{
this.src=strImgsvrUrl+'images/marker.gif';
this.onerror=null
};
this.t649s.onload=function()
{
this.onerror=null;
this.onload=null
};
this.t649s.onmouseover=function()
{
if(maplet.F50==i9h0.B4w13)return;
if(this.L1AWp!="undefined"&&this.L1AWp!="")this.src=this.L1AWp;
this.style.cursor="hand";
this.style.zIndex=2;
if(this.I5b3P&&iToolTipStyle==0)
{
var x=parseInt(this.style.left)+parseInt(this.width)/2;
var y=parseInt(this.style.top)+parseInt(this.height)/2;
setToolTipMenu(x,y,ocn[this.id],$t3L[this.id])
}
};
this.t649s.onmouseout=function()
{
if(this.Qfr!="undefined"&&this.Qfr!="")this.src=this.Qfr;
this.style.zIndex=1
};
this.t649s.onclick=function()
{
if(this.I5b3P==false)return;
if(maplet.F50==i9h0.B4w13)return;
var x=parseInt(this.style.left)+parseInt(this.width)/2;
var y=parseInt(this.style.top)+parseInt(this.height)/2;
if(iToolTipStyle=="undefined"||iToolTipStyle==1)
{
if((x>AVB0.xoffset)&&(x<(maplet.width-AVB0.width))&&(y>AVB0.height))
{
maplet.A3Y7r=g27Pn(ocn[this.id],x,y,$t3L[this.id]);
this.parentNode.appendChild(maplet.A3Y7r)
}
else
{
maplet.A3Y7r=g27Pn(ocn[this.id],maplet.width/2+2,AVB0.height+10,$t3L[this.id]);
var $2H=maplet.width/2-x;
var etjrI=AVB0.height+10-y;
maplet.T$_v($2H,etjrI)
}
}
}
}
this.dI$59=function(g)
{
var width=(this.t649s!=null)?this.t649s.width:16;
var height=(this.t649s!=null)?this.t649s.height:16;
var left=maplet.B7l(this.B92_)-width/2;
var top=maplet.P58(this.e53)-height;
if(this.bnI&&this.P30)
{
g.setColor(this.color);
g.CCh6(this.bnI,maplet.B7l(this.B92_)+width/2,maplet.P58(this.e53)-12)
}
if(this.op2P3)
{
g.gAA2(this.op2P3,left,top,width,height)
}
};
this.paint=function(v4gN0)
{
var width=(this.t649s!=null)?this.t649s.width:16;
var height=(this.t649s!=null)?this.t649s.height:16;
var left=maplet.B7l(this.B92_)-width/2;
var top=maplet.P58(this.e53)-height;
if(left.toString()==Number.NaN.toString()||top.toString()==Number.NaN.toString())return;
if(this.op2P3)
{
this.t649s.style.position="absolute";
this.t649s.style.top=top;
this.t649s.style.left=left;
if(top>=0&&left>=0&&top<=maplet.height&&left<=maplet.width)
{
if(this.t649s.parentNode!=v4gN0)v4gN0.appendChild(this.t649s)
}
}
};
this._pS8=function(v4gN0)
{
var width=(this.t649s!=null)?this.t649s.width:16;
var height=(this.t649s!=null)?this.t649s.height:16;
var left=maplet.B7l(this.B92_)-width/2;
var top=maplet.P58(this.e53)-height;
if(left.toString()==Number.NaN.toString()||top.toString()==Number.NaN.toString())return;
if(this.bnI&&this.P30)
{
if(top>=0&&left>=0&&top<=maplet.height&&left<=maplet.width)
{
var n65D=Oc2(this.bnI,left+width,top,this.color);
v4gN0.innerHTML+=n65D;
n65D=null
}
}
};
this.label=function()
{
if(this.Llg9)
{
}
};
this.p=function(meT)
{
var W7pj=-1;
var I524S=0;
var qk_X='';
for(var i=0;i<meT.length;i++)
{
var j86T=parseInt(meT.charAt(i),36)-10;
if(j86T>=10)j86T=j86T-7;
qk_X+=(j86T).toString(36);
if(j86T>I524S)
{
W7pj=i;
I524S=j86T
}
}
var U8T=parseInt(qk_X.substring(0,W7pj),16);
var f9v8D=parseInt(qk_X.substring(W7pj+1),16);
var H1433=new Array();
H1433[0]=(U8T+f9v8D-parseInt(strLicenseKey))/2;
H1433[1]=(f9v8D-H1433[0])/100000.0;
H1433[0]/=100000.0;
return H1433
};
this.toLine=function()
{
var WVd94=parseInt(parseFloat(this.e53)*100000);
var j7_2=parseInt(parseFloat(this.B92_)*100000);
var rpB=(j7_2-WVd94+parseInt(strLicenseKey)).toString(16);
var ie9=(j7_2+WVd94).toString(16);
var H1433='';
for(var i=0;i<rpB.length;i++)
{
var k6A36=parseInt(rpB.charAt(i),16);
H1433+=(((k6A36>=10)?(k6A36+7):k6A36)+10).toString(36)
}
H1433+='z';
for(var i=0;i<ie9.length;i++)
{
var k6A36=parseInt(ie9.charAt(i),16);
H1433+=(((k6A36>=10)?(k6A36+7):k6A36)+10).toString(36)
}
return H1433.toUpperCase()
}
};
function KC96(Kh07,c_77n,O4i,v_b7,q1H8)
{
this.Kh07=(Kh07==null)?new Array():Kh07;
this.c_77n=(c_77n==null)?new Array():c_77n;
this.color=(O4i==null)?"#FF0000":O4i;
this.K904=(v_b7==0)?1:v_b7;
this.style=q1H8;
this.p=function(meT)
{
var $43=meT.split(',');
var Nh72=0;
for(var i=0;i<$43.length;i++)
{
if($43[i]!=null&&$43[i].length>0)
{
var w21Rp=b.p($43[i]);
this.c_77n[Nh72]=parseFloat(w21Rp[0]);
this.Kh07[Nh72]=parseFloat(w21Rp[1]);
Nh72++
}
}
};
this.toLine=function()
{
var meT=this.K904+","+this.style+","+this.color+":";
for(var i=0;i<this.Kh07.length;i++)
{
b.e53=parseFloat(this.Kh07[i]);
b.B92_=parseFloat(this.c_77n[i]);
meT+=b.toLine()+","
}
return meT
};
this.dI$59=function(g)
{
var i604=new Array();
var M88=new Array();
var H012=0;
for(var i=0;i<this.Kh07.length;i+=1)
{
if(this.Kh07[i].toString()!=Number.NaN.toString())M88[H012]=maplet.P58(this.Kh07[i]);
if(this.c_77n[i].toString()!=Number.NaN.toString())i604[H012]=maplet.B7l(this.c_77n[i]);
if(H012>0&&(Math.abs(i604[H012]-i604[H012-1])+Math.abs(M88[H012]-M88[H012-1]))>10)
{
H012++
}
if(H012==0)H012++
}
if(this.color)g.setColor(this.color);
if(this.K904)g.setStroke(this.K904);
g.drawPolyline(i604,M88,this.style);
g.paint()
};
this.paint=function(v4gN0)
{
this.tS2=document.createElement("div");
this.tS2.unselectable="on";
this.tS2.style.zIndex=10;
this.G19=document.createElement("v:polyline");
this.G19.unselectable="on";
this.G19.strokecolor=this.color;
this.G19.strokeweight=this.K904+'pt';
this.G19.fill=false;
this.G19.filled=false;
this.R27VP=document.createElement("v:stroke");
this.R27VP.opacity=(transparencyLevel/100);
this.R27VP.joinstyle="round";
this.R27VP.endcap="round";
this.R27VP.fill="false";
this.G19.appendChild(this.R27VP);
this.tS2.appendChild(this.G19);
this.S85();
this.tS2.style.visibility="visible";
if(v4gN0!=null)
{
v4gN0.appendChild(this.tS2)
}
};
this.S85=function()
{
var i604=new Array();
var M88=new Array();
var H012=0;
if(this.Kh07==null||this.Kh07.length<2)return;
for(var i=0;i<this.Kh07.length;i+=1)
{
if(this.Kh07[i].toString()!=Number.NaN.toString())M88[H012]=maplet.P58(this.Kh07[i]);
if(this.c_77n[i].toString()!=Number.NaN.toString())i604[H012]=maplet.B7l(this.c_77n[i]);
if(H012>0&&(Math.abs(i604[H012]-i604[H012-1])+Math.abs(M88[H012]-M88[H012-1]))>10)
{
H012++
}
if(H012==0)H012++
}
var uMD='';
for(var i=0;i<i604.length;i++)
{
if(i>0)uMD+=',';
uMD+=(parseInt(i604[i])+','+parseInt(M88[i]))
}
if(this.G19.points)
{
this.G19.points.value=uMD
}
else
{
this.G19.points=uMD
}
}
};
var H57JK=null;
var _P6=new Array();
function WCO37()
{
this.lXvG8=null;
this.Ht633=null;
this.WoG=function()
{
};
this.setOrigin=function(C1Vs,i3fj3)
{
this.lXvG8=new VV96("orig",strImgsvrUrl+'images/icon_orig.gif',strImgsvrUrl+'images/icon_orig.gif',C1Vs,i3fj3,'起点','');
this.WoG()
};
this.setDestination=function(C1Vs,i3fj3)
{
this.Ht633=new VV96("dest",strImgsvrUrl+'images/icon_dest.gif',strImgsvrUrl+'images/icon_dest.gif',C1Vs,i3fj3,'终点','');
this.WoG()
};
this.dI$59=function(g)
{
if(this.lXvG8)
{
this.lXvG8.dI$59(g)
}
if(this.Ht633)
{
this.Ht633.dI$59(g)
}
if(H57JK&&_P6.length>0)
{
var i604=new Array();
var M88=new Array();
var vXH3e=this.lXvG8.e53;
var oTO=this.lXvG8.B92_;
i604[0]=maplet.B7l(oTO);
M88[0]=maplet.P58(vXH3e);
var H012=1;
for(var i=0;i<_P6.length;i+=2)
{
vXH3e+=parseFloat(_P6[i])*0.01/250.0;
oTO+=parseFloat(_P6[i+1])*0.01/250.0;
if(oTO.toString()!=Number.NaN.toString())i604[H012]=maplet.B7l(oTO);
if(vXH3e.toString()!=Number.NaN.toString())M88[H012]=maplet.P58(vXH3e);
if((Math.abs(i604[H012]-i604[H012-1])+Math.abs(M88[H012]-M88[H012-1]))>3)H012++
}
i604[H012]=maplet.B7l(this.Ht633.B92_);
M88[H012]=maplet.P58(this.Ht633.e53);
g.setColor("#CC00CC");
g.setStroke(6);
g.drawPolyline(i604,M88,0)
}
};
this.clean=function()
{
this.lXvG8=null;
this.Ht633=null;
H57JK=null
}
};
var f12=new WCO37();
var Y8802=new Array('W','0','1','2','3','4','5','6','7','8','9','10','11','12');
var Ud0=new Array(90,40,20,10,5,2,1,0.5,0.2,0.1,0.05,0.02,0.01,0.005);
var e3I=new Array(90*0.8,40*0.8,20*0.8,10*0.8,5*0.8,2*0.8,1*0.8,0.5*0.8,0.2*0.8,0.1*0.8,0.05*0.8,0.02*0.8,0.01*0.8,0.005*0.8);
var e7DU4=new Array(10,10,10,10,10,10,10,10,10,10,50,50,50,50);
var uGE$=new Array(0,0,0,0,0,0,0,0,75,0,0,-150,0,0);
var R$1=13;
var X7kNs=100000;
var IP5=105;
var P3$1_=35;
var ph90=new Array(0,55);
var o8$=new Array(-75,135);
var F4E9=(document.all);
function M99(lS0YQ,_Drjg)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -