summaryrefslogtreecommitdiff
path: root/examples/location/mapviewer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location/mapviewer/main.cpp')
-rw-r--r--examples/location/mapviewer/main.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/examples/location/mapviewer/main.cpp b/examples/location/mapviewer/main.cpp
index cc3a465f..b24bb392 100644
--- a/examples/location/mapviewer/main.cpp
+++ b/examples/location/mapviewer/main.cpp
@@ -61,26 +61,6 @@ int main(int argc, char *argv[])
QVariantMap parameters;
QStringList args(QCoreApplication::arguments());
- // Fetch tokens from the environment, if present
- const QByteArray mapboxMapID = qgetenv("MAPBOX_MAP_ID");
- const QByteArray mapboxAccessToken = qgetenv("MAPBOX_ACCESS_TOKEN");
- const QByteArray hereAppID = qgetenv("HERE_APP_ID");
- const QByteArray hereToken = qgetenv("HERE_TOKEN");
- const QByteArray esriToken = qgetenv("ESRI_TOKEN");
-
- if (!mapboxMapID.isEmpty())
- parameters["mapbox.map_id"] = QString::fromLocal8Bit(mapboxMapID);
- if (!mapboxAccessToken.isEmpty()) {
- parameters["mapbox.access_token"] = QString::fromLocal8Bit(mapboxAccessToken);
- parameters["mapboxgl.access_token"] = QString::fromLocal8Bit(mapboxAccessToken);
- }
- if (!hereAppID.isEmpty())
- parameters["here.app_id"] = QString::fromLocal8Bit(hereAppID);
- if (!hereToken.isEmpty())
- parameters["here.token"] = QString::fromLocal8Bit(hereToken);
- if (!esriToken.isEmpty())
- parameters["esri.token"] = QString::fromLocal8Bit(esriToken);
-
if (parseArgs(args, parameters))
return 0;
if (!args.contains(QStringLiteral("osm.useragent")))