Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何获得 RMMarker 的纬度和经度?我在标题中看不到任何方法。
如果有任何帮助,我将不胜感激。
如果 mapView 是您的 RMMapView 并且标记是您的 RMMarker
CLLocationCoordinate2D loc = [mapView.markerManager latitudeLongitudeForMarker:marker]; NSLog(@"Latitude: %f", loc.latitude); NSLog(@"Longitude: %f", loc.longitude);