mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 08:50:30 +00:00
feat: Modernize map selection and tile cache
This commit is contained in:
@@ -252,9 +252,15 @@ class TileDownloadService {
|
||||
return TileFailed(tile, 'HTTP ${response.statusCode}');
|
||||
}
|
||||
|
||||
// Store tile (PNG → AVIF conversion happens inside cache service)
|
||||
await _cache.putTile(
|
||||
styleHash, tile.z, tile.x, tile.y, response.bodyBytes);
|
||||
styleHash,
|
||||
tile.z,
|
||||
tile.x,
|
||||
tile.y,
|
||||
response.bodyBytes,
|
||||
contentType: response.headers['content-type'],
|
||||
sourceUrl: url,
|
||||
);
|
||||
|
||||
return TileDownloaded(
|
||||
north: bounds.north,
|
||||
|
||||
Reference in New Issue
Block a user