fromWidget static method

HuaweiMapOptions fromWidget(
  1. HuaweiMap map
)

Implementation

static HuaweiMapOptions fromWidget(HuaweiMap map) {
  return HuaweiMapOptions(
    mapType: map.mapType,
    compassEnabled: map.compassEnabled,
    mapToolbarEnabled: map.mapToolbarEnabled,
    cameraTargetBounds: map.cameraTargetBounds,
    minMaxZoomPreference: map.minMaxZoomPreference,
    rotateGesturesEnabled: map.rotateGesturesEnabled,
    scrollGesturesEnabled: map.scrollGesturesEnabled,
    tiltGesturesEnabled: map.tiltGesturesEnabled,
    trackCameraPosition: map.onCameraMove != null,
    zoomControlsEnabled: map.zoomControlsEnabled,
    zoomGesturesEnabled: map.zoomGesturesEnabled,
    myLocationEnabled: map.myLocationEnabled,
    myLocationButtonEnabled: map.myLocationButtonEnabled,
    padding: map.padding,
    trafficEnabled: map.trafficEnabled,
    markersClusteringEnabled: map.markersClusteringEnabled,
    buildingsEnabled: map.buildingsEnabled,
    allGesturesEnabled: map.allGesturesEnabled,
    isScrollGesturesEnabledDuringRotateOrZoom:
        map.isScrollGesturesEnabledDuringRotateOrZoom,
    gestureScaleByMapCenter: map.gestureScaleByMapCenter,
    pointToCenter: map.pointToCenter,
    clusterMarkerColor: map.clusterMarkerColor,
    clusterMarkerTextColor: map.clusterMarkerTextColor,
    clusterIconDescriptor: map.clusterIconDescriptor,
    logoPosition: map.logoPosition,
    logoPadding: map.logoPadding,
    styleId: map.styleId,
    previewId: map.previewId,
  );
}