Map Doc  1.0
iOS-引擎SDK-开放平台
MBMapView类 参考

#import <MBMapView.h>

类 MBMapView 继承关系图:

构造函数

(CGFloat) - minScale
 
(CGFloat) - maxScale
 
(void) - reloadMapData
 
(void) - setClipRect:
 
(MBPoint- world2Screen:
 
(MBPoint- screen2World:
 
(MBNdsPoint- screen2WorldNds:
 
(MBPoint- world2ScreenNds:
 
(void) - loadStyleSheet:
 
(void) - drawView
 
(void) - setSatelliteImageSource:
 
(MBRect- worldRect2Screen:
 
(MBRect- screenRect2World:
 
(BOOL) - isPointVisible:
 
(BOOL) - isRectVisible:
 
(BOOL) - isRectVisibleNds:
 
(float) - unitWorld2Screen:
 
(float) - unitWorld2ScreenNds:
 
(float) - unitScreen2World:
 
(float) - unitScreen2WorldNds:
 
(NSString *) - getImagePostfix
 
(void) - fitWorldArea:
 
(void) - fitWorldArea:rect:
 
(float) - zoomLevel2Scale:
 
(NSInteger) - meter2Pixel:
 
(float) - getTraditionalMapScale
 
(void) - addAnnotation:
 
(void) - removeAnnotation:
 
(void) - removeAnnotations:
 
(void) - selectAnnotation:
 
(void) - addOverlay:
 
(void) - insertOverlayAtIndex:index:
 
(void) - removeOverlay:
 
(void) - removeOverlays:
 
(void) - bringOverlayToTop:
 
(void) - sendOverlayToBack:
 
(void) - exchangeOverylayIndices:r:
 
(void) - setZoomLevel:animated:
 
(void) - setScale:animated:
 
(void) - setHeading:animated:
 
(void) - beginAnimations
 
(void) - cancelAnimations
 
(void) - commitAnimations:type:
 
(void) - startZoom:
 
(void) - endZoom
 
(BOOL) - isInAnimation
 
(void) - setWorldCenter:animated:
 
(void) - setViewShiftX:y:
 
(void) - compactCache
 
(void) - clearCache
 
(void) - switchToBackground
 
(void) - switchToForeground
 
(void) - setTiServerUrl:
 
(void) - setConfigType:values:num:
 
(void) - getConfigType:values:num:
 
(void) - setConfigType:enable:
 
(BOOL) - getConfigTypeEnable:
 
(void) - setDataUrlPrefix:urlPrefix:
 
(UIImage *) - screenshot
 
(BOOL) - isBuildingOpaque
 
(float) - getZoomLevelOf:
 
(void) - optionalGesture:enable:
 
(BOOL) - isOptionalGestureEnabled:
 
(NSInteger) - detachAllOverlays
 
(void) - detachOverlay:
 
(void) - detachAnnotation:
 
(NSInteger) - detachAllAnnotations
 
(UIImage *) - screenshotWithRect:dpiFactor:
 
(BOOL) - onTouchDown:touchIds:pos:
 
(void) - onTouchMove:touchIds:pos:
 
(void) - onTouchUp:touchIds:pos:
 
(void) - onTouchCancelled:touchIds:pos:
 
(void) - onTap:
 
(void) - resetTouch
 
(void) - onTouchClicked:
 
(void) - onTouchDoubleClicked:
 

类方法

(MBNdsPoint+ ndsPointFromMBPoint:
 
(MBPoint+ ndsPointToMBPoint:
 
(MBNdsPoint+ ndsPointFrom:
 
(CLLocationCoordinate2D) + ndsPointToXY:
 
(MBRect+ getFitRect:num:
 

属性

MBSdkAuthError authErrorType
 
MBPoint worldCenter
 
MBNdsPoint centerNds
 
MBRect boundArea
 
float zoomLevel
 
float scale
 
float elevation
 
float heading
 
float viewShift
 
MBPoint centerOffset
 
MBRect viewport
 
float fovy
 
MBRect worldRect
 
MBRect worldRectNds
 
MBPoint shiftXY
 
BOOL nightMode
 
NSArray * annotations
 
NSArray * overlays
 
BOOL suspendDisplay
 
id< MBMapViewDelegate > delegate
 
NSString * styleClass
 
MBDataPreference dataPreference
 
BOOL enableBackground
 
BOOL enableBasicMap
 
BOOL enableSatelliteMap
 
BOOL enableTrafficEvent
 
BOOL enableBuilding
 
BOOL enableTmc
 
BOOL enableUpdateTmc
 
float dpiFactor
 
MBRenderQuality renderQuality
 
MBMapStatemapState
 
MBRangeF zoomLevelRange
 
int tmcRefreshInterval
 
BOOL enableUserRasterMap
 
float highestBuildingZoom
 
BOOL highlightTmc
 

函数文档

◆ addAnnotation:()

- (void) addAnnotation: (MBAnnotation *)  annotation

添加Annotation到MapRenderer对象

参数
annotation标注

◆ addOverlay:()

- (void) addOverlay: (MBOverlay *)  overlay

添加Overlay到MapRenderer对象 注意:调用addOverlay之后,会将Native的资源托管给MapRenderer 此时如果要删除相应的Overlay对象,那么应该调用MapRenderer#removeOverlay(Overlay)来清理删除对象 删除后的对象将不再可用,客户端需手动将对应的Java对象置空。

参数
overlay

◆ beginAnimations()

- (void) beginAnimations

开始动画

◆ bringOverlayToTop:()

- (void) bringOverlayToTop: (MBOverlay *)  overlay

将指定的Overlay提到所有Overlay最顶端

参数
overlay待操作Overlay

◆ cancelAnimations()

- (void) cancelAnimations

取消动画

◆ clearCache()

- (void) clearCache

建议当系统内存资源紧缺时使用此函数清理释放内存

◆ commitAnimations:type:()

- (void) commitAnimations: (int)  duration
type: (MBAnimationType type 

提交动画

参数
duration秒数
type动画类型

◆ compactCache()

- (void) compactCache

建议在程序切到后台或者接收到操作系统内存紧缺的信号 时使用此函数精简内存使用

◆ detachAllAnnotations()

- (NSInteger) detachAllAnnotations

◆ detachAllOverlays()

- (NSInteger) detachAllOverlays

◆ detachAnnotation:()

- (void) detachAnnotation: (MBAnnotation *)  annotation

◆ detachOverlay:()

- (void) detachOverlay: (MBOverlay *)  overlay

◆ drawView()

- (void) drawView

◆ endZoom()

- (void) endZoom

结束连续动画

◆ exchangeOverylayIndices:r:()

- (void) exchangeOverylayIndices: (MBOverlay *)  l
r: (MBOverlay *)  r 

交换两个Overlay的层次顺序

参数
l图层
r图层

◆ fitWorldArea:()

- (void) fitWorldArea: (MBRect area

Set the world center and scale, so that the specified world area is totally shown in screen. Equal to MBMapView fitWorldArea:rect:.

参数
areaworld coordinate
自从
4.9.x

◆ fitWorldArea:rect:()

- (void) fitWorldArea: (MBRect area
rect: (CGRect)  rect 

Set the world center and scale, so that the specified world area is totally shown in specified screen rectangle.

参数
areaworld coordinate
rectscreen coordinate
自从
4.9.x

◆ getConfigType:values:num:()

- (void) getConfigType: (MBRenderConfig type
values: (int *)  values
num: (NSInteger)  num 

◆ getConfigTypeEnable:()

- (BOOL) getConfigTypeEnable: (MBRenderConfig type

◆ getFitRect:num:()

+ (MBRect) getFitRect: (MBPoint *)  points
num: (NSInteger)  poiNum 

根据传入点得到包含这些点的包络盒

参数
points点数组
poiNum点数组个数
返回
包含所有点的包络盒
自从
5.0.x

◆ getImagePostfix()

- (NSString *) getImagePostfix

获取地图使用的图片的后缀,如@2x

◆ getTraditionalMapScale()

- (float) getTraditionalMapScale

A shortcut of calculating current map scale in the traditional sense in geography, i.e. the value of x in scale-expression "1:x" of traditional map on paper. It means the length in real world which are represented by a length of 1 unit in the map view. It is the 100 times of the value, in meter, typically annotated on a 1cm long map scale line. Given the dpiFactor of this MBMapView is set as the device's DPI divided by 160 (i.e. REFERENCE_DPI), this value equals to: 1.0f * (dpiFactor*REFERENCE_DPI) / 50.0f * (scale / dpiFactor) * (100/2.54f) = 125.984 * scale; (Note REFERENCE_DPI is now 160)

返回
traditional map scale
自从
5.0.x

◆ getZoomLevelOf:()

- (float) getZoomLevelOf: (MBLevelCase levelCase

不同案例下的缩放级别,不论新老数据,zoom_maxIndoor > zoom_maxMap > zoom_lowestProvince > zoom_lowestWorld > zoom_highest. 其中 zoom_maxMap 对于老数据 14,新数据 16,新老数据下的 zoom_highest 为 0

参数
levelCase案例
返回
缩放级别

◆ insertOverlayAtIndex:index:()

- (void) insertOverlayAtIndex: (MBOverlay *)  overlay
index: (NSInteger)  index 

在指定层次插入Overlay,不同层次会出现压盖关系

参数
overlay待插入的Overlay
index插入位置

◆ isBuildingOpaque()

- (BOOL) isBuildingOpaque

建筑物是否透明,默认 false

返回
true 透明,false 不透明

◆ isInAnimation()

- (BOOL) isInAnimation

是否在动画中

返回
YES正在动画,NO不在动画。

◆ isOptionalGestureEnabled:()

- (BOOL) isOptionalGestureEnabled: (MBOptionalGesture gesture

Default value: OptionalGesture_singleTouchZoom - true.

参数
gesture手势类型
返回
YES 识别该类型手势
自从
5.0.x

◆ isPointVisible:()

- (BOOL) isPointVisible: (MBPoint pos

判断指定的点是否在地图的可见范围内

参数
pos判断的点
返回
可见则返回YES,否则返回NO

◆ isRectVisible:()

- (BOOL) isRectVisible: (MBRect rect

判断指定的矩形是否在地图的可见范围内

参数
rect欲判断的矩形
返回
可见则返回YES,否则返回NO

◆ isRectVisibleNds:()

- (BOOL) isRectVisibleNds: (MBRect rect

◆ loadStyleSheet:()

- (void) loadStyleSheet: (NSString *)  filename

加载样式

参数
filename样式文件名臣
自从
4.10.x

◆ maxScale()

- (CGFloat) maxScale

支持的最大比例尺

◆ meter2Pixel:()

- (NSInteger) meter2Pixel: (int)  meter

A shortcut to calculate the scale length to show to user. It's equal to: (int)((float)lenInMeter / (float)getScale() * getDpiFactor() * 50.0f) Usually when you want to use this function, getTraditionalMapScale will be a better choice. So it'll be deprecated in future.

参数
meter
返回
pixel
自从
5.0.x

◆ minScale()

- (CGFloat) minScale

支持的最小比例尺

◆ ndsPointFrom:()

+ (MBNdsPoint) ndsPointFrom: (CLLocationCoordinate2D)  location

苹果API对象转化成地图需要的高精度坐标

参数
location位置坐标
返回
高精度坐标

◆ ndsPointFromMBPoint:()

+ (MBNdsPoint) ndsPointFromMBPoint: (MBPoint pos

MBPoint 坐标准换成高精度坐标

参数
pos普通坐标
返回
高精度坐标

◆ ndsPointToMBPoint:()

+ (MBPoint) ndsPointToMBPoint: (MBNdsPoint pos

MBNdsPoint 高精度坐标转换成普通坐标

参数
pos高精度坐标
返回
普通坐标

◆ ndsPointToXY:()

+ (CLLocationCoordinate2D) ndsPointToXY: (MBNdsPoint pos

高精度坐标转换成苹果API对象

参数
pos高精度坐标
返回
位置坐标

◆ onTap:()

- (void) onTap: (const MBPoint *)  pos

◆ onTouchCancelled:touchIds:pos:()

- (void) onTouchCancelled: (int)  touchCount
touchIds: (ssize_t *)  touchIds
pos: (const MBPoint *)  positions 

◆ onTouchClicked:()

- (void) onTouchClicked: (const MBPoint *)  pos

◆ onTouchDoubleClicked:()

- (void) onTouchDoubleClicked: (const MBPoint *)  pos

◆ onTouchDown:touchIds:pos:()

- (BOOL) onTouchDown: (int)  touchCount
touchIds: (ssize_t *)  touchIds
pos: (const MBPoint *)  positions 

◆ onTouchMove:touchIds:pos:()

- (void) onTouchMove: (int)  touchCount
touchIds: (ssize_t *)  touchIds
pos: (const MBPoint *)  positions 

◆ onTouchUp:touchIds:pos:()

- (void) onTouchUp: (int)  touchCount
touchIds: (ssize_t *)  touchIds
pos: (const MBPoint *)  positions 

◆ optionalGesture:enable:()

- (void) optionalGesture: (MBOptionalGesture gesture
enable: (BOOL)  enable 

手势类型的开启和关闭

参数
gesture手势类型
enableYES 表示开启识别
自从
5.0.x

◆ reloadMapData()

- (void) reloadMapData

刷新数据。使用新下载的离线地图数据,而无需重新启动程序。

◆ removeAnnotation:()

- (void) removeAnnotation: (MBAnnotation *)  annotation

移除Annotation

参数
annotation标注

◆ removeAnnotations:()

- (void) removeAnnotations: (NSArray *)  annotations

移除Annotations

参数
annotations标注集合

◆ removeOverlay:()

- (void) removeOverlay: (MBOverlay *)  overlay

移除MapRenderer中的Overlay对象,释放Overlay对应的Native资源 注意:此方法将释放Overlay对应的Native资源,此时Overlay已经失效,不可用,任何对其操作都将引起崩溃。

参数
overlay待插入的Overlay

◆ removeOverlays:()

- (void) removeOverlays: (NSArray *)  overlays

移除MapRenderer中的Overlay对象,释放Overlay对应的Native资源 注意:此方法将释放Overlay对应的Native资源,此时Overlay已经失效,不可用,任何对其操作都将引起崩溃。

参数
overlays删除的Overlay集合

◆ resetTouch()

- (void) resetTouch

◆ screen2World:()

- (MBPoint) screen2World: (MBPoint pt

coordinate converting methods

参数
ptscreen point
返回
world point
自从
5.0.x

◆ screen2WorldNds:()

- (MBNdsPoint) screen2WorldNds: (MBPoint pt

coordinate converting methods

参数
ptscreen point
返回
nds point
自从
5.0.x

◆ screenRect2World:()

- (MBRect) screenRect2World: (MBRect rc

将屏幕坐标矩形转换为对应的世界坐标矩形

参数
rc屏幕坐标矩形
返回
世界坐标矩形

◆ screenshot()

- (UIImage *) screenshot

屏幕截图功能

返回
UIImage对象。

◆ screenshotWithRect:dpiFactor:()

- (UIImage *) screenshotWithRect: (MBRect rect
dpiFactor: (float)  dpi 

◆ selectAnnotation:()

- (void) selectAnnotation: (MBAnnotation *)  annotation

设置选中地图中指定的Annotation

参数
annotation待选中的Annotation标注

◆ sendOverlayToBack:()

- (void) sendOverlayToBack: (MBOverlay *)  overlay

将指定的Overlay放入所有Overlay最下方

参数
overlay待操作Overlay

◆ setClipRect:()

- (void) setClipRect: (MBRect clipRect

设置裁剪区域;若不设置,viewport默认指定了裁剪范围

◆ setConfigType:enable:()

- (void) setConfigType: (MBRenderConfig type
enable: (BOOL)  enable 

Set/Get configurable parameters of boolean type. The meaning of value for possible types at present:

  • RenderConfig_orderAnnotDynamically: Whether to increase zLevel of an annotation for ever after it is clicked. Default: false.
参数
typeMBRenderConfig
enableenable or not
自从
5.0.x

◆ setConfigType:values:num:()

- (void) setConfigType: (MBRenderConfig type
values: (int *)  values
num: (NSInteger)  num 

Set/Get configurable parameters of integer types. The meaning of values for possible types at present:

  • RenderConfig_maxCustomIconSize: {width, height}: max size of the custom icon Default value: {512,512} for devices with screen DPI <400, {1024,1024} otherwise.
参数
typeThe number of configure values in values.
valueswidth,height
numnumber of values
自从
5.0.x

◆ setDataUrlPrefix:urlPrefix:()

- (void) setDataUrlPrefix: (MBUrlType type
urlPrefix: (NSString *)  url 

设置数据URL前缀,主要用于请求在线数据

参数
typeurl类型
urlurl

◆ setHeading:animated:()

- (void) setHeading: (CGFloat)  heading
animated: (BOOL)  animated 

设置地图的朝向

参数
heading方向角,正北为0,取值范围是[0, 360)
animated是否使用动画效果
注解
如果开启默认动画,则动画时长0.7s,这时如果在第一个切换动画前继续调用该函数,第二次的设置可能失败

◆ setSatelliteImageSource:()

- (void) setSatelliteImageSource: (MBSatelliteImageSource dataSource

设置卫星图资源

参数
dataSource卫星图资源

◆ setScale:animated:()

- (void) setScale: (CGFloat)  scale
animated: (BOOL)  animated 

设置地图比例

参数
scale缩放比例
animated是否使用动画效果

◆ setTiServerUrl:()

- (void) setTiServerUrl: (NSString *)  url

设置TI时间戳服务器地址

◆ setViewShiftX:y:()

- (void) setViewShiftX: (float)  rx
y: (float)  ry 

设置X和Y方向偏移比例,默认为0

参数
rxx轴偏移量
ryy轴偏移量
自从
4.9.x

◆ setWorldCenter:animated:()

- (void) setWorldCenter: (MBPoint worldCenter
animated: (BOOL)  animated 

设置地图中心点位置

参数
worldCenter欲设置的中心点
animated是否使用动画效果

◆ setZoomLevel:animated:()

- (void) setZoomLevel: (CGFloat)  zoomLevel
animated: (BOOL)  animated 

设置地图缩放级别

参数
zoomLevel缩放级别,取值范围[1.0, 14.0]
animated是否使用动画效果

◆ startZoom:()

- (void) startZoom: (BOOL)  toZoomIn

连续动画

参数
toZoomInYES,连续ZoomIn

◆ switchToBackground()

- (void) switchToBackground

◆ switchToForeground()

- (void) switchToForeground

◆ unitScreen2World:()

- (float) unitScreen2World: (float)  screenUnit

◆ unitScreen2WorldNds:()

- (float) unitScreen2WorldNds: (float)  screenUnit

◆ unitWorld2Screen:()

- (float) unitWorld2Screen: (float)  worldUnit

◆ unitWorld2ScreenNds:()

- (float) unitWorld2ScreenNds: (float)  worldUnit

◆ world2Screen:()

- (MBPoint) world2Screen: (MBPoint pt

将世界坐标转换为对应的屏幕坐标

参数
pt世界坐标
返回
屏幕坐标

◆ world2ScreenNds:()

- (MBPoint) world2ScreenNds: (MBNdsPoint pt

◆ worldRect2Screen:()

- (MBRect) worldRect2Screen: (MBRect rc

将世界坐标矩形转换为对应的屏幕坐标矩形

参数
rc世界坐标矩形
返回
屏幕坐标矩形

◆ zoomLevel2Scale:()

- (float) zoomLevel2Scale: (float)  zoomLevel

A facility to get the scale value of specified zoom level. The returned value depends on whether the map data in use is of old- or new- format.

参数
zoomLevelShould be in [getZoomLevelOf(LevelCase_highest), getZoomLevelOf(LevelCase_maxIndoor)]. Values out of it will be truncated into it in this function.
返回
scale
自从
5.0.x

属性说明

◆ annotations

- (NSArray*) annotations
readnonatomiccopy

标注集合

◆ authErrorType

- (MBSdkAuthError) authErrorType
readnonatomicassign

授权判断

◆ boundArea

- (MBRect) boundArea
readwritenonatomicassign

区域范围

自从
4.9.x

◆ centerNds

- (MBNdsPoint) centerNds
readwritenonatomicassign

当前地图中心点经纬度坐标,Nds表示形式

◆ centerOffset

- (MBPoint) centerOffset
readwritenonatomicassign

中心点偏移

◆ dataPreference

- (MBDataPreference) dataPreference
readwritenonatomicassign

设置地图的显示方式(自动,在线,离线)。

◆ delegate

- (id<MBMapViewDelegate>) delegate
readwritenonatomicweak

代理

◆ dpiFactor

- (float) dpiFactor
readwritenonatomicassign

获取屏幕DPI大小

◆ elevation

- (float) elevation
readwritenonatomicassign

仰角角度,单位:度,范围:(MIN_ELEVATION, 90],不同比例尺的仰角范围是不同的,但上限相同,比例尺越小,仰角范围的最小值越小

◆ enableBackground

- (BOOL) enableBackground
readwritenonatomicassign

设置地图渲染时是否清屏,默认:清屏

◆ enableBasicMap

- (BOOL) enableBasicMap
readwritenonatomicassign

开启/关闭地图底图,默认开启

◆ enableBuilding

- (BOOL) enableBuilding
readwritenonatomicassign

enableBuilding

是否显示建筑,默认true值

◆ enableSatelliteMap

- (BOOL) enableSatelliteMap
readwritenonatomicassign

开启/关闭卫星图

◆ enableTmc

- (BOOL) enableTmc
readwritenonatomicassign

是否显示TMC,默认不显示,如果为YES表示打开TMC,否则为关闭TMC

◆ enableTrafficEvent

- (BOOL) enableTrafficEvent
readwritenonatomicassign

开启/关闭交通事件

◆ enableUpdateTmc

- (BOOL) enableUpdateTmc
readwritenonatomicassign

是否打开 TMC 更新

◆ enableUserRasterMap

- (BOOL) enableUserRasterMap
readwritenonatomicassign

是否打开室内图,默认 false

◆ fovy

- (float) fovy
readwritenonatomicassign

广角,默认30,范围【15,75】

◆ heading

- (float) heading
readwritenonatomicassign

地图的朝向,方向角,正北为0,取值范围是[0, 360)

◆ highestBuildingZoom

- (float) highestBuildingZoom
readwritenonatomicassign

最高的建筑缩放比例,默认 3.0

◆ highlightTmc

- (BOOL) highlightTmc
readwritenonatomicassign

Tmc 高亮模式,如果设置成 True,该模式下基础地图的元素减少,同时让 Tmc 高亮,客户端同时需要 self.enableTmc = True,必要时候可以打开夜间模式增强效果。默认 False。[废弃,改用配置文件配置]

◆ mapState

- (MBMapState*) mapState
readwritenonatomicstrong

获取当前地图状态,包括摄像机状态,用于动态恢复地图状态

◆ nightMode

- (BOOL) nightMode
readwritenonatomicassign

nightMode

判断当前是否开启夜间模式 如果为true表示开启夜间模式,否则表示开启白天模式

◆ overlays

- (NSArray*) overlays
readnonatomiccopy

覆盖层集合

◆ renderQuality

- (MBRenderQuality) renderQuality
readwritenonatomicassign

获取当前渲染地图的质量

◆ scale

- (float) scale
readwritenonatomicassign

当前地图绘图标尺,会触发didChanged

◆ shiftXY

- (MBPoint) shiftXY
readnonatomicassign

相当于中心点的比例

◆ styleClass

- (NSString*) styleClass
readwritenonatomiccopy

设置地图样式:客户端将默认 map3_style_sheet.json 文件放在APP的res目录下,系统自动读取,客户端也可以根据需要更改其中配置。MBMapView styleClass:;比如[MBMapView setStyleClass:"route.weaker"];等

◆ suspendDisplay

- (BOOL) suspendDisplay
readwritenonatomicassign

当前是否延迟显示状态

◆ tmcRefreshInterval

- (int) tmcRefreshInterval
readwritenonatomicassign

当前实时交通(TMC)数据刷新时间, 单位: ms。也就是如果要设置为10秒钟刷新,那么应该是10 * 1000。同理两分钟刷新就是2 * 60 * 1000

◆ viewport

- (MBRect) viewport
readwritenonatomicassign

可视范围

自从
4.9.x

◆ viewShift

- (float) viewShift
readwritenonatomicassign

当前屏幕的相对位置偏移,屏幕的相对位置,相当于百分比,范围:[-1.0, 1.0]

◆ worldCenter

- (MBPoint) worldCenter
readwritenonatomicassign

当前地图中心点经纬度坐标

◆ worldRect

- (MBRect) worldRect
readnonatomicassign

mapView覆盖的范围

◆ worldRectNds

- (MBRect) worldRectNds
readnonatomicassign

◆ zoomLevel

- (float) zoomLevel
readwritenonatomicassign

Set and get the zoom level. Bigger the level, more detailed the map. None-integer values are possible. The level ranges in the range returned by MBMapView zoomLevelRange. Note the MBMapView scale also changes this zoom level.

自从
4.9.x

◆ zoomLevelRange

- (MBRangeF) zoomLevelRange
readwritenonatomicassign

获取缩放等级范围,触发地图回调,该方法不能在 beginAnimations 和 commitAnimations 中使用。在老地图数据中的范围是[0,14],新数据是[0,16],可以使用 getZoomLevelOf 函数得到缩放大小


该类的文档由以下文件生成: