prepare method
Invalidates everything when the user moved, and drops entries of annotations that are no longer laid out.
Implementation
void prepare(Position deviceLocation, int annotationCount) {
if (deviceLocation.latitude != _latitude ||
deviceLocation.longitude != _longitude) {
_entries.clear();
_latitude = deviceLocation.latitude;
_longitude = deviceLocation.longitude;
} else if (_entries.length > 2 * annotationCount + 16) {
_entries.clear();
}
}