Map: Default to mapboxgl for Qt 5.15.3, as osm doesn't work

pull/1280/head
Jon Beniston 2022-06-06 13:51:08 +01:00
rodzic 8a7113be19
commit 511a17a6bb
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -83,7 +83,11 @@ MapSettings::~MapSettings()
void MapSettings::resetToDefaults()
{
m_displayNames = true;
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3)
m_mapProvider = "mapboxgl"; // osm maps do not work in Qt 5.15.3 - https://github.com/f4exb/sdrangel/issues/1169
#else
m_mapProvider = "osm";
#endif
m_thunderforestAPIKey = "";
m_maptilerAPIKey = "";
m_mapBoxAPIKey = "";
@ -169,7 +173,11 @@ bool MapSettings::deserialize(const QByteArray& data)
QByteArray blob;
d.readBool(1, &m_displayNames, true);
#if QT_VERSION == QT_VERSION_CHECK(5, 15, 3)
d.readString(2, &m_mapProvider, "mapboxgl"); // osm maps do not work in Qt 5.15.3 - https://github.com/f4exb/sdrangel/issues/1169
#else
d.readString(2, &m_mapProvider, "osm");
#endif
d.readString(3, &m_mapBoxAPIKey, "");
d.readString(4, &m_mapBoxStyles, "");
d.readString(8, &m_title, "Map");