You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.8 KiB

4 years ago
//
// MAAnnotation.h
// MAMapKit
//
// Created by yin cai on 11-12-13.
// Copyright (c) 2011年 Amap. All rights reserved.
//
#import "MAConfig.h"
#import <CoreGraphics/CoreGraphics.h>
#import <CoreLocation/CoreLocation.h>
#import <Foundation/Foundation.h>
#import "MAGeometry.h"
///该类为标注点的protocol,提供了标注类的基本信息函数
@protocol MAAnnotation <NSObject>
///标注view中心坐标
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@optional
///annotation标题
@property (nonatomic, copy) NSString *title;
///annotation副标题
@property (nonatomic, copy) NSString *subtitle;
/**
* @brief .
* @param newCoordinate
*/
- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
@end
/**
* . since 4.5.0
*/
@protocol MAAnimatableAnnotation <NSObject>
@required
/**
* @brief coordinate. since 4.5.0
* @param timeDelta
*/
- (void)step:(CGFloat)timeDelta;
/**
* @brief . annotation移出渲染执行过程since 4.5.0
* @return YES动画已完成NO没有完成
*/
- (BOOL)isAnimationFinished;
/**
* @brief . annotation加入渲染过程start且尚未finish的动画标注才会调用step方法since 6.0.0
* @return YES NO
*/
- (BOOL)shouldAnimationStart;
@optional
/**
* @brief annotationView的旋转角度0. since 4.5.0
* @return annotation的旋转角度
*/
- (CLLocationDirection)rotateDegree;
@end