|
iOS息屏导航渲染SDK 0.6.2
|
#include <AMCMapView.h>
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 |
| - (BOOL) addMarker: | (AMCMapMarker *) | marker |
添加指定Marker Add specified marker
| - (void) clearMarkers |
移除所有Marker Remove all markers
| - (CGPoint) convertCoordinateToMapScreenPoint: | (CLLocationCoordinate2D) | coord |
经纬度坐标转屏幕坐标 Convert latitude and longitude coordinates to screen coordinates
| coord | 经纬度地理坐标 Latitude and longitude geographic coordinates |
| - (CLLocationCoordinate2D) convertMapScreenPointToCoordinate: | (CGPoint) | screenPoint |
屏幕坐标转经纬度坐标 Convert screen coordinates to latitude and longitude coordinates
| screenPoint | 屏幕坐标 screen coordinates |
| - (instancetype) initWithFrameSize: | (CGSize) | frameSize |
初始化CPU渲染的地图 Initialize CPU rendered map
| - (BOOL) removeMarker: | (AMCMapMarker *) | marker |
移除指定Marker Remove the specified marker
| - (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
|
readwritenonatomicstrong |
|
readwritenonatomicstrong |
|
readwritenonatomicstrong |
|
readwritenonatomicassign |
当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化 The center point of the current map, when this value is changed, the scale level of the map will not change
|
readwritenonatomicassign |
地图类型,默认为AMCMapTypeStandard Map type, default is AMCMapTypeStandard
|
readwritenonatomicassign |
|
readwritenonatomicassign |
|
readwritenonatomicassign |
设置地图旋转角度(逆时针为正向)单位为度,取值范围[0,360) Set the rotation angle of the map (counterclockwise is forward) in degrees, with a value range of [0360]
|
readwritenonatomiccopy |
|
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
|
readwritenonatomicassign |
|
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
|
readwritenonatomicassign |
导航界面跟随模式 Navigation interface following mode
|
readwritenonatomicassign |
缩放级别(默认为14级,可设置的范围为12-19) Zoom level (default is 14 levels, adjustable range is 12-19)