mirror of
				https://github.com/fabianonline/telegram_backup.git
				synced 2025-10-28 14:40:04 +00:00 
			
		
		
		
	Newsly download GMaps images have a red marker in them to pinpoint the exact location.
This commit is contained in:
		| @@ -74,7 +74,8 @@ class GeoFileManager(msg: TLMessage, user: UserManager, client: TelegramClient) | ||||
| 	@Throws(IOException::class) | ||||
| 	override fun download(): Boolean { | ||||
| 		val url = "https://maps.googleapis.com/maps/api/staticmap?" + | ||||
| 			"center=" + geo.getLat() + "," + geo.getLong() + "&" + | ||||
| 			"center=${geo.getLat()},${geo.getLong()}&" + | ||||
| 			"markers=color:red|${geo.getLat()},${geo.getLong()}&" + | ||||
| 			"zoom=14&size=300x150&scale=2&format=png&" + | ||||
| 			"key=" + Config.SECRET_GMAPS | ||||
| 		return DownloadManager.downloadExternalFile(targetPathAndFilename, url) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user