Newsly download GMaps images have a red marker in them to pinpoint the exact location.

This commit is contained in:
Fabian Schlenz 2018-03-07 17:15:59 +01:00
parent da2a7d88b6
commit 85c525ab1c
1 changed files with 2 additions and 1 deletions

View File

@ -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)