logging for debug map-no-update-until-move after caching tiles

This commit is contained in:
stopflock
2025-08-10 23:47:23 -05:00
parent bea942940b
commit 330c9e064c
2 changed files with 6 additions and 1 deletions
@@ -42,6 +42,7 @@ class TileProviderWithCache extends TileProvider {
_tileCache[key] = Uint8List.fromList(bytes);
print('[TileProviderWithCache] Cached tile $key, bytes=${bytes.length}');
if (onTileCacheUpdated != null) {
print('[TileProviderWithCache] Calling onTileCacheUpdated for $key');
SchedulerBinding.instance.addPostFrameCallback((_) => onTileCacheUpdated!());
}
}