iOS息屏导航渲染SDK 0.6.2
Loading...
Searching...
No Matches
AMCMapView.h
Go to the documentation of this file.
1//
2// AMCMapView.h
3// AMapNaviKit
4//
5// Created by lly on 2023/11/9.
6// Copyright © 2023 Amap. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11#import <CoreLocation/CLLocation.h>
12#import <AMapNaviKit/AMapNaviKit.h>
13
14NS_ASSUME_NONNULL_BEGIN
15
23
24@class AMCMapMarker;
25
26@interface AMCMapView : NSObject
27
30@property (nonatomic,assign) CLLocationCoordinate2D centerCoordinate;
31
34@property (nonatomic,assign) float zoomLevel;
35
38@property (nonatomic, assign) CGPoint screenAnchor;
39
42@property (nonatomic) CGFloat rotationDegree;
43
44//最高渲染帧率,默认为10帧,可设置范围[1,30]
45//Maximum rendering frame rate, default is 10 frames per second, adjustable range [1,30]
46@property (nonatomic,assign) NSUInteger maxRenderFrame;
47
48//背景色,默认为nil,即透明,切换地图mapType为非AMCMapTypeStandard类型时,也会自动切换默认背景色
49//Background color, default is nil, which means transparent. When switching the map mapType to a non AMCMapTypeStandard type, the default background color will also automatically switch
50@property (nonatomic,strong,nullable) UIColor *backgroundColor;
51
55@property (nonatomic,assign) AMCMapType mapType;
56
57//导航路线宽度,默认为10
58//Navigation route width, default is 10
59@property (nonatomic,assign) CGFloat naviRouteWidth;
60
61//自车图标,默认为空
62//Car icon, default to empty
63@property (nonatomic,strong,nullable) UIImage *carImage;
64
65//自车罗盘图标,默认为空
66//Self driving compass icon, default to empty
67@property (nonatomic,strong,nullable) UIImage *carCompassImage;
68
69//是否展示当前导航路线的路名,默认为YES (注意,即使开启后,"内部路"会被隐藏,且由于规划导航路线所在路段长度的限制,部分路名仍会隐藏)
70//Whether to display the road name of the current navigation route, default is YES (note that even if turned on, "internal roads" will be hidden, and due to the length limitation of the planned navigation route section, some road names will still be hidden)
71@property (nonatomic,assign) BOOL showNaviRouteName;
72
73//各种路况的颜色配置字典,如果需要设置,key必须为AMapNaviRouteStatus
74//Color configuration dictionary for various road conditions, if necessary, the key must be AMapNaviRouteStatus
75//类型对应的NSNumber值,且每种路况类型必须都要配置
76//The NSNumber value corresponding to the type must be configured for each road condition type
77@property (nonatomic,copy) NSDictionary<NSNumber *,UIColor*> *routeStatusColorDict;
78
84@property (nonatomic, assign) BOOL showSensorHeading;
85
89@property (nonatomic, assign) AMapNaviViewTrackingMode trackingMode;
90
98- (instancetype)initWithFrameSize:(CGSize)frameSize;
99
104- (UIImage *)renderImage;
105
109- (BOOL)addMarker:(AMCMapMarker *)marker;
110
114- (BOOL)removeMarker:(AMCMapMarker *)marker;
115
120
127- (CGPoint)convertCoordinateToMapScreenPoint:(CLLocationCoordinate2D)coord;
128
134- (CLLocationCoordinate2D)convertMapScreenPointToCoordinate:(CGPoint)screenPoint;
135
136@end
137
138@interface AMCMapView(NaviEleBike)<AMapNaviEleBikeManagerDelegate,AMapNaviEleBikeDataRepresentable>
139
140@end
141
142@interface AMCMapView(NaviDrive)<AMapNaviDriveManagerDelegate,AMapNaviDriveDataRepresentable>
143
144@end
145
146NS_ASSUME_NONNULL_END
AMCMapType
Definition AMCMapView.h:18
@ AMCMapTypeStandard
普通地图 Ordinary map
Definition AMCMapView.h:19
@ AMCMapTypeNaviDay
导航白天视图 Navigation daytime view
Definition AMCMapView.h:20
@ AMCMapTypeNaviNight
导航夜间视图 Navigation Night View
Definition AMCMapView.h:21
Definition AMCMapView.h:143
Definition AMCMapView.h:139
Definition AMCMapMarker.h:16
Definition AMCMapView.h:27
void clearMarkers()
UIColor * backgroundColor
Definition AMCMapView.h:50
AMCMapType mapType
Definition AMCMapView.h:55
UIImage * carImage
Definition AMCMapView.h:63
BOOL showNaviRouteName
Definition AMCMapView.h:71
NSUInteger maxRenderFrame
Definition AMCMapView.h:46
BOOL showSensorHeading
Definition AMCMapView.h:84
CGFloat naviRouteWidth
Definition AMCMapView.h:59
float zoomLevel
Definition AMCMapView.h:34
CGFloat rotationDegree
Definition AMCMapView.h:42
CGPoint screenAnchor
Definition AMCMapView.h:38
UIImage * renderImage()
UIImage * carCompassImage
Definition AMCMapView.h:67
CLLocationCoordinate2D centerCoordinate
Definition AMCMapView.h:30
AMapNaviViewTrackingMode trackingMode
Definition AMCMapView.h:89
NSDictionary< NSNumber *, UIColor * > * routeStatusColorDict
Definition AMCMapView.h:77
© 2024 高德信息技术有限公司版权所有,保留所有权利。