diff --git a/lib/widgets/osm_element_layer/osm_element_marker.dart b/lib/widgets/osm_element_layer/osm_element_marker.dart index e8e14856..27b1ffe7 100644 --- a/lib/widgets/osm_element_layer/osm_element_marker.dart +++ b/lib/widgets/osm_element_layer/osm_element_marker.dart @@ -31,7 +31,11 @@ class _OsmElementMarkerState extends State with SingleTickerPr @override void initState() { super.initState(); - _controller = AnimationController(vsync: this, duration: const Duration(milliseconds: 600)); + _controller = AnimationController( + vsync: this, + value: widget.active ? 1 : 0, + duration: const Duration(milliseconds: 600), + ); _animation = CurvedAnimation( parent: _controller, curve: Curves.easeInOutCubicEmphasized,