delete unneeded code
This commit is contained in:
parent
7bdbd25fc2
commit
a3ecc08e0b
1 changed files with 0 additions and 15 deletions
|
@ -1447,21 +1447,6 @@ UserLocationControl = L.Control.extend({
|
|||
this._button.href = '#';
|
||||
this.currentLevel = null;
|
||||
return this._container;
|
||||
},
|
||||
|
||||
finalize: function () {
|
||||
var buttons = $(this._container).find('a');
|
||||
buttons.addClass('current');
|
||||
buttons.width(buttons.width());
|
||||
buttons.removeClass('current');
|
||||
},
|
||||
|
||||
reloadMap: function() {
|
||||
var old_tile_layer = this._tileLayers[this.currentLevel],
|
||||
new_tile_layer = this.createTileLayer(this.currentLevel);
|
||||
this._tileLayers[this.currentLevel] = new_tile_layer;
|
||||
new_tile_layer.addTo(c3nav.map);
|
||||
window.setTimeout(function() { old_tile_layer.remove(); }, 2000);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue