iOS高德轻量版地图SDK  1.2.0
MAAnnotationView Class Reference

标注view More...

#import <MAAnnotationView.h>

Inheritance diagram for MAAnnotationView:
MAPinAnnotationView

Instance Methods

(id) - initWithAnnotation:
 初始化并返回一个annotation view More...
 
(void) - setNeedsUpdate
 当关联annotation/annotationView对象有更新时,调用此接口刷新. More...
 

Properties

NSInteger zIndex
 z值,大值在上,默认为0。类似CALayer的zPosition。 默认为100 More...
 
id< MAAnnotationannotation
 关联的annotation More...
 
UIImage * image
 显示的image More...
 
MACustomCalloutViewcustomCalloutView
 自定制弹出框view, 用于替换默认弹出框. 注意:此弹出框不会触发-(void)map: didAnnotationViewCalloutTapped: More...
 
CGPoint centerOffset
 annotationView的中心默认位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标 More...
 
CGPoint calloutOffset
 弹出框默认位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标 More...
 
BOOL enabled
 默认为YES,当为NO时view忽略触摸事件 More...
 
BOOL isVisible
 是否可见,默认为YES More...
 
BOOL selected
 设置是否处于选中状态, 外部如果要选中请使用map的selectAnnotation方法 More...
 
BOOL canShowCallout
 是否允许弹出callout More...
 
UIView * leftCalloutAccessoryView
 显示在默认弹出框左侧的view More...
 
UIView * rightCalloutAccessoryView
 显示在默认弹出框右侧的view More...
 
BOOL clickable
 是否支持点击,默认YES More...
 
BOOL draggable
 是否支持拖动,默认NO More...
 
MAAnnotationViewDragState dragState
 当前view的拖动状态 More...
 

Detailed Description

标注view

Method Documentation

◆ initWithAnnotation:

- (id) initWithAnnotation: (id< MAAnnotation >)  annotation

初始化并返回一个annotation view

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

◆ setNeedsUpdate

- (void) setNeedsUpdate

当关联annotation/annotationView对象有更新时,调用此接口刷新.

Property Documentation

◆ annotation

- (id<MAAnnotation>) annotation
readwritenonatomicstrong

关联的annotation

◆ calloutOffset

- (CGPoint) calloutOffset
readwritenonatomicassign

弹出框默认位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标

◆ canShowCallout

- (BOOL) canShowCallout
readwritenonatomicassign

是否允许弹出callout

◆ centerOffset

- (CGPoint) centerOffset
readwritenonatomicassign

annotationView的中心默认位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标

◆ clickable

- (BOOL) clickable
readwritenonatomicassign

是否支持点击,默认YES

◆ customCalloutView

- (MACustomCalloutView*) customCalloutView
readwritenonatomicstrong

自定制弹出框view, 用于替换默认弹出框. 注意:此弹出框不会触发-(void)map: didAnnotationViewCalloutTapped:

◆ draggable

- (BOOL) draggable
readwritenonatomicassign

是否支持拖动,默认NO

◆ dragState

- (MAAnnotationViewDragState) dragState
readwritenonatomicassign

当前view的拖动状态

◆ enabled

- (BOOL) enabled
readwritenonatomicassign

默认为YES,当为NO时view忽略触摸事件

◆ image

- (UIImage*) image
readwritenonatomicstrong

显示的image

◆ isVisible

- (BOOL) isVisible
readwritenonatomicassign

是否可见,默认为YES

◆ leftCalloutAccessoryView

- (UIView*) leftCalloutAccessoryView
readwritenonatomicstrong

显示在默认弹出框左侧的view

◆ rightCalloutAccessoryView

- (UIView*) rightCalloutAccessoryView
readwritenonatomicstrong

显示在默认弹出框右侧的view

◆ selected

- (BOOL) selected
readwritenonatomicassign

设置是否处于选中状态, 外部如果要选中请使用map的selectAnnotation方法

◆ zIndex

- (NSInteger) zIndex
readwritenonatomicassign

z值,大值在上,默认为0。类似CALayer的zPosition。 默认为100


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