#import #import @protocol JXMapViewDelegate; @interface JXMapView : UIView @property (nonatomic,strong)MKMapView *mapView; @property (nonatomic,assign)double span;//default 40000 - (id)initWithDelegate:(id)delegate; - (void)beginLoad; @end @protocol JXMapViewDelegate - (NSInteger)numbersWithCalloutViewForMapView; - (CLLocationCoordinate2D)coordinateForMapViewWithIndex:(NSInteger)index; - (UIView *)mapViewCalloutContentViewWithIndex:(NSInteger)index; - (UIImage *)baseMKAnnotationViewImageWithIndex:(NSInteger)index; @optional - (void)calloutViewDidSelectedWithIndex:(NSInteger)index; @end