FMGLMapViewDelegate

概述

地图核心委托,其定义了一系列功能函数,函数由SDK上层实现,并由FMGLMapView调用

函数

-mapView: regionWillChangeAnimated:

地图区域即将移动时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
animated BOOL 动画效果

RETURN VALUE

void

-mapViewRegionIsChanging:

地图区域移动中调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapView: regionDidChangeAnimated:

地图区域移动完成时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
animated BOOL 动画效果

RETURN VALUE

void

-mapViewWillStartLoadingMap:

地图即将加载时调用(无回调)

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapViewDidFinishLoadingMap:

地图加载完成时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapViewDidFailLoadingMap: withError:

地图加载错误时调用(用于catch error)

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
error NSError 错误对象

RETURN VALUE

void

-mapViewWillStartRenderingMap:

开始渲染地图时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapViewDidFinishRenderingMap: fullyRendered:

地图渲染完成时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
fullyRendered BOOL 是否渲染完成

RETURN VALUE

void

-mapViewWillStartRenderingFrame:

开始渲染地图时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapViewDidFinishRenderingFrame:fullyRendered:

地图渲染完成时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
fullyRendered BOOL 是否渲染完成

RETURN VALUE

void

-mapViewWillStartLocatingUser:

开始定位用户时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapViewDidStopLocatingUser:

结束定位用户时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象

RETURN VALUE

void

-mapView: didUpdateUserLocation:

更新完成用户位置时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
userLocation FMGLUserLocation 定位标注

RETURN VALUE

void

-mapView: didFailToLocateUserWithError:

用户位置定位失败时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
error NSError 错误信息

RETURN VALUE

void

-mapView: didChangeUserTrackingMode: animated:

用户定位模式改变是调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
mode FMGLUserTrackingMode 定位跟踪模式
animated BOOL 动画效果

RETURN VALUE

void

-mapView: viewForAnnotation:

返回自定义标注视图

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FFMGLAnnotation 标注

RETURN VALUE

FFMGLAnnotationView

-mapView: imageForAnnotation:

返回标注图片,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FFMGLAnnotation 标注

RETURN VALUE

FMGLAnnotationImage

-mapView: alphaForShapeAnnotation:

返回标注的阿尔法值,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FMGLShape 标注

RETURN VALUE

CGFloat

-mapView: strokeColorForShapeAnnotation:

返回标注的颜色,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FMGLShape 标注

RETURN VALUE

UIColor

-mapView:fillColorForPolygonAnnotation:

返回多边形的填充色,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FMGLPolygon 多边形

RETURN VALUE

UIColor

-mapView: lineWidthForPolylineAnnotation:

返回折线的线宽,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation FMGLPolyline 线覆盖物

RETURN VALUE

CGFloat

-mapView: annotationCanShowCallout:

标注是否能弹出气泡,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

BOOL

-mapView: calloutViewForAnnotation:

返回标注弹出气泡的图片,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

nullable UIView

-mapView: leftCalloutAccessoryViewForAnnotation:

返回标注左侧附属弹出画面,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

UIView

-mapView: rightCalloutAccessoryViewForAnnotation:

返回标注右侧附属弹出画面,用于自定义

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

UIView

-mapView: annotation: calloutAccessoryControlTapped:

点击标注附属控件时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注
control UIControl 控件

RETURN VALUE

UIView

-mapView: tapOnCalloutForAnnotation:

点击弹出气泡时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

void

-mapView:didSelectAnnotation:

标注被选中时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

void

-mapView: didDeselectAnnotation:

标注取消选中时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotation id 标注

RETURN VALUE

void

-mapView: didSelectAnnotationView:

标注view选中调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotationView FFMGLAnnotationView 标注view

RETURN VALUE

void

-mapView: didDeselectAnnotationView:

标注view取消选中调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotationView FFMGLAnnotationView 标注view

RETURN VALUE

void

-mapView: didDragAnnotationView: toCoordinate:

标注view被拖动到新位置的调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
annotationView FFMGLAnnotationView 标注view
coordinate CLLocationCoordinate2D 新坐标

RETURN VALUE

void

-mapView: singleTapOnMap:

地图被单击时调用

PARAMETERS

参数 类型 说明
mapView FFMGLMapView 地图对象
point CGPoint 点击坐标点

RETURN VALUE

void

results matching ""

    No results matching ""