toMap method

Map<String, Object> toMap ()

BMFMapOptions -> map

Implementation

Map<String, Object> toMap() {
  return {
    'mapType': this.mapType?.index,
    'limitMapBounds': this.limitMapBounds?.toMap(),
    'compassPosition': this.compassPosition?.toMap(),
    'compassEnabled': this.compassEnabled,
    'center': this.center?.toMap(),
    'zoomLevel': this.zoomLevel,
    'minZoomLevel': this.minZoomLevel,
    'maxZoomLevel': this.maxZoomLevel,
    'showZoomControl': this.showZoomControl,
    '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,
    'zoomEnabledWithDoubleClick': this.zoomEnabledWithDoubleClick,
    'scrollEnabled': this.scrollEnabled,
    'overlookEnabled': this.overlookEnabled,
    'rotateEnabled': this.rotateEnabled,
    'forceTouchEnabled': this.forceTouchEnabled,
    'showMapScaleBar': this.showMapScaleBar,
    'mapScaleBarPosition': this.mapScaleBarPosition?.toMap(),
    'mapZoomControlPosition': this.mapZoomControlPosition?.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
  };
}