From 85c525ab1cf803e3a8754259de92e2d2a79f0953 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 7 Mar 2018 17:15:59 +0100 Subject: [PATCH] Newsly download GMaps images have a red marker in them to pinpoint the exact location. --- .../telegram_backup/mediafilemanager/GeoFileManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/GeoFileManager.kt b/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/GeoFileManager.kt index 15726c8..41d1f1c 100644 --- a/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/GeoFileManager.kt +++ b/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/GeoFileManager.kt @@ -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)