iOS高德地图SDK(2D)  v5.6.0
MAOverlayRenderer Class Reference

该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现 More...

#import <MAOverlayRenderer.h>

Inheritance diagram for MAOverlayRenderer:
MAGroundOverlayRenderer MAOverlayPathRenderer MATileOverlayRenderer MACircleRenderer MAPolygonRenderer MAPolylineRenderer MAMultiColoredPolylineRenderer

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...
 

Detailed Description

该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现

Method Documentation

◆ canDrawMapRect:zoomScale:()

- (BOOL) canDrawMapRect: (MAMapRect mapRect
zoomScale: (MAZoomScale zoomScale 

判断overlay renderer是否可以绘制包含的内容

Parameters
mapRect该MAMapRect范围内需要绘制
zoomScale当前的缩放比例值
Returns
是否可以进行绘制

◆ drawMapRect:zoomScale:inContext:()

- (void) drawMapRect: (MAMapRect mapRect
zoomScale: (MAZoomScale zoomScale
inContext: (CGContextRef)  context 

绘制overlay renderer的内容

Parameters
mapRect该MAMapRect范围内需要更新
zoomScale当前的缩放比例值
context绘制操作的graphics context

◆ initWithOverlay:()

- (id) initWithOverlay: (id< MAOverlay >)  overlay

初始化并返回一个overlay renderer

Parameters
overlay关联的overlay对象
Returns
初始化成功则返回overlay renderer,否则返回nil

◆ mapPointForPoint:()

- (MAMapPoint) mapPointForPoint: (CGPoint)  point

将相对于receiver的本地坐标转化为MAMapPoint

Parameters
point要转化的相对于receiver的本地坐标
Returns
MAMapPoint

◆ mapRectForRect:()

- (MAMapRect) mapRectForRect: (CGRect)  rect

将相对于receiver的本地rect转化为MAMapRect

Parameters
rect要转化的相对于receiver的本地rect
Returns
MAMapRect

◆ pointForMapPoint:()

- (CGPoint) pointForMapPoint: (MAMapPoint mapPoint

将MAMapPoint转化为相对于receiver的本地坐标

Parameters
mapPoint要转化的MAMapPoint
Returns
相对于receiver的本地坐标

◆ rectForMapRect:()

- (CGRect) rectForMapRect: (MAMapRect mapRect

将MAMapRect转化为相对于receiver的本地rect

Parameters
mapRect要转化的MAMapRect
Returns
相对于receiver的本地rect

◆ setNeedsDisplay()

- (void) setNeedsDisplay

设置是否需要重新绘制

◆ setNeedsDisplayInMapRect:()

- (void) setNeedsDisplayInMapRect: (MAMapRect mapRect

重绘指定map rect内的内容

Parameters
mapRect该map rect范围内的内容需要重绘

◆ setNeedsDisplayInMapRect:zoomScale:()

- (void) setNeedsDisplayInMapRect: (MAMapRect mapRect
zoomScale: (MAZoomScale zoomScale 

重绘指定zoom scale下map rect内的内容

Parameters
mapRect该map rect范围内的内容需要重绘
zoomScale当前的缩放比例值

Property Documentation

◆ alpha

- (CGFloat) alpha
readwriteatomic

overlay的透明度

◆ contentScaleFactor

- (CGFloat) contentScaleFactor
readatomicassign

context的比例系数

◆ overlay

- (id<MAOverlay>) overlay
readnonatomicassign

关联的overlay对象


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。