AdvancedMarker constructor

AdvancedMarker({
  1. required MarkerId markerId,
  2. double alpha = 1.0,
  3. Offset anchor = const Offset(0.5, 1.0),
  4. bool consumeTapEvents = false,
  5. bool draggable = false,
  6. bool flat = false,
  7. BitmapDescriptor icon = BitmapDescriptor.defaultMarker,
  8. InfoWindow infoWindow = InfoWindow.noText,
  9. LatLng position = const LatLng(0.0, 0.0),
  10. double rotation = 0.0,
  11. bool visible = true,
  12. ClusterManagerId? clusterManagerId,
  13. VoidCallback? onTap,
  14. ValueChanged<LatLng>? onDrag,
  15. ValueChanged<LatLng>? onDragStart,
  16. ValueChanged<LatLng>? onDragEnd,
  17. int zIndex = 0,
  18. MarkerCollisionBehavior collisionBehavior = MarkerCollisionBehavior.requiredDisplay,
})

Creates a set of marker configuration options.

Specifies a marker with a given collisionBehavior. Default is MarkerCollisionBehavior.required.

Implementation

AdvancedMarker({
  required super.markerId,
  super.alpha,
  super.anchor,
  super.consumeTapEvents,
  super.draggable,
  super.flat,
  super.icon,
  super.infoWindow,
  super.position,
  super.rotation,
  super.visible,
  super.clusterManagerId,
  super.onTap,
  super.onDrag,
  super.onDragStart,
  super.onDragEnd,
  int zIndex = 0,
  this.collisionBehavior = MarkerCollisionBehavior.requiredDisplay,
}) : super(zIndex: zIndex.toDouble());