Class Info |
|---|
@interface HOverlayView : NSObject Base class for overlay views, which provides APIs for drawing overlays. You are advised not to directly instantiate this class. Instead, you can use its subclasses HCircleView, HPolylineView, and HPolygonView for instantiation. |
Qualifier and Type | Method Name and Description |
|---|---|
void | updateOverlayPoints:pointCount: Updates coordinate points of the overlay. |
Qualifier and Type | Property Name and Description |
|---|---|
@property (nonatomic) BOOL | isClickable Indicates whether the overlay can be tapped. The default value is NO. |
@property (nonatomic) BOOL | isVisible Indicates whether the overlay is visible. The default value is YES. |
@property (nonatomic, strong, readonly) id <HOverlay> | overlay Data class corresponding to the view. |
@property (nonatomic, assign) int | zIndex Display sequence of the overlay, which determines the cover relationship between the overlay and other OverlayView objects. The default value is 0. An overlay with a larger value will cover that with a smaller value. The zIndex values of two overlays are compared only when they have the same displayLevel value. |
Method |
|---|
- (void)updateOverlayPoints:(CLLocationCoordinate2D *)points pointCount:(int)count Updates coordinate points of the overlay. |
Parameters
Name | Description |
|---|---|
points | Array of new coordinate points. (To update the center of a circle overlay, you only need to pass one coordinate point.) |
count | Number of coordinate points. |