toMap method
BMFMapOptions -> map
Implementation
Map<String, Object> toMap() {
return {
'mapType': this.mapType?.index,
'limitMapBounds': this.limitMapBounds?.toMap(),
'compassPosition': this.compassPosition?.toMap(),
'center': this.center?.toMap(),
'zoomLevel': this.zoomLevel,
'minZoomLevel': this.minZoomLevel,
'maxZoomLevel': this.maxZoomLevel,
'rotation': this.rotation,
'overlooking': this.overlooking,
'minOverlooking': this.minOverlooking,
'buildingsEnabled': this.buildingsEnabled,
'showMapPoi': this.showMapPoi,
'trafficEnabled': this.trafficEnabled,
'baiduHeatMapEnabled': this.baiduHeatMapEnabled,
'gesturesEnabled': this.gesturesEnabled,
'zoomEnabled': this.zoomEnabled,
'zoomEnabledWithTap': this.zoomEnabledWithTap,
'scrollEnabled': this.scrollEnabled,
'overlookEnabled': this.overlookEnabled,
'rotateEnabled': this.rotateEnabled,
'forceTouchEnabled': this.forceTouchEnabled,
'showMapScaleBar': this.showMapScaleBar,
'mapScaleBarPosition': this.mapScaleBarPosition?.toMap(),
'logoPosition': this.logoPosition?.index,
'visibleMapBounds': this.visibleMapBounds?.toMap(),
'mapPadding': this.mapPadding?.toMap(),
'updateTargetScreenPtWhenMapPaddingChanged':
this.updateTargetScreenPtWhenMapPaddingChanged,
'changeWithTouchPointCenterEnabled':
this.changeWithTouchPointCenterEnabled,
'changeCenterWithDoubleTouchPointEnabled':
this.changeCenterWithDoubleTouchPointEnabled,
'baseIndoorMapEnabled': this.baseIndoorMapEnabled,
'showIndoorMapPoi': this.showIndoorMapPoi
};
}