From 787a0a1d0165fef8995e9c787c83a34536aa58cf Mon Sep 17 00:00:00 2001 From: jgauchia Date: Wed, 4 Dec 2024 19:34:39 +0100 Subject: [PATCH] feat(vectormap): Preload vectorized map --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index baff4734..48542fc8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -167,6 +167,15 @@ void setup() // Preload Map if (isVectorMap) { + getPosition(gpsData.latitude, gpsData.longitude); + tileSize = VECTOR_TILE_SIZE; + viewPort.setCenter(point); + + getMapBlocks(viewPort.bbox, memCache); + + generateVectorMap(viewPort, memCache, mapTempSprite); + + isPosMoved = false; } else {