Skip to content

Commit

Permalink
feat(vectormap): Preload vectorized map
Browse files Browse the repository at this point in the history
  • Loading branch information
jgauchia committed Dec 4, 2024
1 parent e1475c2 commit 787a0a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 787a0a1

Please sign in to comment.