MKMapView+ZoomLevel.h 577 B

123456789101112131415161718192021222324
  1. //
  2. // MKMapView+ZoomLevel.h
  3. // CommonLibrary
  4. //
  5. // Created by Alexi on 14-11-17.
  6. // Copyright (c) 2014年 Alexi Chen. All rights reserved.
  7. //
  8. #import <MapKit/MapKit.h>
  9. #define kMKMapViewMaxZoomLevel 19
  10. #define kMKMapViewMinZoomLevel 3
  11. @interface MKMapView (ZoomLevel)
  12. //@property (nonatomic, assign) NSUInteger zoomLevel;
  13. - (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate zoomLevel:(NSUInteger)zoomLevel animated:(BOOL)animated;
  14. - (void)setZoomLevel:(NSUInteger)zoomLevel animated:(BOOL)animated;
  15. - (void)setZoomLevel:(NSUInteger)zoomLevel;
  16. @end