mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Fix DynmapTileLayer sharing object instances
This commit is contained in:
parent
3a7a4a81e5
commit
0630b2f15d
@ -75,10 +75,17 @@ var DynmapLayerControl = L.Control.Layers.extend({
|
||||
|
||||
|
||||
var DynmapTileLayer = L.TileLayer.extend({
|
||||
_namedTiles: {},
|
||||
_cachedTileUrls: {},
|
||||
_loadQueue: [],
|
||||
_loadingTiles: [],
|
||||
_namedTiles: null,
|
||||
_cachedTileUrls: null,
|
||||
_loadQueue: null,
|
||||
_loadingTiles: null,
|
||||
|
||||
initialize: function() {
|
||||
this._namedTiles = {};
|
||||
this._cachedTileUrls = {};
|
||||
this._loadQueue = [];
|
||||
this._loadingTiles = [];
|
||||
},
|
||||
|
||||
createTile: function(coords, done) {
|
||||
var me = this,
|
||||
|
@ -35,6 +35,7 @@ var HDMapType = DynmapTileLayer.extend({
|
||||
this.projection = new HDProjection($.extend({map: this}, options));
|
||||
|
||||
L.Util.setOptions(this, options);
|
||||
DynmapTileLayer.prototype.initialize.call(this, options);
|
||||
},
|
||||
getTileName: function(coords) {
|
||||
var info = this.getTileInfo(coords);
|
||||
|
Loading…
Reference in New Issue
Block a user