FMKBubbleView Class Reference

Inherits from UIView
Declared in FMKBubbleView.h
FMKBubbleView.m

Overview

自定义气泡

– initWithCustomView:atPoint:

初始化气泡视图

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

Parameters

customView

自定义控件

coord

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

Return Value

气泡对象

Discussion

初始化气泡视图

Declared In

FMKBubbleView.h

– coord

气泡所在的地图位置

- (FMKGeoCoord)coord

Discussion

气泡所在的地图位置

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

Declared In

FMKBubbleView.h

– addBubbleViewOnMapView:mapCoordZType:height:

添加气泡

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

Parameters

mapView

气泡所在的地图

zType

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

height

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

Discussion

添加气泡

Declared In

FMKBubbleView.h

– removeFromMap

删除气泡

- (void)removeFromMap

Discussion

删除气泡

Declared In

FMKBubbleView.h