AdvancedMarker constructor
AdvancedMarker({
- required MarkerId markerId,
- double alpha = 1.0,
- Offset anchor = const Offset(0.5, 1.0),
- bool consumeTapEvents = false,
- bool draggable = false,
- bool flat = false,
- BitmapDescriptor icon = BitmapDescriptor.defaultMarker,
- InfoWindow infoWindow = InfoWindow.noText,
- LatLng position = const LatLng(0.0, 0.0),
- double rotation = 0.0,
- bool visible = true,
- ClusterManagerId? clusterManagerId,
- VoidCallback? onTap,
- ValueChanged<
LatLng> ? onDrag, - ValueChanged<
LatLng> ? onDragStart, - ValueChanged<
LatLng> ? onDragEnd, - int zIndex = 0,
- 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());