Skip to content

Commit 318f429

Browse files
Robbendebienejosxha
authored andcommitted
fix: CircleLayer not updating on pan (fleaflet#1735)
* Fix circle layer not updating on pan * Format code
1 parent 1fc4e4c commit 318f429

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/layer/circle_layer.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,6 @@ class CirclePainter extends CustomPainter {
157157
}
158158

159159
@override
160-
bool shouldRepaint(CirclePainter oldDelegate) => false;
160+
bool shouldRepaint(CirclePainter oldDelegate) =>
161+
circles != oldDelegate.circles || map != oldDelegate.map;
161162
}

0 commit comments

Comments
 (0)