BMFMapOptions class

mapView属性集合

Constructors

BMFMapOptions({BMFMapType mapType: BMFMapType.Standard, BMFCoordinateBounds limitMapBounds, BMFPoint compassPosition, BMFCoordinate center, int zoomLevel, int minZoomLevel, int maxZoomLevel, double rotation, double overlooking, int minOverlooking, bool buildingsEnabled, bool showMapPoi: true, bool trafficEnabled, bool baiduHeatMapEnabled: false, bool gesturesEnabled, bool zoomEnabled, bool zoomEnabledWithTap, bool scrollEnabled, bool overlookEnabled, bool rotateEnabled, bool forceTouchEnabled: false, bool showMapScaleBar, BMFPoint mapScaleBarPosition, BMFLogoPosition logoPosition: BMFLogoPosition.LeftBottom, BMFCoordinateBounds visibleMapBounds, BMFEdgeInsets mapPadding, bool updateTargetScreenPtWhenMapPaddingChanged: true, bool changeWithTouchPointCenterEnabled: false, bool changeCenterWithDoubleTouchPointEnabled: true, bool baseIndoorMapEnabled, bool showIndoorMapPoi: true})
BMFMapOptions构造方法

Properties

baiduHeatMapEnabled ↔ bool
设定地图是否打开百度城市热力图图层(百度自有数据), [...]
read / write
baseIndoorMapEnabled ↔ bool
设定地图是否显示室内图(包含室内图标注),默认不显示
read / write
buildingsEnabled ↔ bool
设定地图是否现显示3D楼块效果
read / write
center ↔ BMFCoordinate
当前地图的中心点,改变该值时,地图的比例尺级别不会发生变化
read / write
changeCenterWithDoubleTouchPointEnabled ↔ bool
设定双击手势放大地图时,BMKMapView的放大效果的中心点。 [...]
read / write
changeWithTouchPointCenterEnabled ↔ bool
设定双指手势操作时,BMKMapView的旋转和缩放效果的中心点。 [...]
read / write
compassPosition ↔ BMFPoint
指南针的位置,设定坐标以BMKMapView左上角为原点,向右向下增长
read / write
forceTouchEnabled ↔ bool
设定地图是否回调force touch事件,默认为false,仅适用于支持3D Touch的情况, [...]
read / write
gesturesEnabled ↔ bool
设定地图View能否支持所有手势操作
read / write
limitMapBounds ↔ BMFCoordinateBounds
限制地图的显示范围(地图状态改变时,该范围不会在地图显示范围外。设置成功后,会调整地图显示该范围)
read / write
logoPosition ↔ BMFLogoPosition
logo位置 默认BMFLogoPositionLeftBottom
read / write
mapPadding ↔ BMFEdgeInsets
地图预留边界,默认:(top:0, left:0, bottom:0, right:0)。 [...]
read / write
mapScaleBarPosition ↔ BMFPoint
比例尺的位置,设定坐标以BMKMapView左上角为原点,向右向下增长
read / write
mapType ↔ BMFMapType
当前地图类型,默认标准地图 [...]
read / write
maxZoomLevel ↔ int
地图的自定义最大比例尺级别
read / write
minOverlooking ↔ int
地图俯视角度最小值(即角度最大值),在手机上当前可设置的范围为-79~0度 [...]
read / write
minZoomLevel ↔ int
地图的自定义最小比例尺级别
read / write
overlookEnabled ↔ bool
设定地图View能否支持俯仰角
read / write
overlooking ↔ double
地图俯视角度,在手机上当前可使用的范围为-45~0度 (ios取int值)
read / write
rotateEnabled ↔ bool
设定地图View能否支持旋转
read / write
rotation ↔ double
地图旋转角度,在手机上当前可使用的范围为-180~180度 (ios取int值)
read / write
scrollEnabled ↔ bool
设定地图View能否支持用户移动地图
read / write
showIndoorMapPoi ↔ bool
设定室内图标注是否显示,默认true,仅当显示室内图(baseIndoorMapEnabled为true)时生效
read / write
showMapPoi ↔ bool
设定地图是否显示底图poi标注(不包含室内图标注),默认true
read / write
showMapScaleBar ↔ bool
设定是否显示比例尺
read / write
trafficEnabled ↔ bool
设定地图是否打开路况图层
read / write
updateTargetScreenPtWhenMapPaddingChanged ↔ bool
设置mapPadding时,地图中心(屏幕坐标:BMKMapStatus.targetScreenPt)是否跟着改变,默认true [...]
read / write
visibleMapBounds ↔ BMFCoordinateBounds
当前地图可显示范围(东北,西南)角坐标
read / write
zoomEnabled ↔ bool
设定地图View能否支持用户多点缩放(双指)
read / write
zoomEnabledWithTap ↔ bool
设定地图View能否支持用户缩放(双击或双指单击) [...]
read / write
zoomLevel ↔ int
地图比例尺级别,在手机上当前可使用的级别为4-21级
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toMap() → Map<String, Object>
BMFMapOptions -> map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

mapOptions() BMFMapOptions