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
Hello everyone! I noticed that each marker and cluster in the library is positioned separately, which makes each build stage quite expensive with a large number of markers, since with each build flutter has to rebuild the entire tree, without the ability to save some parts. I understand that most likely there are some reasons for this, perhaps it is due to animations. I want to know if there were versions in which all clusters with markers were positioned at each zoom entirely, and if not, should we add the ability to position all objects at once, to improve performance?
This will allow you not to recalculate the layer for each build, but to calculate the layers at each level in advance, and when changing the boundaries of the map, just move the entire layer. There is even a comment in the code about the performance of this place: https://github.com/lpongetti/flutter_map_marker_cluster/blob/master/lib/src/marker_cluster_layer.dart#L597
Thanks in advance for the great library and answer!
P.S.: I will gladly participate in the development of this improvement, or even make it myself, although it may take a lot of time, but I would like to know your opinion on this issue before that.
The text was updated successfully, but these errors were encountered:
Hello everyone! I noticed that each marker and cluster in the library is positioned separately, which makes each build stage quite expensive with a large number of markers, since with each build flutter has to rebuild the entire tree, without the ability to save some parts. I understand that most likely there are some reasons for this, perhaps it is due to animations. I want to know if there were versions in which all clusters with markers were positioned at each zoom entirely, and if not, should we add the ability to position all objects at once, to improve performance?
This will allow you not to recalculate the layer for each build, but to calculate the layers at each level in advance, and when changing the boundaries of the map, just move the entire layer. There is even a comment in the code about the performance of this place:
https://github.com/lpongetti/flutter_map_marker_cluster/blob/master/lib/src/marker_cluster_layer.dart#L597
Thanks in advance for the great library and answer!
P.S.: I will gladly participate in the development of this improvement, or even make it myself, although it may take a lot of time, but I would like to know your opinion on this issue before that.
The text was updated successfully, but these errors were encountered: