mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fa338a26b8
commit
e856f816f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue