mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-08 03:00:26 +01:00
Fixed vanishing players whem refreshing after switching back from auto-update.
This commit is contained in:
parent
4b4c620c35
commit
b54b2b6b91
|
@ -132,7 +132,6 @@ map.addControl(layersControl);
|
|||
|
||||
manualUpdateControl = L.easyButton('fa-refresh',
|
||||
function (){
|
||||
players.refresh();
|
||||
var tiles = document.getElementsByTagName("img");
|
||||
for (var i = 0; i < tiles.length; i++) {
|
||||
var img = tiles[i];
|
||||
|
@ -147,6 +146,7 @@ manualUpdateControl = L.easyButton('fa-refresh',
|
|||
}
|
||||
}
|
||||
//map._resetView(map.getCenter(), map.getZoom(), false);
|
||||
players.refresh("/players");
|
||||
},
|
||||
'Update view'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user