mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-16 17:17:36 +02:00
logging for debug map-no-update-until-move after caching tiles
This commit is contained in:
@@ -271,7 +271,11 @@ class _MapViewState extends State<MapView> {
|
||||
TileLayer(
|
||||
tileProvider: TileProviderWithCache(
|
||||
onTileCacheUpdated: () {
|
||||
if (_debounceTileLayerUpdate != null) _debounceTileLayerUpdate!(() { if (mounted) setState(() {}); });
|
||||
print('[MapView] onTileCacheUpdated fired (tile loaded)');
|
||||
if (_debounceTileLayerUpdate != null) _debounceTileLayerUpdate!(() {
|
||||
print('[MapView] Running debounced setState due to tile cache update');
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
},
|
||||
),
|
||||
urlTemplate: 'unused-{z}-{x}-{y}',
|
||||
|
||||
Reference in New Issue
Block a user