Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update _markersToChange to exclude new markers
  • Loading branch information
KlausJokisuo committed Jul 28, 2019
commit cb7da58ce5251ec7c7ea3912e26f44a67afb8bd8
5 changes: 3 additions & 2 deletions packages/google_maps_flutter/lib/src/marker_updates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ class _MarkerUpdates {
.map(idToCurrentMarker)
.toSet();

final Set<Marker> _markersToChange =
currentMarkersSet.difference(previousMarkersSet);
final Set<Marker> _markersToChange = currentMarkersSet
.difference(previousMarkersSet)
..removeAll(_markersToAdd);

markersToAdd = _markersToAdd;
markerIdsToRemove = _markerIdsToRemove;
Expand Down