文档管理中心
API参考地图服务iOS - Objective-CHMapKitClass SummaryHOverlayView

HOverlayView

展开

Class Info

@interface HOverlayView : NSObject

地图覆盖物视图的基类,提供了绘制覆盖物的接口,希望不要直接实例化,可以使用该类的子类HCircleViewHPolylineViewHPolygonView来实例化。

Public Method Summary

展开

Qualifier and Type

Method Name and Description

void

updateOverlayPoints:pointCount:

更新覆盖物的坐标点串。

Public Property Summary

展开

Qualifier and Type

Property name and Description

@property (nonatomic) BOOL

isClickable

可点击性,默认NO。

@property (nonatomic) BOOL

isVisible

可见性,默认YES。

@property (nonatomic, strong, readonly) id <HOverlay>

overlay

本view对应的数据类。

@property (nonatomic, assign) int

zIndex

覆盖物的显示顺序,决定了它与其它OverlayView的压盖关系,默认0。大值压盖小值,只有同displayLevel的OverlayView才会比较zIndex。

Public Methods

updateOverlayPoints:pointCount:

展开

Method

- (void)updateOverlayPoints:(CLLocationCoordinate2D *)points pointCount:(int)count

更新覆盖物的坐标点串。

Parameters

展开

Name

Description

points

新的坐标点串数组(更新圆形覆盖物中心点时传入一个坐标点数据即可)。

count

坐标点个数。

在 API参考 中进行搜索
请输入您想要搜索的关键词