开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜