Map Doc  1.0
iOS-引擎SDK-开放平台
MBMapView.h 文件参考
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "MBEngine.h"
#import "MBAnnotation.h"
#import "MBNaviBaseTypes.h"

浏览源代码.

class  MBMapView
 

枚举

enum  MBOptionalGesture { MBOptionalGesture_singleTouchZoom = 1, MBOptionalGesture_doubleTouchesElevate = 2, MBOptionalGesture_doubleTouchesRotate = 3 }
 
enum  MBRenderConfig {
  MBRenderConfig_maxCustomIconSize = 1, MBRenderConfig_orderAnnotDynamically = 2, MBRenderConfig_annotationDropInterval = 5, MBRenderConfig_annotationDropFrameNum = 6,
  MBRenderConfig_calloutTextAlignment = 7
}
 
enum  MBAnimationType { MBAnimationType_linear, MBAnimationType_flyOver }
 
enum  MBLevelCase {
  MBLevelCase_maxIndoor, MBLevelCase_maxMap, MBLevelCase_maxCountryMap, MBLevelCase_maxWorldMap,
  MBLevelCase_highest
}
 
enum  MBSatelliteImageSource {
  MBSatelliteImageSource_bing = 0, MBSatelliteImageSource_google = 1, MBSatelliteImageSource_googleTerrain = 2, MBSatelliteImageSource_greatWallMotor = 3,
  MBSatelliteImageSource_xinjiang = 4, MBSatelliteImageSource_max
}
 
enum  MBMapDataMode { MBMapDataMode_online, MBMapDataMode_offline, MBMapDataMode_both }
 
enum  MBUrlType { MBUrlType_basicMap = 0, MBUrlType_trafficTiles }
 
enum  MBRenderQuality { MBRenderQuality_low = 1, MBRenderQuality_medium = 2, MBRenderQuality_high = 3 }
 
enum  MBCameraSetting {
  MBCameraSetting_worldCenter = 1, MBCameraSetting_scale = 2, MBCameraSetting_heading = 4, MBCameraSetting_elevation = 8,
  MBCameraSetting_viewport = 16, MBCameraSetting_viewShift = 32, MBCameraSetting_dpiFactor = 64, MBCameraSetting_zoomLevel = 128
}
 
enum  MBMapMode { MapMode_normal = 0, MapMode_navigation = 1 }
 

函数

typedef NS_OPTIONS (NSUInteger, MBPOIType)
 

枚举类型说明

◆ MBAnimationType

地图动画类型

枚举值
MBAnimationType_linear 
MBAnimationType_flyOver 

◆ MBCameraSetting

相机设置

枚举值
MBCameraSetting_worldCenter 
MBCameraSetting_scale 
MBCameraSetting_heading 
MBCameraSetting_elevation 
MBCameraSetting_viewport 
MBCameraSetting_viewShift 
MBCameraSetting_dpiFactor 
MBCameraSetting_zoomLevel 

◆ MBLevelCase

缩放级别

枚举值
MBLevelCase_maxIndoor 
MBLevelCase_maxMap 
MBLevelCase_maxCountryMap 
MBLevelCase_maxWorldMap 
MBLevelCase_highest 

◆ MBMapDataMode

地图数据模式

枚举值
MBMapDataMode_online 
MBMapDataMode_offline 
MBMapDataMode_both 

◆ MBMapMode

enum MBMapMode

地图模式,判断是正常显示模式还是导航模式。

枚举值
MapMode_normal 
MapMode_navigation 

◆ MBOptionalGesture

枚举值
MBOptionalGesture_singleTouchZoom 
MBOptionalGesture_doubleTouchesElevate 
MBOptionalGesture_doubleTouchesRotate 

◆ MBRenderConfig

枚举值
MBRenderConfig_maxCustomIconSize 
MBRenderConfig_orderAnnotDynamically 
MBRenderConfig_annotationDropInterval 
MBRenderConfig_annotationDropFrameNum 
MBRenderConfig_calloutTextAlignment 

◆ MBRenderQuality

地图渲染质量

枚举值
MBRenderQuality_low 
MBRenderQuality_medium 
MBRenderQuality_high 

◆ MBSatelliteImageSource

卫星图资源

枚举值
MBSatelliteImageSource_bing 
MBSatelliteImageSource_google 
MBSatelliteImageSource_googleTerrain 
MBSatelliteImageSource_greatWallMotor 
MBSatelliteImageSource_xinjiang 
MBSatelliteImageSource_max 

◆ MBUrlType

enum MBUrlType

地图数据样式

枚举值
MBUrlType_basicMap 
MBUrlType_trafficTiles 

函数说明

◆ NS_OPTIONS()

typedef NS_OPTIONS ( NSUInteger  ,
MBPOIType   
)

POI类型

Drawn as the icon of the subway system of each city.

i.e. residential block

usually the historical buildings, such as each palace or gate in the Forbidden City.

4 well-known country-wide banks are drawn with their own logo: ICBC, ABC, BC, and CBC; others are drawn with the RMB icon. Note it does NOT include the Postal Savings Bank of China.

China Post office, usually meaning an office of Postal Savings Bank of China too.

such as A, B, C, D

all other kinds; will be drawn with a black dot.