[Feature] Enhance the places deep linking support in the Wikipedia app to support coordinates #2

Merged
javier merged 5 commits from feature/places-deep-linking into main 2023-04-09 16:27:54 +00:00
Showing only changes of commit f9c5cbb2c3 - Show all commits

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