var BMapGLLib=window.BMapGLLib=BMapGLLib||{};(function(){var f=1;var e=55;var a=10000;var h=0;var c=true;var d=1;var i=2;var b=0;var g=BMapGLLib.TrackAnimation=function(l,j,k){this._map=l;this._polyline=j;this._totalPath=j.getPath();this._overallView=l.getViewport(j.getPath());this._status=i;this._opts={zoom:this._getZoom(),tilt:e,duration:a,delay:h,overallView:c};this._initOpts(k);this._expandPath=this._addPath(j.getPath())};g.prototype._getZoom=function(){return Math.min(this._overallView.zoom+f,this._map.getMaxZoom())};g.prototype._updateAniParams=function(){this._updatePathAni();this._updateViewAni();this._polyline.setPath(this._expandPath.slice(0,1))};g.prototype._updatePathAni=function(){this._expandPath=this._addPath(this._totalPath)};g.prototype._updateViewAni=function(){this._overallView=this._map.getViewport(this._totalPath);var o=this._totalPath.length;var n=[];var p=this._opts.overallView?this._opts.duration+2000:this._opts.duration;for(var j=0;j