[Feature] Enhance the places deep linking support in the Wikipedia app to support coordinates #2
@ -1126,6 +1126,10 @@ class PlacesViewController: ViewController, UISearchBarDelegate, ArticlePopoverV
|
|||||||
viewMode = .map
|
viewMode = .map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc func centerMap(onLocation location: CLLocation) {
|
||||||
|
zoomAndPanMapView(toLocation: location)
|
||||||
|
}
|
||||||
|
|
||||||
func selectArticlePlace(_ articlePlace: ArticlePlace) {
|
func selectArticlePlace(_ articlePlace: ArticlePlace) {
|
||||||
mapView.selectAnnotation(articlePlace, animated: articlePlace.identifier != previouslySelectedArticlePlaceIdentifier)
|
mapView.selectAnnotation(articlePlace, animated: articlePlace.identifier != previouslySelectedArticlePlaceIdentifier)
|
||||||
previouslySelectedArticlePlaceIdentifier = articlePlace.identifier
|
previouslySelectedArticlePlaceIdentifier = articlePlace.identifier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user