mirror of
				https://bitbucket.org/s_l_teichmann/mtsatellite
				synced 2025-10-31 16:15:27 +01:00 
			
		
		
		
	Fixed vanishing players whem refreshing after switching back from auto-update.
This commit is contained in:
		| @@ -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' | ||||
| ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user