QML UI: use better Google maps link

This still isn't the user experience that I want, but at least now it's not a
static map image anymore but an interactive map.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-01 22:24:05 -08:00
parent fa338a26b8
commit e856f816f2

View file

@ -597,7 +597,7 @@ void QMLManager::setStartPageText(QString text)
void QMLManager::showMap(QString location)
{
if (!location.isEmpty()) {
QString link = QString("https://maps.googleapis.com/maps/api/staticmap?center=%1&zoom=15&size=600x400&maptype=satellite&markers=color:red|%2")
QString link = QString("https://www.google.com/maps/place/%1/@%2,5000m/data=!3m1!1e3!4m2!3m1!1s0x0:0x0")
.arg(location).arg(location);
QDesktopServices::openUrl(link);
}