2024年2月21日发(作者:)
._NAME_ATTRS = (function() { var e = { cellpadding : "cellPadding", cellspacing : "cellSpacing", colspan : "colSpan", rowspan : "rowSpan", valign : "vAlign", usemap : "useMap", frameborder : "frameBorder" }; if ( < 8) { e["for"] = "htmlFor"; e["class"] = "className" } else { r = "for"; ame = "class" } return e })(); r = function(f, e, g) { f = .g(f); if ("style" == e) { t = g } else { e = ._NAME_ATTRS[e] || e; ribute(e, g) } return f }; r = r; rs = function(g, e) { g = .g(g); for ( var f in e) { r(g, f, e[f]) } return g }; rs = rs; = function(g, e) { var h = Element(g), f = e || {}; return rs(h, f) }; = || {}; = = function(g, e) { for ( var f in e) { if (Property(f)) { g[f] = e[f] } } return g } })(); var c = = function(g, f, e) { if (!f || < 1) { return } this._map = g; this._path = f; this.i = 0; this._setTimeoutQuene = []; this._projection = this._Type().getProjection(); this._opts = { icon : null, speed : 4000, defaultContent : "" }; this._setOptions(e); this._rotation = 0; if (!this._ instanceof ) { this._ = defaultIcon } }; ype._setOptions = function(e) { if (!e) { return } for ( var f in e) { if (Property(f)) { this._opts[f] = e[f] } } }; = function() { var f = this, e = f._; if (f.i && f.i < e - 1) { if (!f._fromPause) { return } else { if (!f._fromStop) { f._moveNext(++f.i) } } } else { f._addMarker(); f._timeoutFlag = setTimeout(function() { f._addInfoWin(); if (f._tContent == "") { foWindow()
} f._moveNext(f.i) }, 400) } this._fromPause = false; this._fromStop = false }, = function() { this.i = 0; this._fromStop = true; clearInterval(this._intervalFlag); this._clearTimeout(); for (var g = 0, f = this._rkPois, e = ; g < e; g++) { f[g].bShow = false } }; = function() { clearInterval(this._intervalFlag); this._fromPause = true; this._clearTimeout() }; foWindow = function() { this._overlay._lity = "hidden" }; foWindow = function() { this._overlay._lity = "visible" }; .extend( ype, { _addMarker : function(f) { if (this._marker) { (); this._Overlay(this._marker); clearTimeout(this._timeoutFlag) } this._overlay && this._Overlay(this._overlay); var e = new (this._path[0]); this._ && n(this._); this._rlay(e); mation(BMAP_ANIMATION_DROP); this._marker = e }, _addInfoWin : function() { var f = this; var e = new d(f._ition(), f._tContent); atedClass(this); this._overlay = e; this._rlay(e) }, _getMercator : function(e) { return this._Type().getProjection() .lngLatToPoint(e) }, _getDistance : function(f, e) { return ((f.x - e.x, 2) + (f.y - e.y, 2)) }, _move : function(n, j, m) { var i = this, h = 0, e = 10, f = this._ / (1000 / e), l = this._projection .lngLatToPoint(n), k = this._projection .lngLatToPoint(j), g = (i ._getDistance(l, k) / f); if (g < 1) { i._moveNext(++i.i); return } i._intervalFlag = setInterval( function() { if (h >= g) { clearInterval(i._intervalFlag); if (i.i > i._) { return } i._moveNext(++i.i) } else { h++; var o = m(l.x, k.x, h, g), r = m( l.y, k.y, h, g), q = i._projection .pointToLngLat(new ( o, r)); if (h == 1) { var p = null; if (i.i - 1 >= 0) { p = i._path[i.i - 1] } if (i._Rotation == true) { ation(p, n, j) } if (i._ew) { if (!i._nds() .containsPoint(q)) { i._ter(q) }
} } i._ition(q); i._setInfoWin(q) } }, e) }, setRotation : function(l, f, m) { var j = this; var e = 0; f = j._oPixel(f); m = j._oPixel(m); if (m.x != f.x) { var k = (m.y - f.y) / (m.x - f.x), g = Math .atan(k); e = g * 360 / (2 * ); if (m.x < f.x) { e = -e + 90 + 90 } else { e = -e } j._ation(-e) } else { var h = m.y - f.y; var i = 0; if (h > 0) { i = -1 } else { i = 1 } j._ation(-i * 90) } return }, linePixellength : function(f, e) { return ((f.x - e.x) * (f.x - e.x) + (f.y - e.y) * (f.y - e.y)) }, pointToPoint : function(f, e) { return (f.x - e.x) * (f.x - e.x) + (f.y - e.y) * (f.y - e.y) }, _moveNext : function(e) { var f = this; if (e < this._ - 1) { f._move(f._path[e], f._path[e + 1], f._) } }, _setInfoWin : function(g) { var f = this; if (!f._overlay) { return } f._ition(g, f._n().size); var e = f._troughPointIndex(g); if (e != -1) { clearInterval(f._intervalFlag); f._overlay .setHtml(f._rkPois[e].html); f._ition(g, f._n().size); f._pauseForView(e) } else { f._l(f._tContent) } }, _pauseForView : function(e) { var g = this; var f = setTimeout(function() { g._moveNext(++g.i) }, g._rkPois[e].pauseTime * 1000); g._(f) }, _clearTimeout : function() { for ( var e in this._setTimeoutQuene) { clearTimeout(this._setTimeoutQuene[e]) } this._ = 0 }, _tween : { linear : function(f, j, h, i) { var e = f, l = j - f, g = h, k = i; return l * g / k + e } }, _troughPointIndex : function(f) { var h = this._rkPois, j; for (var g = 0, e = ; g < e; g++) { if (!h[g].bShow) { j = this._tance(new ( h[g].lng, h[g].lat), f); if (j < 10) { h[g].bShow = true; return g } }


发布评论