iOS高德轻量版地图SDK  1.2.0
MAAnnotation.h
Go to the documentation of this file.
1 //
2 // MAAnnotation.h
3 // MAMapKit
4 //
5 // Created by yin cai on 11-12-13.
6 // Copyright (c) 2011年 Amap. All rights reserved.
7 //
8 
9 #import <CoreGraphics/CoreGraphics.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import <Foundation/Foundation.h>
12 #import "MAGeometry.h"
13 
15 @protocol MAAnnotation <NSObject>
16 
18 @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
19 
20 @optional
21 
23 @property (nonatomic, copy) NSString *title;
24 
26 @property (nonatomic, copy) NSString *subtitle;
27 
32 - (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;
33 
34 @end
35 
39 @protocol MAAnimatableAnnotation <NSObject>
40 
41 @required
46 - (void)step:(CGFloat)timeDelta;
47 
52 - (BOOL)isAnimationFinished;
53 
58 - (BOOL)shouldAnimationStart;
59 
60 @optional
65 - (CLLocationDirection)rotateDegree;
66 
67 
68 @end
MAAnimatableAnnotation-p
Definition: MAAnnotation.h:39
-[MAAnimatableAnnotation-p shouldAnimationStart]
BOOL shouldAnimationStart()
动画是否可以开始. 通过此方法判断是否需要将动画annotation加入渲染过程,已经start且尚未finish的动画标注才会调用step方法。
MAGeometry.h
MAAnnotation-p
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: MAAnnotation.h:15
MAAnnotation-p::subtitle
NSString * subtitle
annotation副标题
Definition: MAAnnotation.h:26
MAAnnotation-p::title
NSString * title
annotation标题
Definition: MAAnnotation.h:23
-[MAAnimatableAnnotation-p isAnimationFinished]
BOOL isAnimationFinished()
动画是否已完成. 通过此方法判断是否需要将动画annotation移出渲染执行过程。
-[MAAnimatableAnnotation-p rotateDegree]
CLLocationDirection rotateDegree()
动画更新时调用此接口,获取annotationView的旋转角度,不实现默认为0.
MAAnnotation-p::coordinate
CLLocationCoordinate2D coordinate
标注view中心坐标
Definition: MAAnnotation.h:18
© 2020 高德信息技术有限公司版权所有,保留所有权利。