Steps to reproduce:
- Create two screens with FlutterMap (both maps should have identical center and zoom). Alternatively, you can run this example.
- Navigate from the first screen to the other.
- Tiles displayed on the first screen never appear on the second one.
- Panning in any direction will show tiles but the original area will remain unloaded.
This used to work on 0.8.2 but does not work since the changes to tile management on 0.9.0.
Removing the indicated line (965) from the _tileReady method in tile_layer.dart solves the issue.
var key = _tileCoordsToKey(coords);
tile = _tiles[key]; //Removing this solves the issue
if (null == tile) {
return;
}
I do not understand the package enough to know what purpose does keeping tiles in the _tiles hash map serve but so far I have not noticed any issues since deleting it so am quite curious about this.
Steps to reproduce:
This used to work on 0.8.2 but does not work since the changes to tile management on 0.9.0.
Removing the indicated line (965) from the _tileReady method in tile_layer.dart solves the issue.
I do not understand the package enough to know what purpose does keeping tiles in the _tiles hash map serve but so far I have not noticed any issues since deleting it so am quite curious about this.