[BUG] TileLayer.reset
internal listener never triggers
#1808
Labels
bug
This issue reports broken functionality or another error
P: 2 (soon™?)
S: core
Scoped to the core flutter_map functionality
Milestone
What is the bug?
I was trying to use reset to trigger reload one of my TileLayer, but I found that the subsciption of reset never be initialized.
In lib/src/layer/tile_layer.dart, the subscription of reset dosen't be triggered properly:
Because keyword "late" was used for _resetSub, and it never be accessed which means it will not be initialized. I tried to add one line "print(_resetSub);", then this subscription works. I think that might be bug.
How can we reproduce it?
TileLayer
in your Flutter application.reset
stream for theTileLayer
, exactly same logic with the flutter map demo app.Do you have a potential solution?
Access it somewhere might be able to solve this problem.
Platforms
macOS, web
Severity
Minimum: Allows normal functioning
The text was updated successfully, but these errors were encountered: