开发者

How to get the Latitude and Longitude of RMMarker (Cloudmade iphone API)

开发者 https://www.devze.com 2022-12-13 06:48 出处:网络
How do i get the latitude and longitude of a RMMarker? i can\'t see any method in the headers. I would be very th开发者_StackOverflowankfull fur any help.If mapView is your RMMapView and marker is yo

How do i get the latitude and longitude of a RMMarker? i can't see any method in the headers.

I would be very th开发者_StackOverflowankfull fur any help.


If mapView is your RMMapView and marker is your RMMarker

CLLocationCoordinate2D loc = [mapView.markerManager latitudeLongitudeForMarker:marker];

NSLog(@"Latitude: %f", loc.latitude);
NSLog(@"Longitude: %f", loc.longitude);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号