高德地图SDK(导航)
V7.7.0
|
#import <MAMapView.h>
Instance Methods | |
(void) | - setUserTrackingMode:animated: |
设置定位用户位置的模式 More... | |
(void) | - updateUserLocationRepresentation: |
设定UserLocationView样式。如果用户自定义了userlocation的annotationView,或者该annotationView还未添加到地图上,此方法将不起作用 More... | |
Properties | |
BOOL | showsUserLocation |
是否显示用户位置 More... | |
MAUserLocation * | userLocation |
当前的位置数据 More... | |
BOOL | customizeUserLocationAccuracyCircleRepresentation |
是否自定义用户位置精度圈(userLocationAccuracyCircle)对应的 view, 默认为 NO. 如果为YES: 会调用 - (MAOverlayRenderer *)mapView (MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay 若返回nil, 则不加载. 如果为NO : 会使用默认的样式. More... | |
MACircle * | userLocationAccuracyCircle |
用户位置精度圈 对应的overlay More... | |
MAUserTrackingMode | userTrackingMode |
定位用户位置的模式, 注意:在follow模式下,设置地图中心点、设置可见区域、滑动手势、选择annotation操作会取消follow模式,并触发 - (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated; More... | |
BOOL | userLocationVisible |
当前位置再地图中是否可见 More... | |
CLLocationDistance | distanceFilter |
设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动 More... | |
CLLocationAccuracy | desiredAccuracy |
设定定位精度。默认为kCLLocationAccuracyBest More... | |
CLLocationDegrees | headingFilter |
设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变 More... | |
BOOL | pausesLocationUpdatesAutomatically |
指定定位是否会被系统自动暂停 More... | |
BOOL | allowsBackgroundLocationUpdates |
是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。 设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常。 注意:定位必须在停止的状态下设置(showsUserLocation = NO),否则无效 More... | |
- (void) setUserTrackingMode: | (MAUserTrackingMode) | mode | |
animated: | (BOOL) | animated | |
- (void) updateUserLocationRepresentation: | (MAUserLocationRepresentation *) | representation |
设定UserLocationView样式。如果用户自定义了userlocation的annotationView,或者该annotationView还未添加到地图上,此方法将不起作用
representation | 样式信息对象 |
Extends class MAMapView.
|
readwritenonatomicassign |
是否允许后台定位。默认为NO。只在iOS 9.0之后起作用。
设置为YES的时候必须保证 Background Modes 中的 Location updates处于选中状态,否则会抛出异常。
注意:定位必须在停止的状态下设置(showsUserLocation = NO),否则无效
Extends class MAMapView.
|
readwritenonatomicassign |
是否自定义用户位置精度圈(userLocationAccuracyCircle)对应的 view, 默认为 NO.
如果为YES: 会调用 - (MAOverlayRenderer *)mapView (MAMapView *)mapView rendererForOverlay:(id <MAOverlay>)overlay 若返回nil, 则不加载.
如果为NO : 会使用默认的样式.
Extends class MAMapView.
|
readwritenonatomicassign |
设定定位精度。默认为kCLLocationAccuracyBest
Extends class MAMapView.
|
readwritenonatomicassign |
设定定位的最小更新距离。默认为kCLDistanceFilterNone,会提示任何移动
Extends class MAMapView.
|
readwritenonatomicassign |
设定最小更新角度。默认为1度,设定为kCLHeadingFilterNone会提示任何角度改变
Extends class MAMapView.
|
readwritenonatomicassign |
指定定位是否会被系统自动暂停
Extends class MAMapView.
|
readwritenonatomicassign |
是否显示用户位置
Extends class MAMapView.
|
readnonatomicassign |
当前的位置数据
Extends class MAMapView.
|
readnonatomicassign |
用户位置精度圈 对应的overlay
Extends class MAMapView.
|
readnonatomicassign |
当前位置再地图中是否可见
Extends class MAMapView.
|
readwritenonatomicassign |
定位用户位置的模式, 注意:在follow模式下,设置地图中心点、设置可见区域、滑动手势、选择annotation操作会取消follow模式,并触发 - (void)mapView:(MAMapView *)mapView didChangeUserTrackingMode:(MAUserTrackingMode)mode animated:(BOOL)animated;
Extends class MAMapView.