1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Map: Add Spy Server and Kiwi SDR. Add weather and satellite overlays.

This commit is contained in:
srcejon
2024-02-27 15:40:06 +00:00
parent c9b7ffa3c2
commit e0839fce82
43 changed files with 3348 additions and 271 deletions
+22
View File
@@ -177,6 +177,28 @@ void CesiumInterface::showfoF2(bool show)
send(obj);
}
void CesiumInterface::showLayer(const QString& layer, bool show)
{
QJsonObject obj {
{"command", "showLayer"},
{"layer", layer},
{"show", show}
};
send(obj);
}
void CesiumInterface::setLayerSettings(const QString& layer, const QStringList& settings, const QList<QVariant>& values)
{
QJsonObject obj {
{"command", "setLayerSettings"},
{"layer", layer},
};
for (int i = 0; i < settings.size(); i++) {
obj.insert(settings[i], QJsonValue::fromVariant(values[i]));
}
send(obj);
}
void CesiumInterface::updateImage(const QString &name, float east, float west, float north, float south, float altitude, const QString &data)
{
QJsonObject obj {