mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-19 01:56:19 +00:00
fix(map): isolate ESP tile IO from UI loop
This commit is contained in:
@@ -22,6 +22,11 @@ void test_base_paths()
|
||||
ref.layer = ui::map_tiles::MapTileLayer::Satellite;
|
||||
assert(resolver.resolvePath(ref, path, sizeof(path)));
|
||||
assert(std::strcmp(path, "/sd/maps/base/satellite/12/656/1582.jpg") == 0);
|
||||
|
||||
ui::map_tiles::MapTileResolver sd_root_resolver("/");
|
||||
ref.layer = ui::map_tiles::MapTileLayer::Osm;
|
||||
assert(sd_root_resolver.resolvePath(ref, path, sizeof(path)));
|
||||
assert(std::strcmp(path, "/maps/base/osm/12/656/1582.png") == 0);
|
||||
}
|
||||
|
||||
void test_contour_paths()
|
||||
|
||||
Reference in New Issue
Block a user