FMKBubbleView Class Reference

Inherits from UIView
Declared in FMKBubbleView.h

Overview

自定义气泡

  coord

气泡所在的地图位置

@property (nonatomic, assign) FMKGeoCoord coord

Discussion

重设该参数可更新气泡位置

Declared In

FMKBubbleView.h

– initWithCustomView:atPoint:

初始化气泡视图

- (instancetype)initWithCustomView:(UIView *)customView atPoint:(FMKGeoCoord)coord

Parameters

customView

自定义控件

coord

气泡添加到地图上的地图坐标

Return Value

气泡对象

Declared In

FMKBubbleView.h

– addBubbleViewOnMapView:mapCoordZType:height:

添加气泡

- (void)addBubbleViewOnMapView:(FMKMapView *)mapView mapCoordZType:(FMKMapCoordZType)zType height:(CGFloat)height

Parameters

mapView

气泡所在的地图

zType

气泡所在坐标的Z值 表示气泡在地面、模型、标注物等之上

height

自定义高度偏移量(屏幕像素高度)负值为屏幕上方移动

Declared In

FMKBubbleView.h

– removeFromMap

删除气泡

- (void)removeFromMap

Declared In

FMKBubbleView.h