1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

Map updates:

Allow selection of which device to tune to frequency.
Support tuning of multiple frequencies per map item.
Update maplibre to maplibregl.
This commit is contained in:
srcejon
2023-12-05 12:30:25 +00:00
parent 78068fd5f2
commit 070f8077b2
9 changed files with 206 additions and 75 deletions
+4 -3
View File
@@ -1189,11 +1189,12 @@ void MapGUI::applyMap2DSettings(bool reloadMap)
if (!m_settings.m_mapBoxStyles.isEmpty())
parameters["mapboxgl.mapping.additional_style_urls"] = m_settings.m_mapBoxStyles;
}
if (m_settings.m_mapProvider == "maplibre")
if (m_settings.m_mapProvider == "maplibregl")
{
parameters["maplibre.access_token"] = m_settings.m_mapBoxAPIKey;
parameters["maplibregl.settings_template"] = "maptiler"; // Or "mapbox"
parameters["maplibregl.access_token"] = m_settings.m_maptilerAPIKey;
if (!m_settings.m_mapBoxStyles.isEmpty())
parameters["maplibre.mapping.additional_style_urls"] = m_settings.m_mapBoxStyles;
parameters["maplibregl.mapping.additional_style_urls"] = m_settings.m_mapBoxStyles;
}
if (m_settings.m_mapProvider == "osm")
{