mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Update map provider to OSM
This commit is contained in:
parent
034ae1b7f1
commit
b04b0326b4
@ -21,6 +21,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <googlemapadapter.h>
|
#include <googlemapadapter.h>
|
||||||
|
#include <osmmapadapter.h>
|
||||||
|
#include <openaerialmapadapter.h>
|
||||||
|
|
||||||
#include <UI/Dashboard.h>
|
#include <UI/Dashboard.h>
|
||||||
#include <UI/Widgets/GPS.h>
|
#include <UI/Widgets/GPS.h>
|
||||||
@ -83,8 +85,8 @@ Widgets::GPS::GPS(const int index)
|
|||||||
m_mapControl.setMouseMode(qmapcontrol::MapControl::None);
|
m_mapControl.setMouseMode(qmapcontrol::MapControl::None);
|
||||||
m_mapControl.resize(QSize(width() - 28, height() - 36 - m_titleWidget.height()));
|
m_mapControl.resize(QSize(width() - 28, height() - 36 - m_titleWidget.height()));
|
||||||
|
|
||||||
// Load google maps adapter
|
// Load OSM map adapter
|
||||||
auto *mapadapter = new qmapcontrol::GoogleMapAdapter();
|
auto *mapadapter = new qmapcontrol::OSMMapAdapter();
|
||||||
auto *l = new qmapcontrol::Layer("Custom Layer", mapadapter,
|
auto *l = new qmapcontrol::Layer("Custom Layer", mapadapter,
|
||||||
qmapcontrol::Layer::MapLayer);
|
qmapcontrol::Layer::MapLayer);
|
||||||
m_mapControl.addLayer(l);
|
m_mapControl.addLayer(l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user