add TFL bus stop caching and fetching functionality, enhance map rendering with bus stop markers

This commit is contained in:
ImBenji
2026-03-31 14:14:45 +01:00
parent 31a91a054a
commit 618f3dd3ed
8 changed files with 1198 additions and 131 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import 'dart:convert';
import 'dart:typed_data';
import 'dart:ui';
@@ -316,7 +317,7 @@ class _PbfReader {
String readString() {
final bytes = readBytes();
return String.fromCharCodes(bytes);
return utf8.decode(bytes, allowMalformed: true);
}
double readFloat32() {
+1 -1
View File
@@ -28,7 +28,7 @@ class TilePyramidCache {
TilePyramidCache._();
static const int _maxEntries = 384;
static const int _maxApproxBytes = 256 * 1024 * 1024;
static const int _maxApproxBytes = 768 * 1024 * 1024;
// Cap concurrent renders to avoid saturating the main isolate with
// synchronous canvas recording. I/O (network/Hive) is still concurrent
File diff suppressed because it is too large Load Diff