高德地图SDK(导航) V10.0.900
Loading...
Searching...
No Matches
MAPinAnnotationView Class Reference

提供类似大头针效果的annotation view More...

#import <MAPinAnnotationView.h>

Inheritance diagram for MAPinAnnotationView:
MAAnnotationView

Properties

MAPinAnnotationColor pinColor
 大头针的颜色
 
BOOL animatesDrop
 添加到地图时是否使用下落动画效果
 
- Properties inherited from MAAnnotationView
NSString * reuseIdentifier
 复用标识
 
NSInteger zIndex
 z值,大值在上,默认为0。类似CALayer的zPosition。zIndex属性只有在viewForAnnotation或者didAddAnnotationViews回调中设置有效。
 
id< MAAnnotationannotation
 关联的annotation
 
UIImage * image
 显示的image
 
UIImageView * imageView
 image所对应的UIImageView since 5.0.0
 
MACustomCalloutViewcustomCalloutView
 自定制弹出框view, 用于替换默认弹出框. 注意:此弹出框不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5.0.0
 
CGPoint centerOffset
 annotationView的中心默认位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标
 
CGPoint calloutOffset
 弹出框默认位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是屏幕坐标
 
BOOL enabled
 默认为YES,当为NO时view忽略触摸事件
 
BOOL highlighted
 是否高亮
 
BOOL selected
 设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
 
BOOL canShowCallout
 是否允许弹出callout
 
UIView * leftCalloutAccessoryView
 显示在默认弹出框左侧的view
 
UIView * rightCalloutAccessoryView
 显示在默认弹出框右侧的view
 
BOOL draggable
 是否支持拖动
 
MAAnnotationViewDragState dragState
 当前view的拖动状态
 
BOOL canAdjustPositon
 弹出默认弹出框时,是否允许地图调整到合适位置来显示弹出框,默认为YES
 

Additional Inherited Members

- Instance Methods inherited from MAAnnotationView
(void) - setSelected:animated:
 设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
 
(id) - initWithAnnotation:reuseIdentifier:
 初始化并返回一个annotation view
 
(void) - prepareForReuse
 当从reuse队列里取出时被调用, 子类重新必须调用super
 
(void) - setDragState:animated:
 设置view的拖动状态
 

Detailed Description

提供类似大头针效果的annotation view

Property Documentation

◆ animatesDrop

- (BOOL) animatesDrop
readwritenonatomicassign

添加到地图时是否使用下落动画效果

◆ pinColor

- (MAPinAnnotationColor) pinColor
readwritenonatomicassign

大头针的颜色


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