¡@

Home 

2014/10/15 ¤U¤È 10:11:34

iphone Programming Glossary: mrect

Check whether zoom level changed

http://stackoverflow.com/questions/4359424/check-whether-zoom-level-changed

share improve this question It is pretty simple to calculate the zoom level. See the snippet below. You can get the mRect parameter from the visibleMapRect property on your MKMapView instance. NSUInteger zoomLevelForMapRect MKMapRect mRect withMapViewSizeInPixels.. mRect parameter from the visibleMapRect property on your MKMapView instance. NSUInteger zoomLevelForMapRect MKMapRect mRect withMapViewSizeInPixels CGSize viewSizeInPixels NSUInteger zoomLevel MAXIMUM_ZOOM MAXIMUM_ZOOM is 20 with MapKit MKZoomScale.. CGSize viewSizeInPixels NSUInteger zoomLevel MAXIMUM_ZOOM MAXIMUM_ZOOM is 20 with MapKit MKZoomScale zoomScale mRect.size.width viewSizeInPixels.width MKZoomScale is just a CGFloat typedef double zoomExponent log2 zoomScale zoomLevel NSUInteger..

Convert span value into meters on a mapview

http://stackoverflow.com/questions/5270485/convert-span-value-into-meters-on-a-mapview

following code but i get wrong results void mapView MKMapView mapView regionDidChangeAnimated BOOL animated MKMapRect mRect self.map.visibleMapRect MKMapPoint northMapPoint MKMapPointMake MKMapRectGetMidX mRect MKMapRectGetMinY mRect MKMapPoint.. BOOL animated MKMapRect mRect self.map.visibleMapRect MKMapPoint northMapPoint MKMapPointMake MKMapRectGetMidX mRect MKMapRectGetMinY mRect MKMapPoint southMapPoint MKMapPointMake MKMapRectGetMidX mRect MKMapRectGetMaxY mRect self.currentDist.. mRect self.map.visibleMapRect MKMapPoint northMapPoint MKMapPointMake MKMapRectGetMidX mRect MKMapRectGetMinY mRect MKMapPoint southMapPoint MKMapPointMake MKMapRectGetMidX mRect MKMapRectGetMaxY mRect self.currentDist MKMetersBetweenMapPoints..