diff --git a/Apps/Wikipedia/Wikipedia/Code/PlacesViewController.swift b/Apps/Wikipedia/Wikipedia/Code/PlacesViewController.swift index c095c27..ff0b01d 100644 --- a/Apps/Wikipedia/Wikipedia/Code/PlacesViewController.swift +++ b/Apps/Wikipedia/Wikipedia/Code/PlacesViewController.swift @@ -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