add backend server setup with environment configuration, tile caching, and bus stop fetching functionality

This commit is contained in:
ImBenji
2026-03-31 18:51:47 +01:00
parent 49fc04591b
commit 80ce6a9b6d
4 changed files with 761 additions and 268 deletions
@@ -64,6 +64,17 @@ class TilePyramidCache {
static bool isInFlight(int z, int x, int y) =>
_inFlight.contains(_TileCoord(z, x, y));
static bool contains(int z, int x, int y) =>
_cache.containsKey(_TileCoord(z, x, y));
static int get debugCacheCount => _cache.length;
static int get debugInFlightCount => _inFlight.length;
static int get debugQueueCount => _queue.length;
static double get debugApproxMegabytes => _approxBytes / (1024 * 1024);
// Queue a render for (z, x, y). No-op if already in flight.
// render() produces the image; onReady() is called after it's stored.
static void enqueue(
File diff suppressed because it is too large Load Diff