HuaweiMap constructor

const HuaweiMap({
  1. Key? key,
  2. required CameraPosition initialCameraPosition,
  3. MapType mapType = MapType.normal,
  4. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  5. bool compassEnabled = true,
  6. bool mapToolbarEnabled = true,
  7. CameraTargetBounds cameraTargetBounds = CameraTargetBounds.unbounded,
  8. MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
  9. bool rotateGesturesEnabled = true,
  10. bool scrollGesturesEnabled = true,
  11. bool zoomControlsEnabled = true,
  12. bool zoomGesturesEnabled = true,
  13. bool tiltGesturesEnabled = true,
  14. bool myLocationEnabled = false,
  15. bool myLocationButtonEnabled = true,
  16. EdgeInsets padding = EdgeInsets.zero,
  17. bool trafficEnabled = false,
  18. bool markersClusteringEnabled = false,
  19. bool buildingsEnabled = true,
  20. bool? allGesturesEnabled,
  21. bool isScrollGesturesEnabledDuringRotateOrZoom = true,
  22. bool gestureScaleByMapCenter = false,
  23. ScreenCoordinate? pointToCenter,
  24. Set<Marker> markers = const <Marker>{},
  25. Set<Polygon> polygons = const <Polygon>{},
  26. Set<Polyline> polylines = const <Polyline>{},
  27. Set<Circle> circles = const <Circle>{},
  28. Set<GroundOverlay> groundOverlays = const <GroundOverlay>{},
  29. Set<TileOverlay> tileOverlays = const <TileOverlay>{},
  30. MapCreatedCallback? onMapCreated,
  31. ArgumentCallback<int>? onCameraMoveStarted,
  32. CameraPositionCallback? onCameraMove,
  33. VoidCallback? onCameraIdle,
  34. VoidCallback? onCameraMoveCanceled,
  35. ArgumentCallback<LatLng>? onClick,
  36. ArgumentCallback<LatLng>? onLongPress,
  37. ArgumentCallback<PointOfInterest>? onPoiClick,
  38. ArgumentCallback<Location>? onMyLocationClick,
  39. ArgumentCallback<bool>? onMyLocationButtonClick,
  40. Color? clusterMarkerColor,
  41. Color? clusterMarkerTextColor,
  42. BitmapDescriptor? clusterIconDescriptor,
  43. int logoPosition = LOWER_LEFT,
  44. EdgeInsets logoPadding = EdgeInsets.zero,
  45. String? styleId,
  46. 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);