Skip to content

Commit

Permalink
Fix: markers should not not reappear after clear
Browse files Browse the repository at this point in the history
After calling clusterkraf.clear() and zooming the map, all the previous
markers would reappear.
  • Loading branch information
syntaxyz committed Aug 2, 2013
1 parent f24a5da commit 1b40df8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/src/com/twotoasters/clusterkraf/Clusterkraf.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ public void clear() {
marker.remove();
}
}
currentMarkers = null;

currentClusters = null;
currentClusterPointsByMarker = null;
currentMarkers = null;
previousClusters = null;
previousMarkers = null;

points.clear();
}

Expand Down

0 comments on commit 1b40df8

Please sign in to comment.