Implemented the "centerMap(onLocation:)" function in the PlacesViewController view controller.
This commit is contained in:
parent
7b5ad459af
commit
f9c5cbb2c3
@ -1126,6 +1126,10 @@ class PlacesViewController: ViewController, UISearchBarDelegate, ArticlePopoverV
|
||||
viewMode = .map
|
||||
}
|
||||
|
||||
@objc func centerMap(onLocation location: CLLocation) {
|
||||
zoomAndPanMapView(toLocation: location)
|
||||
}
|
||||
|
||||
func selectArticlePlace(_ articlePlace: ArticlePlace) {
|
||||
mapView.selectAnnotation(articlePlace, animated: articlePlace.identifier != previouslySelectedArticlePlaceIdentifier)
|
||||
previouslySelectedArticlePlaceIdentifier = articlePlace.identifier
|
||||
|
Loading…
x
Reference in New Issue
Block a user