You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
var key =_tileCoordsToKey(coords);
tile = _tiles[key];
if (null== tile) {
return;
}
Makes sure the loaded tile is still in _tilesHashMap which is maintained mainly by void _update(LatLng center) { and void _pruneTiles() { and void _abortLoading() { methods. Imagine a situation where you start loading 4 tiles forexample the center of a country, then you move the map to the country's boundary then the center tiles finished with loading so we are no more intersted of center tiles anymore. Anyway in #572 I implemented this behaviour from Leafet.
You are right about the problem so I'll investigate it.
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.
The text was updated successfully, but these errors were encountered: