iOS高德地图SDK(2D)  v5.6.0
MAOverlayRenderer.h
Go to the documentation of this file.
1 //
2 // MAOverlayRenderer.h
3 // MAMapKit
4 //
5 // Created by AutoNavi.
6 // Copyright (c) 2013年 Amap. All rights reserved.
7 //
8 
9 #import "MAGeometry.h"
10 #import "MAOverlay.h"
11 
13 @interface MAOverlayRenderer : NSObject
14 
16 @property (nonatomic, readonly) id <MAOverlay> overlay;
17 
19 @property CGFloat alpha;
20 
22 @property (readonly) CGFloat contentScaleFactor;
23 
29 - (id)initWithOverlay:(id <MAOverlay>)overlay;
30 
36 - (CGPoint)pointForMapPoint:(MAMapPoint)mapPoint;
37 
43 - (MAMapPoint)mapPointForPoint:(CGPoint)point;
44 
50 - (CGRect)rectForMapRect:(MAMapRect)mapRect;
51 
57 - (MAMapRect)mapRectForRect:(CGRect)rect;
58 
65 - (BOOL)canDrawMapRect:(MAMapRect)mapRect zoomScale:(MAZoomScale)zoomScale;
66 
73 - (void)drawMapRect:(MAMapRect)mapRect zoomScale:(MAZoomScale)zoomScale inContext:(CGContextRef)context;
74 
78 - (void)setNeedsDisplay;
79 
84 - (void)setNeedsDisplayInMapRect:(MAMapRect)mapRect;
85 
91 - (void)setNeedsDisplayInMapRect:(MAMapRect)mapRect zoomScale:(MAZoomScale)zoomScale;
92 
93 
94 @end
该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现
Definition: MAOverlayRenderer.h:13
平面投影坐标结构定义
Definition: MAGeometry.h:38
void setNeedsDisplay()
设置是否需要重新绘制
CGFloat alpha
overlay的透明度
Definition: MAOverlayRenderer.h:19
id< MAOverlay > overlay
关联的overlay对象
Definition: MAOverlayRenderer.h:16
CGFloat contentScaleFactor
context的比例系数
Definition: MAOverlayRenderer.h:22
平面投影矩形结构定义
Definition: MAGeometry.h:52
double MAZoomScale
比例关系:MAZoomScale = Screen Point / MAMapPoint, 当MAZoomScale = 1时, 1 screen point = 1 MAMapPoint...
Definition: MAGeometry.h:59
© 2017 高德信息技术有限公司 版权所有,保留所有权利。