iphone - How do I retrieve the coordinates used to create an iOS MapKit MKPolygonView? -
I am using Apple Mappit to create a 3D mapping on a map
What I want should be a tap gesture identifier for getting coordinates from each polygon. Is this possible? If so, some sample code will be appreciated
You have MKPolygon Objects (either your own reference or collection of overlay MKMapView objects) And MKPolygon is MKMultiPoint subclass, which provides digits , pointsCount and getCoordinates is.
For example, if you use getCoordinates , you get an array of CLLocationCoordinate2D , which you can use to convert again to You can: toPointToView: To convert to a CGPint which you can refer to in the gesture identifier.
Comments
Post a Comment