Implemented the "centerMap(onLocation:)" function in the PlacesViewController view controller.

This commit is contained in:
Javier Cicchelli 2023-04-09 18:02:38 +02:00
parent 7b5ad459af
commit f9c5cbb2c3

View File

@ -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