HuaweiMap constructor
const
HuaweiMap({
- Key? key,
- required CameraPosition initialCameraPosition,
- MapType mapType = MapType.normal,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - bool compassEnabled = true,
- bool mapToolbarEnabled = true,
- CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
- MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
- bool rotateGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool zoomControlsEnabled = true,
- bool zoomGesturesEnabled = true,
- bool tiltGesturesEnabled = true,
- bool myLocationEnabled = false,
- bool myLocationButtonEnabled = true,
- EdgeInsets padding = EdgeInsets.zero,
- bool trafficEnabled = false,
- bool markersClusteringEnabled = false,
- bool buildingsEnabled = true,
- bool? allGesturesEnabled,
- bool isScrollGesturesEnabledDuringRotateOrZoom = true,
- bool gestureScaleByMapCenter = false,
- ScreenCoordinate? pointToCenter,
- Set<
Marker> markers = const <Marker>{}, - Set<
Polygon> polygons = const <Polygon>{}, - Set<
Polyline> polylines = const <Polyline>{}, - Set<
Circle> circles = const <Circle>{}, - Set<
GroundOverlay> groundOverlays = const <GroundOverlay>{}, - Set<
TileOverlay> tileOverlays = const <TileOverlay>{}, - MapCreatedCallback? onMapCreated,
- ArgumentCallback<
int> ? onCameraMoveStarted, - CameraPositionCallback? onCameraMove,
- VoidCallback? onCameraIdle,
- VoidCallback? onCameraMoveCanceled,
- ArgumentCallback<
LatLng> ? onClick, - ArgumentCallback<
LatLng> ? onLongPress, - ArgumentCallback<
PointOfInterest> ? onPoiClick, - ArgumentCallback<
Location> ? onMyLocationClick, - ArgumentCallback<
bool> ? onMyLocationButtonClick, - Color? clusterMarkerColor,
- Color? clusterMarkerTextColor,
- BitmapDescriptor? clusterIconDescriptor,
- int logoPosition = LOWER_LEFT,
- EdgeInsets logoPadding = EdgeInsets.zero,
- String? styleId,
- String? previewId,
Implementation
const HuaweiMap({
Key? key,
required this.initialCameraPosition,
this.mapType = MapType.normal,
this.gestureRecognizers,
this.compassEnabled = true,
this.mapToolbarEnabled = true,
this.cameraTargetBounds = CameraTargetBounds.unbounded,
this.minMaxZoomPreference = MinMaxZoomPreference.unbounded,
this.rotateGesturesEnabled = true,
this.scrollGesturesEnabled = true,
this.zoomControlsEnabled = true,
this.zoomGesturesEnabled = true,
this.tiltGesturesEnabled = true,
this.myLocationEnabled = false,
this.myLocationButtonEnabled = true,
this.padding = EdgeInsets.zero,
this.trafficEnabled = false,
this.markersClusteringEnabled = false,
this.buildingsEnabled = true,
this.allGesturesEnabled,
this.isScrollGesturesEnabledDuringRotateOrZoom = true,
this.gestureScaleByMapCenter = false,
this.pointToCenter,
this.markers = const <Marker>{},
this.polygons = const <Polygon>{},
this.polylines = const <Polyline>{},
this.circles = const <Circle>{},
this.groundOverlays = const <GroundOverlay>{},
this.tileOverlays = const <TileOverlay>{},
this.onMapCreated,
this.onCameraMoveStarted,
this.onCameraMove,
this.onCameraIdle,
this.onCameraMoveCanceled,
this.onClick,
this.onLongPress,
this.onPoiClick,
this.onMyLocationClick,
this.onMyLocationButtonClick,
this.clusterMarkerColor,
this.clusterMarkerTextColor,
this.clusterIconDescriptor,
this.logoPosition = LOWER_LEFT,
this.logoPadding = EdgeInsets.zero,
this.styleId,
this.previewId,
}) : super(key: key);