MFMarker constructor
const
MFMarker({
- required MFMarkerId markerId,
- bool consumeTapEvents = false,
- MFLatLng position = const MFLatLng(0.0, 0.0),
- double elevation = 0.0,
- double rotation = 0.0,
- Offset anchor = const Offset(0.5, 0.5),
- bool draggable = false,
- bool visible = true,
- double zIndex = 0.0,
- MFBitmap icon = MFBitmap.defaultIcon,
- MFInfoWindow infoWindow = MFInfoWindow.noText,
- VoidCallback? onTap,
- ValueChanged<
MFLatLng> ? onDragEnd,
Implementation
const MFMarker({
required this.markerId,
this.consumeTapEvents = false,
this.position = const MFLatLng(0.0, 0.0),
this.elevation = 0.0,
this.rotation = 0.0,
this.anchor = const Offset(0.5, 0.5),
this.draggable = false,
this.visible = true,
this.zIndex = 0.0,
this.icon = MFBitmap.defaultIcon,
this.infoWindow = MFInfoWindow.noText,
this.onTap,
this.onDragEnd,
});