mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-08-29 07:08:27 +00:00
feat(ui): converge shared map viewport and localization contracts
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
|
||||
#include "chat/domain/contact_types.h"
|
||||
#include "lvgl.h"
|
||||
#include "ui/widgets/map/map_viewport.h"
|
||||
|
||||
namespace node_info
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
static constexpr std::size_t kNodeInfoTileCount = 9;
|
||||
static constexpr std::size_t kNodeInfoInfoLineCount = 8;
|
||||
static constexpr std::size_t kNodeInfoInfoLineCount = 4;
|
||||
|
||||
struct NodeInfoWidgets
|
||||
{
|
||||
@@ -31,8 +31,8 @@ struct NodeInfoWidgets
|
||||
|
||||
lv_obj_t* map_stage = nullptr;
|
||||
lv_obj_t* tile_layer = nullptr;
|
||||
lv_obj_t* left_scrim = nullptr;
|
||||
lv_obj_t* right_scrim = nullptr;
|
||||
lv_obj_t* map_overlay_layer = nullptr;
|
||||
lv_obj_t* map_gesture_surface = nullptr;
|
||||
|
||||
lv_obj_t* id_label = nullptr;
|
||||
lv_obj_t* lon_label = nullptr;
|
||||
@@ -50,9 +50,13 @@ struct NodeInfoWidgets
|
||||
lv_obj_t* zoom_out_btn = nullptr;
|
||||
lv_obj_t* zoom_in_label = nullptr;
|
||||
lv_obj_t* zoom_out_label = nullptr;
|
||||
lv_obj_t* info_panel = nullptr;
|
||||
lv_obj_t* zoom_status_label = nullptr;
|
||||
lv_obj_t* layer_btn = nullptr;
|
||||
lv_obj_t* layer_label = nullptr;
|
||||
|
||||
lv_obj_t* tile_images[kNodeInfoTileCount]{};
|
||||
lv_obj_t* info_labels[kNodeInfoInfoLineCount]{};
|
||||
::ui::widgets::map::Widgets map_viewport{};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user