JXMapView.h 669 B

123456789101112131415161718192021222324252627282930
  1. #import <UIKit/UIKit.h>
  2. #import <MapKit/MapKit.h>
  3. @protocol JXMapViewDelegate;
  4. @interface JXMapView : UIView
  5. @property (nonatomic,strong)MKMapView *mapView;
  6. @property (nonatomic,assign)double span;//default 40000
  7. - (id)initWithDelegate:(id<JXMapViewDelegate>)delegate;
  8. - (void)beginLoad;
  9. @end
  10. @protocol JXMapViewDelegate <NSObject>
  11. - (NSInteger)numbersWithCalloutViewForMapView;
  12. - (CLLocationCoordinate2D)coordinateForMapViewWithIndex:(NSInteger)index;
  13. - (UIView *)mapViewCalloutContentViewWithIndex:(NSInteger)index;
  14. - (UIImage *)baseMKAnnotationViewImageWithIndex:(NSInteger)index;
  15. @optional
  16. - (void)calloutViewDidSelectedWithIndex:(NSInteger)index;
  17. @end