Merge pull request #652 from meshtastic/map

Map related persistent MUI data
This commit is contained in:
rcarteraz 2025-02-24 17:09:50 -07:00 committed by GitHub
commit 47ff85bb9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

View file

@ -6,3 +6,5 @@
*NodeFilter.hops_away int_size:8
*NodeFilter.channel int_size:8
*NodeHighlight.node_name max_size:16
*GeoPoint.zoom int_size:8
*Map.style max_size:20

View file

@ -66,6 +66,11 @@ message DeviceUIConfig {
* 8 integers for screen calibration data
*/
bytes calibration_data = 14;
/*
* Map related data
*/
Map map_data = 15;
}
@ -135,6 +140,40 @@ message NodeHighlight {
}
message GeoPoint {
/*
* Zoom level
*/
int32 zoom = 1;
/*
* Coordinate: latitude
*/
int32 latitude = 2;
/*
* Coordinate: longitude
*/
int32 longitude = 3;
}
message Map {
/*
* Home coordinates
*/
GeoPoint home = 1;
/*
* Map tile style
*/
string style = 2;
/*
* Map scroll follows GPS
*/
bool follow_gps = 3;
}
enum Theme {
/*
* Dark