iOS高德地图SDK(2D)
v5.6.0
|
该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现 More...
#import <MAOverlayRenderer.h>
Instance Methods | |
(id) | - initWithOverlay: |
初始化并返回一个overlay renderer More... | |
(CGPoint) | - pointForMapPoint: |
将MAMapPoint转化为相对于receiver的本地坐标 More... | |
(MAMapPoint) | - mapPointForPoint: |
将相对于receiver的本地坐标转化为MAMapPoint More... | |
(CGRect) | - rectForMapRect: |
将MAMapRect转化为相对于receiver的本地rect More... | |
(MAMapRect) | - mapRectForRect: |
将相对于receiver的本地rect转化为MAMapRect More... | |
(BOOL) | - canDrawMapRect:zoomScale: |
判断overlay renderer是否可以绘制包含的内容 More... | |
(void) | - drawMapRect:zoomScale:inContext: |
绘制overlay renderer的内容 More... | |
(void) | - setNeedsDisplay |
设置是否需要重新绘制 More... | |
(void) | - setNeedsDisplayInMapRect: |
重绘指定map rect内的内容 More... | |
(void) | - setNeedsDisplayInMapRect:zoomScale: |
重绘指定zoom scale下map rect内的内容 More... | |
Properties | |
id< MAOverlay > | overlay |
关联的overlay对象 More... | |
CGFloat | alpha |
overlay的透明度 More... | |
CGFloat | contentScaleFactor |
context的比例系数 More... | |
该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现
- (BOOL) canDrawMapRect: | (MAMapRect) | mapRect | |
zoomScale: | (MAZoomScale) | zoomScale | |
判断overlay renderer是否可以绘制包含的内容
mapRect | 该MAMapRect范围内需要绘制 |
zoomScale | 当前的缩放比例值 |
- (void) drawMapRect: | (MAMapRect) | mapRect | |
zoomScale: | (MAZoomScale) | zoomScale | |
inContext: | (CGContextRef) | context | |
绘制overlay renderer的内容
mapRect | 该MAMapRect范围内需要更新 |
zoomScale | 当前的缩放比例值 |
context | 绘制操作的graphics context |
- (id) initWithOverlay: | (id< MAOverlay >) | overlay |
初始化并返回一个overlay renderer
overlay | 关联的overlay对象 |
- (MAMapPoint) mapPointForPoint: | (CGPoint) | point |
- (MAMapRect) mapRectForRect: | (CGRect) | rect |
- (CGPoint) pointForMapPoint: | (MAMapPoint) | mapPoint |
将MAMapPoint转化为相对于receiver的本地坐标
mapPoint | 要转化的MAMapPoint |
- (CGRect) rectForMapRect: | (MAMapRect) | mapRect |
将MAMapRect转化为相对于receiver的本地rect
mapRect | 要转化的MAMapRect |
- (void) setNeedsDisplay |
设置是否需要重新绘制
- (void) setNeedsDisplayInMapRect: | (MAMapRect) | mapRect |
重绘指定map rect内的内容
mapRect | 该map rect范围内的内容需要重绘 |
- (void) setNeedsDisplayInMapRect: | (MAMapRect) | mapRect | |
zoomScale: | (MAZoomScale) | zoomScale | |
重绘指定zoom scale下map rect内的内容
mapRect | 该map rect范围内的内容需要重绘 |
zoomScale | 当前的缩放比例值 |
|
readwriteatomic |
overlay的透明度
|
readatomicassign |
context的比例系数
|
readnonatomicassign |
关联的overlay对象