Skip to content

Commit

Permalink
Merge pull request #652 from meshtastic/map
Browse files Browse the repository at this point in the history
Map related persistent MUI data
  • Loading branch information
rcarteraz authored Feb 25, 2025
2 parents f3a57ad + 2f6a133 commit 47ff85b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meshtastic/device_ui.options
Original file line number Diff line number Diff line change
Expand Up @@ -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
39 changes: 39 additions & 0 deletions meshtastic/device_ui.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ message DeviceUIConfig {
* 8 integers for screen calibration data
*/
bytes calibration_data = 14;

/*
* Map related data
*/
Map map_data = 15;
}


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47ff85b

Please sign in to comment.