Skip to content

Commit bf511e1

Browse files
committed
Show mapIndicator for redo search on map pan (#10)
1 parent bd23477 commit bf511e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Pod/Classes/MapViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ open class MapViewController: UIViewController {
241241
@objc fileprivate func redoSearch() {
242242
isRedoingSearch = true
243243
search?.cancel()
244+
mapIndicator.startAnimating()
244245
searchRegion = mapView.region
245246
}
246247

@@ -289,6 +290,7 @@ open class MapViewController: UIViewController {
289290
self.resultsViewController.mapItems = mapItems
290291
if self.isRedoingSearch {
291292
self.updateAnnotations()
293+
self.mapIndicator.stopAnimating()
292294
}
293295
self.search = nil
294296
}

0 commit comments

Comments
 (0)