-
-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] TileLayer.reset
internal listener never triggers
#1808
Comments
Hi @weiweiMT, |
TileLayer.reset
internal listener never triggers
@JaffaKetchup Thank you for your help! |
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: