⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avinclude.js

📁 类mapbar地图处理 用的是MapBar给百度的JS
💻 JS
📖 第 1 页 / 共 5 页
字号:
        if(this.e3953.length>0)
        {
            this.xW7_=null;
            this.Y7v6=null;
            this.i4or=null;
            for(g20pq=0;g20pq<this.e3953.length;g20pq++)
            {
                if(this.mJ18>=this.e3953[g20pq].I1$W&&this.mJ18<=this.e3953[g20pq].lt74)
                {
                    var fOY92=this.B7l(this.e3953[g20pq].B92_);
                    var Bv1=this.P58(this.e3953[g20pq].e53);
                    if(fOY92>=0&&fOY92<=this.width&&Bv1>=0&&Bv1<=this.height)
                    {
                        if(this.xW7_==null)
                        {
                            this.xW7_=new Array();
                            this.Y7v6=new Array();
                            this.i4or=new Array()
                        }
                        this.xW7_[this.xW7_.length]=fOY92;
                        this.Y7v6[this.Y7v6.length]=Bv1;
                        this.i4or[this.i4or.length]=g20pq
                    }
                }
            }
        }
    };
    this.m02=function()
    {
        if(this.Q1E)
        {
            var H8507=(this.v7CX*100*81/parseInt(this.X3v));
            var qUUe='';
            var r37g="#FFFFBB";
            var u4FN=6;
            if(this.$mR5!="undefined"&&this.$mR5!=null)
            {
                H8507=(this.v7CX*100*60/parseInt(this.X3v));
                qUUe=this.$mR5+"/";
                r37g="#000000";
                u4FN=0
            }
            H8507=(H8507<10)?(H8507).toPrecision(1):parseInt(H8507);
            //var _Ot='<div unselectable="on" style="position:absolute;top=2;left=1;z-Index=0"><IMG src="'+strImgsvrUrl+'images/'+qUUe+'scale.gif" ></div>';
            var _Ot='<div unselectable="on" style="position:absolute;top=2;left=1;z-Index=0"><IMG src="'+strImgsvrUrl+'images/scale.gif" ></div>';
            _Ot+='<div unselectable="on" style="position:absolute;top='+u4FN+';left=1;z-Index=1"><TABLE cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD unselectable="on" style="z-Index:1;FONT-SIZE: 12px; COLOR='+r37g+';FONT-WEIGHT: bold;" width="100%">&nbsp;'+H8507+' 公里</TD></TR></TBODY></TABLE></div>';
            this.xwk5.c77d.innerHTML=_Ot
        }
        else
        {
            this.xwk5.c77d.innerHTML=''
        }
        if(this.v2a2)
        {
            var WY9Xv='<u>&copy;Rover Map</u>&nbsp;';
            var QE5='<div unselectable="on" style="position:absolute;top=0;left=0;width=97;height=23;z-Index=1"><TABLE cellSpacing=0 cellPadding=0 border=0 align=right><TBODY><TR><TD unselectable="on" style="z-Index:1;top:8;left:1;FONT-SIZE: 12px; font-family: arial;COLOR=#0000FF;" width="100%" >'+WY9Xv+'</TD></TR></TBODY></TABLE></div>';
            this.T551.c77d.innerHTML=QE5
        }
        else
        {
            if(this.T551)this.T551.c77d.innerHTML=''
        }
    };
    this.zoomIn=function()
    {
        this.setZoomLevel(this.mJ18+1)
    };
    this.zoomOut=function()
    {
        this.setZoomLevel(this.mJ18-1)
    };
    this.setCenter=function(e53,B92_)
    {
        this.AUF5_=Math.min(ph90[1],Math.max(ph90[0],parseFloat(e53)));
        this.xh53v=Math.min(o8$[1],Math.max(o8$[0],parseFloat(B92_)));
        this.setZoomLevel(this.mJ18)
    };
    this.O2q=20.0;
    this.Js4n1=null;
    this.T$_v=function(x,y)
    {
        this.xoffset=x;
        this.yoffset=y;
        this.wNR0=0;
        this.r0mA=0;
        this.CW1=this.AUF5_+this.yoffset*this.m308/this.T5$;
        this.qJgT=this.xh53v-this.xoffset*this.v7CX/this.X3v;
        this.$O62a=parseInt(Math.sqrt(this.xoffset*this.xoffset+this.yoffset*this.yoffset));
        if(!this.xDx)
        {
            this.doPan()
        }
    };
    this.doPan=function()
    {
        this.xDx=true;
        var X90rQ=parseInt(Math.sqrt(this.wNR0*this.wNR0+this.r0mA*this.r0mA));
        if(Math.abs(this.$O62a-X90rQ)<=(1.2*this.O2q))
        {
            this.K28.moveTo(this.xoffset,this.yoffset);
            this.wNR0=this.xoffset;
            this.r0mA=this.yoffset;
            this.Js4n1=null;
            this.Js4n1=setTimeout("maplet.finishupPan()",10)
        }
        else
        {
            this.wNR0+=this.xoffset*this.O2q/this.$O62a;
            this.r0mA+=this.yoffset*this.O2q/this.$O62a;
            this.K28.moveTo(this.wNR0,this.r0mA);
            this.Js4n1=null;
            this.Js4n1=setTimeout("maplet.doPan()",10)
        }
    };
    this.finishupPan=function()
    {
        this.setCenter(this.CW1,this.qJgT);
        if(this.A3Y7r)
        {
            this.LhGY.appendChild(this.A3Y7r)
        }
        this.xDx=false;
        this.Js4n1=null
    };
    this.OYos=function(w7N)
    {
        var m6A=Math.pow(2,parseFloat(w7N))/Math.pow(2,this.mJ18);
        this.K28.c77d.style.zoom=m6A;
        this.K28.c77d.style.left=this.width/2-this.width*m6A/2;
        this.K28.c77d.style.top=this.height/2-this.height*m6A/2
    };
    this.addLabel=function(op2P3,e53,B92_,bnI,oMJ0,P30)
    {
        if(!oMJ0)oMJ0='';
        this.FK2[this.FK2.length]=new VV96("label"+this.FK2.length,op2P3,op2P3,parseFloat(e53),parseFloat(B92_),bnI,oMJ0,P30)
    };
    this.addPoint=function(op2P3,e53,B92_,bnI,Llg9,P30)
    {
        if(!Llg9)Llg9='';
        this.v8I[this.v8I.length]=new VV96("point"+this.v8I.length,op2P3,op2P3,parseFloat(e53),parseFloat(B92_),bnI,Llg9,P30)
    };
    this.addHotspot=function(e53,B92_,bnI,dN2,$2q)
    {
        var xt2o=new VV96("hotspot"+this.e3953.length,'','',parseFloat(e53),parseFloat(B92_),bnI,'','0');
        xt2o.I5b3P=false;
        xt2o.I1$W=dN2;
        xt2o.lt74=$2q;
        this.e3953[this.e3953.length]=xt2o
    };
    this.addPointWithSwapImage=function(op2P3,p9I,e53,B92_,bnI,Llg9,P30)
    {
        this.v8I[this.v8I.length]=new VV96("point"+this.v8I.length,op2P3,p9I,parseFloat(e53),parseFloat(B92_),bnI,Llg9,P30)
    };
    this.addPointWithId=function(id,e53,B92_,bnI,Llg9,P30)
    {
        this.v8I[this.v8I.length]=new VV96(id,TrH[id],$J27f[id],parseFloat(e53),parseFloat(B92_),bnI,Llg9,P30)
    };
    this.addIcon=function(op2P3,b4Y87,bnI,oMJ0,P30)
    {
        var l10=b.p(b4Y87);
        this.addPoint(op2P3,l10[1],l10[0],bnI,oMJ0,P30)
    };
    this.B7l=function(B92_)
    {
        if(false&&this.mJ18==0)
        {
            return Math.round(this.width/2+(parseFloat(B92_)-IP5)/Ud0[this.mJ18]*this.X3v)
        }
        else
        {
            return Math.round(this.width/2+(parseFloat(B92_)-this.xh53v)/Ud0[this.mJ18]*this.X3v)
        }
    };
    this.P58=function(e53)
    {
        if(false&&this.mJ18==0)
        {
            return Math.round(this.height/2-(parseFloat(e53)-P3$1_)/Math.cos(40.0/180*3.1415926)/e3I[this.mJ18]*this.T5$)
        }
        else
        {
            return Math.round(this.height/2-(parseFloat(e53)-this.AUF5_)/e3I[this.mJ18]*this.T5$)
        }
    };
    this.setMode=function(xa373)
    {
        this.F50=parseInt(xa373);
        this.rM9=false;
        this.xhx53=false;
        switch(xa373)
        {
            case '1':case 1:this.rM9=true;
            this.map.style.cursor='crosshair';
            break;
            case '2':case 2:this.rM9=true;
            this.map.style.cursor='crosshair';
            break;
            case '3':case 3:this.xhx53=true;
            this.map.style.cursor="default";
            break;
            case '5':case 5:this.rM9=true;
            this.map.style.cursor="default";
            break;
            case '6':case 6:this.map.style.cursor="default";
            break;
            case '7':case 7:this.map.style.cursor="default";
            break;
            case '8':case 8:this.map.style.cursor="default";
            break;
            case '9':case 9:this.map.style.cursor="default";
            break;
            case '10':case 10:this.map.style.cursor="default";
            break;
            case '11':case 11:this.map.style.cursor="default";
            break;
            default:break
        }
    };
    this.setCursorStyle=function(L3eC)
    {
        this.map.style.cursor=L3eC
    };
    this.m20F=function()
    {
        if((this.GB5e>0)&&(this.GB5e<this.width)&&(this.TMJ>0)&&(this.TMJ<this.height)&&(this.uO14>0)&&(this.uO14<this.width)&&(this.HM_>0)&&(this.HM_<this.height))return true;
        else return false
    };
    this.J68M=function()
    {
        if(this.GB5e<this.uO14&&this.TMJ<this.HM_)
        {
            this.x3JV.resize(this.uO14-this.GB5e,this.HM_-this.TMJ);
            this.x3JV.moveTo(this.GB5e,this.TMJ)
        }
        else if(this.GB5e>this.uO14&&this.TMJ<this.HM_)
        {
            this.x3JV.resize(this.GB5e-this.uO14,this.HM_-this.TMJ);
            this.x3JV.moveTo(this.uO14,this.TMJ)
        }
        else if(this.GB5e<this.uO14&&this.TMJ>this.HM_)
        {
            this.x3JV.resize(this.uO14-this.GB5e,this.TMJ-this.HM_);
            this.x3JV.moveTo(this.GB5e,this.HM_)
        }
        else if(this.GB5e>this.uO14&&this.TMJ>this.HM_)
        {
            this.x3JV.resize(parseInt(this.GB5e)-this.uO14,parseInt(this.TMJ)-this.HM_);
            this.x3JV.moveTo(this.uO14,this.HM_)
        }
        else
        {
            this.x3JV.resize(this.GB5e-this.uO14,this.TMJ-this.HM_);
            this.x3JV.moveTo(this.uO14,this.HM_)
        }
    };
    this.o91B=function(H694)
    {
        this.C6k=(F4E9)?event.srcElement.id:H694.target.id;
        var M9797=parseInt((F4E9)?event.clientX:H694.clientX);
        var ea93=parseInt((F4E9)?event.clientY:H694.clientY);
        var q7T9$=this.GB5e;
        var P2k=this.TMJ;
        this.GB5e=(M9797)-this.left;
        this.TMJ=(ea93)-this.top;
        if(this.O6$!=null)
        {
            if(this.O6$.onmousemove(H694))
            {
                return
            }
        }
        if(this.F50==i9h0.B4w13||this.F50==i9h0.Jk__||this.F50==i9h0.DpIf)
        {
            if(F4E9||this.F50==i9h0.B4w13)
            {
                showMouseTipBox((M9797),(ea93),"请双击结束",this.map)
            }
        }
        else
        {
            l2IN5()
        }
        if(this.u41&&this.u9$$().vCo7Y(this.GB5e,this.TMJ))return;
        if(this.F50==i9h0.mQF3U)
        {
            var NveW=false;
            if(this.xW7_!=null&&this.Y7v6!=null)
            {
                for(g20pq=0;g20pq<this.xW7_.length;g20pq++)
                {
                    if(Math.abs(this.xW7_[g20pq]-this.GB5e)<8&&Math.abs(this.Y7v6[g20pq]-this.TMJ)<8)
                    {
                        NveW=true;
                        break
                    }
                }
            }
            if(NveW)
            {
                this.map.style.cursor="hand"
            }
            else
            {
                this.map.style.cursor="default"
            }
        }
        if(this.xhx53&&this.u$0)
        {
            this.map.style.cursor="move";
            if(iToolTipStyle==0)hideToolTipMenu();
            {
            }
            if(this.A3Y7r!=null)
            {
                hideBubble()
            }
            if(iToolTipStyle==0)hideToolTipMenu();
            {
                this.K28.moveTo(this.GB5e-this.uO14,this.TMJ-this.HM_)
            }
            this.MoJ=true
        }
        else if(this.rM9&&this.u$0)
        {
            if(this.m20F())
            {
                this.M772=true;
                this.J68M()
            }
        }
        else if(this.F50==i9h0.B4w13||this.F50==i9h0.Jk__||this.F50==i9h0.DpIf)
        {
            var Nv2lX=this.xh53v+(this.GB5e-this.width/2)*this.v7CX/this.X3v;
            var M5n=this.AUF5_-(this.TMJ-this.height/2)*this.m308/this.T5$;
            if(this.d27!=null)
            {
                this.af5.Kh07[0]=this.d27.Kh07[this.d27.Kh07.length-1];
                this.af5.c_77n[0]=this.d27.c_77n[this.d27.c_77n.length-1];
                this.af5.Kh07[1]=M5n;
                this.af5.c_77n[1]=Nv2lX;
                if(F4E9)
                {
                    this.af5.S85()
                }
                else
                {
                    this.mB07.graphics.clear();
                    this.d27.dI$59(this.mB07.graphics);
                    this.af5.dI$59(this.mB07.graphics)
                }
            }
        }
        else
        {
            if(this.C6k=="LayerDrawMap"&&iToolTipStyle==0)
            {
                hideToolTipMenu()
            }
        }
    };
    this.k66l9=function(H694)
    {
        var M9797=parseInt((F4E9)?event.clientX:H694.clientX);
        var ea93=parseInt((F4E9)?event.clientY:H694.clientY);
        this.C6k=(F4E9)?event.srcElement.id:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -