[英]IOS Swift remove Capitals from Google Maps
我正在用歐洲的首都建造測驗,地圖將移動到特定的國家,並且我不希望用戶滾動查看首都的名稱。 因此,基本上,我有2個需要幫助的選項:1.不允許用戶滾動2.從Google地圖隱藏所有首都或城市
這是代碼:
switch(randomNumber) {
case 1:
let latitude:Double = 45.943161
let longitude:Double = 24.966760000000022
let span = MKCoordinateSpanMake(25, 25)
let region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: latitude, longitude: longitude), span: span)
mapView.setRegion(region, animated: true)
let pinLocation: CLLocationCoordinate2D = CLLocationCoordinate2DMake(latitude, longitude)
let objectAnn = MKPointAnnotation()
objectAnn.coordinate = pinLocation
self.mapView.addAnnotation(objectAnn)
questionLabel.text = "Iceland"
button1.setTitle("Copenhagen", for: UIControlState.normal)
button2.setTitle("Reykiavik", for: UIControlState.normal)
button3.setTitle("Oslo", for: UIControlState.normal)
button4.setTitle("Ljubiana", for: UIControlState.normal)
correctAnswer = "2"
break
用戶交互的類似MapKit 問題
要刪除大寫字母,您可以嘗試使用MapKit的Apple文檔: showsPointsOfInterest
而且,您似乎正在使用Apple的MapKit,而不是Google Maps,只是在使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.