Skip to content

Commit

Permalink
Avoid all cluster marker to be rebuild when navigating on map
Browse files Browse the repository at this point in the history
  • Loading branch information
starshipcoder committed Oct 2, 2023
1 parent e32941d commit 224ef7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/marker_cluster_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class _MarkerClusterLayerState extends State<MarkerClusterLayer>
} else {
layers.add(
MapWidget.static(
key: ObjectKey(clusterNode),
size: clusterNode.size(),
translate: StaticTranslate(_mapCalculator, clusterNode),
child: ClusterWidget(
Expand Down

0 comments on commit 224ef7d

Please sign in to comment.