diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-09-09 00:00:12 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-09-09 01:23:22 -0700 |
commit | 538634c916e66e47cceaee5a98131eaadd60b269 (patch) | |
tree | 2cfdc8daf7a3b8082b932dadb1ea52d298b742c2 /app/file_operation.cpp | |
parent | fb68a3ddc7fcdf67c62fcde32914d4ed3936680a (diff) |
qml: add OpenStreetMaps map engine option
To allow testing in regions without easily accessible MapBox
API keys add an ENABLE_OSM build option.
Bug-AGL: SPEC-2667
Change-Id: I8ba72b774ed0ab1cf740dc0ebdb3048a6f403696
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/file_operation.cpp')
-rw-r--r-- | app/file_operation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/file_operation.cpp b/app/file_operation.cpp index 09bd4d0..f3814d8 100644 --- a/app/file_operation.cpp +++ b/app/file_operation.cpp @@ -27,12 +27,14 @@ void File_Operation::initFileOperation(){ QJsonDocument jsonDoc(QJsonDocument::fromJson(data)); QJsonObject jsonObj(jsonDoc.object()); +#ifndef ENABLE_OSM if(jsonObj.contains("mapAccessToken")){ m_mapAccessToken = jsonObj["mapAccessToken"].toString(); }else{ fprintf(stderr,"Failed to find mapAccessToken data \"%s\": %m", qPrintable(NAVI_CONFIG_FILEPATH)); return; } +#endif if(jsonObj.contains("speed")){ m_car_speed = jsonObj["speed"].toDouble(); |