mapkit

    -1熱度

    1回答

    您好我有幾個圖上的點上的服務器JSON格式的文件: [{"ID":"34","CompanyName":"Sruper","Latitude":"33.8886954","Longitude":"35.4911273","Location":"USA","Category":"Automobile "},{"ID":"47","CompanyName":"TechMe","Latitude":"3

    2熱度

    1回答

    我在繪製多段線時遇到了麻煩,我想我已經推斷它是iOS 11 beta 4的一個問題。昨天它使用相同的代碼工作,現在我已更新到beta 4,不要畫多段線。 剛剛在iOS 10.3模擬器上的Xcode 8以及iOS 11b4模擬器上的Xcode 9b4中進行了驗證。 代碼: import MapKit class ViewController: UIViewController, MKMapVie

    0熱度

    2回答

    我已經編寫了代碼來放下一個別針,然後在MapKitView上顯示它的方向,由於某種原因,該別針掉落,但方向不會顯示在地圖上。歡迎所有幫助,謝謝。 import UIKit import MapKit import CoreLocation class ViewController: UIViewController, CLLocationManagerDelegate, MKMapView

    2熱度

    1回答

    我用右上角的用戶跟蹤按鈕創建了一個地圖。我想知道如何在負載的情況下將狀態設置爲「followWithHeadlights」以使其跟隨用戶當前位置,就像您在GPS上使用的位置一樣? 負載電流行爲: Button current behaviour 期望的行爲上載: Button desired behaviour 代碼片段: func setUserTrackingButton() {

    0熱度

    1回答

    我一直在嘗試使用MapKit在swift中創建應用程序。我設法創建了多個註釋,但每次我嘗試將註釋放在另一個註釋附近時,它都不會顯示出來。這對於代碼來說並不是很大,因爲第二個註釋在我將其更改爲更遠的位置後就出現了。

    0熱度

    2回答

    我已創建自定義視圖這樣的: import UIKit import MapKit class MapViewController: UIViewController { var mapView: MKMapView! func mapTypeChanged(segControl: UISegmentedControl){ switch segControl

    0熱度

    1回答

    我通過CoreLocation & CLLocation得到當前位置。 在另一個UIViewController中,我想選擇MapKit上的一個位置,並從MapKit獲取經度和緯度。我搜查了很多,但是我發現了一些使用Objective-C的課程。 或者在Swift中有任何課程嗎? class CustomLocationVC: UIViewController, MKMapViewDelegate

    1熱度

    1回答

    我有三個MKPointAnnotation對象被添加到一個MKMapView完全相同的座標,他們每個給予一個獨特的標題。 MKPointAnnotation *a1 = [[MKPointAnnotation alloc] init]; a1.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a1.title =

    -1熱度

    1回答

    我正在iOS應用程序中實現Mapkit,以便根據用戶的位置顯示帖子給用戶,就像tinder那樣。我嘗試過一種基於用戶和帖子之間的座標計算距離的算法。但就時間而言,它似乎是一個非常昂貴的解決方案,它具有非常高的複雜性,我只是想問是否正確的做法或應該改變我的方法。謝謝。

    0熱度

    1回答

    我從Server接收對象數組中的Stores信息列表。下面是一個樣本 - "stores": [ { "name": 「Store 1」, "number": "5381", "country": "BELGIE", "latLng": [ 50.730614, 4.231847 ]