function Dragger(){ this._handleElms = []; this._doOnMouseDown = bind(this._doOnMouseDown, this); this._doOnMouseMove = bind(this._doOnMouseMove, this); this._doOnRelease = bind(this._doOnRelease, this); this._doOnTimeout = bind(this._doOnTimeout, this); this.onDragStart = delegate(); this.onDragMove = delegate(); this.onDragEnd = delegate(); }
function TileLayer(){ this._cache = new LinkedMap(1024); this._loader = new ImageLoader(5); this._preloader = new ImageLoader(1); this.onDropTile = delegate(); var self = this; this._cache.onDrop.addCallback(function (tile){ self._doOnDropTile(tile); }); this._doOnMapChanges = bind(this._doOnMapChanges, this); }
function TileLayer(){ this._cache = new LinkedMap(1024); this._loader = new ImageLoader(5); this._preloader = new ImageLoader(1); this._rev = 1; this._loadUpLevels = 0; this._findUpLevels = true; this._onlyFindDrawns = true; this._findDownLevels = true; this._preloadUpLevel = 2; this._blend = true; this._blendTime = 1000; this._alwaysBlend = false; this.onDropTile = delegate(); var self = this; this._cache.onDrop.addCallback(function (tile){ self._doOnDropTile(tile); }); this._doOnMapChanges = bind(this._doOnMapChanges, this); }