added map style selection

This commit is contained in:
mverch67
2025-02-26 03:15:23 +01:00
parent 505944eeff
commit 98742f5742
7 changed files with 108 additions and 25 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ MapPanel::MapPanel(lv_obj_t *p, ITileService *s)
ILOG_DEBUG("panel size: %dx%d", widthPixel, heightPixel);
extern OSMTiles<lv_obj_t> *osm;
osm = OSMTiles<lv_obj_t>::create(MapTileSettings::getPrefix(),
[this](const char *name, void *img) -> bool { return service->load(name, img); });
osm = OSMTiles<lv_obj_t>::create([this](const char *name, void *img) -> bool { return service->load(name, img); });
center();
}