From b4364919e5a74325812f2f527adbfe62a165109e Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 22 Sep 2019 20:38:07 -0700 Subject: qml: allow map plugins to be set on runtime Allow selection of OSM over MapBox with enableOSM configuration file option. Bug-AGL: SPEC-2667 Change-Id: Ie055ca1263b0a6f2a74046e5ff85535e48e60d31 Signed-off-by: Matt Ranostay --- app/file_operation.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/file_operation.h') diff --git a/app/file_operation.h b/app/file_operation.h index 411cc25..962c506 100644 --- a/app/file_operation.h +++ b/app/file_operation.h @@ -22,6 +22,7 @@ class File_Operation: public QObject{ int m_update_interval; // set millisecond double m_start_latitude; double m_start_longitute; + bool m_enable_osm; QString m_mapStyleUrls; public: @@ -34,6 +35,7 @@ public: Q_INVOKABLE double getStartLatitude(); Q_INVOKABLE double getStartLongitute(); Q_INVOKABLE QString getMapStyleUrls(); + Q_INVOKABLE bool isOSMEnabled() { return m_enable_osm; }; private: void initFileOperation(); -- cgit 1.2.3-korg