iOS息屏导航渲染SDK 0.6.2
Loading...
Searching...
No Matches
AMCMapView Class Reference

#include <AMCMapView.h>

Inheritance diagram for AMCMapView:

Instance Methods

(instancetype) - initWithFrameSize:
(UIImage *) - renderImage
(BOOL) - addMarker:
(BOOL) - removeMarker:
(void) - clearMarkers
(CGPoint) - convertCoordinateToMapScreenPoint:
(CLLocationCoordinate2D) - convertMapScreenPointToCoordinate:

Properties

CLLocationCoordinate2D centerCoordinate
float zoomLevel
CGPoint screenAnchor
CGFloat rotationDegree
NSUInteger maxRenderFrame
UIColor * backgroundColor
AMCMapType mapType
CGFloat naviRouteWidth
UIImage * carImage
UIImage * carCompassImage
BOOL showNaviRouteName
NSDictionary< NSNumber *, UIColor * > * routeStatusColorDict
BOOL showSensorHeading
AMapNaviViewTrackingMode trackingMode

Method Documentation

◆ addMarker:

- (BOOL) addMarker: (AMCMapMarker *) marker

添加指定Marker Add specified marker

Since
0.4.0

◆ clearMarkers

- (void) clearMarkers

移除所有Marker Remove all markers

Since
0.4.0

◆ convertCoordinateToMapScreenPoint:

- (CGPoint) convertCoordinateToMapScreenPoint: (CLLocationCoordinate2D) coord

经纬度坐标转屏幕坐标 Convert latitude and longitude coordinates to screen coordinates

Parameters
coord经纬度地理坐标 Latitude and longitude geographic coordinates
Returns
屏幕坐标 screen coordinates

◆ convertMapScreenPointToCoordinate:

- (CLLocationCoordinate2D) convertMapScreenPointToCoordinate: (CGPoint) screenPoint

屏幕坐标转经纬度坐标 Convert screen coordinates to latitude and longitude coordinates

Parameters
screenPoint屏幕坐标 screen coordinates
Returns
经纬度坐标 latitude and longitude coordinates

◆ initWithFrameSize:

- (instancetype) initWithFrameSize: (CGSize) frameSize

初始化CPU渲染的地图 Initialize CPU rendered map

  • Parameter frameSize: CPU地图的size Size of CPU map 注意:这里的frameSize都是手机逻辑像素,这里设置的frameSize和@selector(renderImage)方法得到的UIImage的size相同 Note: The frameSize here is the logical pixel of the phone, and the frameSize set here is the same as the size of the UIImage obtained by the @ selector (renderImage) method 推荐按照车机屏幕物理像素尺寸和投屏手机的屏幕scale参数来计算合适的frameSize Recommend calculating the appropriate frameSize based on the physical pixel size of the car screen and the screen scale parameter of the projection phone

◆ removeMarker:

- (BOOL) removeMarker: (AMCMapMarker *) marker

移除指定Marker Remove the specified marker

Since
0.4.0

◆ renderImage

- (UIImage *) renderImage

获取CPU地图渲染的图片 Obtain images rendered by CPU maps 注意:仅在导航态下,才能返回渲染图片,非导航态返回为nil Note: Only in navigation mode can rendered images be returned, and non navigation mode returns nil

Property Documentation

◆ backgroundColor

- (UIColor*) backgroundColor
readwritenonatomicstrong

◆ carCompassImage

- (UIImage*) carCompassImage
readwritenonatomicstrong

◆ carImage

- (UIImage*) carImage
readwritenonatomicstrong

◆ centerCoordinate

- (CLLocationCoordinate2D) centerCoordinate
readwritenonatomicassign

当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化 The center point of the current map, when this value is changed, the scale level of the map will not change

◆ mapType

- (AMCMapType) mapType
readwritenonatomicassign

地图类型,默认为AMCMapTypeStandard Map type, default is AMCMapTypeStandard

Since
0.2.0

◆ maxRenderFrame

- (NSUInteger) maxRenderFrame
readwritenonatomicassign

◆ naviRouteWidth

- (CGFloat) naviRouteWidth
readwritenonatomicassign

◆ rotationDegree

- (CGFloat) rotationDegree
readwritenonatomicassign

设置地图旋转角度(逆时针为正向)单位为度,取值范围[0,360) Set the rotation angle of the map (counterclockwise is forward) in degrees, with a value range of [0360]

◆ routeStatusColorDict

- (NSDictionary<NSNumber *,UIColor*>*) routeStatusColorDict
readwritenonatomiccopy

◆ screenAnchor

- (CGPoint) screenAnchor
readwritenonatomicassign

地图的视图锚点。坐标系归一化,(0, 0)为MAMapView左上角,(1, 1)为右下角。默认为(0.5, 0.5),即当前地图的视图中心 View anchor point of the map. Normalize the coordinate system, with (0,0) at the top left corner and (1,1) at the bottom right corner of MAMapView. The default is (0.5, 0.5), which is the view center of the current map

◆ showNaviRouteName

- (BOOL) showNaviRouteName
readwritenonatomicassign

◆ showSensorHeading

- (BOOL) showSensorHeading
readwritenonatomicassign

是否显示传感器方向信息,默认NO.设置为YES后,自车图标方向将显示为设备方向 Whether to display sensor direction information, default NO. When set to YES, the direction of the car icon will be displayed as the device direction 注意:该选项仅对电动车算路导航生效 Note: This option only applies to electric vehicle route calculation navigation

Since
0.3.0

◆ trackingMode

- (AMapNaviViewTrackingMode) trackingMode
readwritenonatomicassign

导航界面跟随模式 Navigation interface following mode

Since
0.4.0

◆ zoomLevel

- (float) zoomLevel
readwritenonatomicassign

缩放级别(默认为14级,可设置的范围为12-19) Zoom level (default is 14 levels, adjustable range is 12-19)


The documentation for this class was generated from the following file:
© 2024 高德信息技术有限公司版权所有,保留所有权利。