add backend server setup with environment configuration, tile caching, and bus stop fetching functionality
This commit is contained in:
@@ -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
Reference in New Issue
Block a user