iphone Programming Glossary: mkmaprectmake
iPhone: How to draw line between two points on MapKit? http://stackoverflow.com/questions/10598322/iphone-how-to-draw-line-between-two-points-on-mapkit point.y pointArr idx point self.routeLine MKPolyline polylineWithPoints pointArr count pointStrings.count _routeRect MKMapRectMake southWestPoint.x southWestPoint.y northEastPoint.x southWestPoint.x northEastPoint.y southWestPoint.y free pointArr Display..
How to display an image on a MKOverlayView? http://stackoverflow.com/questions/3891850/how-to-display-an-image-on-a-mkoverlayview MKMapPointForCoordinate lowerLeftCoordinate MKMapPoint upperRight MKMapPointForCoordinate upperRightCoordinate mapRect MKMapRectMake lowerLeft.x upperRight.y upperRight.x lowerLeft.x lowerLeft.y upperRight.y return self CLLocationCoordinate2D coordinate..
How do I create an image overlay and add to MKMapView? http://stackoverflow.com/questions/5283741/how-do-i-create-an-image-overlay-and-add-to-mkmapview return coord1 MKMapRect boundingMapRect MKMapPoint upperLeft MKMapPointForCoordinate self.coordinate MKMapRect bounds MKMapRectMake upperLeft.x upperLeft.y 2000 2000 return bounds @end Create an class that conforms to MKOverlayView MapOverlayView.h @interface..
MKMapRect zooms too much http://stackoverflow.com/questions/8465149/mkmaprect-zooms-too-much in mapView.annotations MKMapPoint annotationPoint MKMapPointForCoordinate annotation.coordinate MKMapRect pointRect MKMapRectMake annotationPoint.x annotationPoint.y 0 1000 if MKMapRectIsNull zoomRect zoomRect pointRect else zoomRect MKMapRectUnion.. YES if MKMapRectGetWidth zoomRect minMapWidth y minMapHeight 2 h minMapHeight 2 needChange YES if needChange zoomRect MKMapRectMake x y w h mapView setVisibleMapRect zoomRect animated YES EDITED double minMapHeight 250 choose some value that fit your needs..
|