MFPOI constructor

const MFPOI({
  1. required MFPOIId poiId,
  2. bool consumeTapEvents = false,
  3. MFLatLng position = const MFLatLng(0.0, 0.0),
  4. String title = '',
  5. Color titleColor = Colors.blue,
  6. MFBitmap icon = MFBitmap.defaultIcon,
  7. String type = 'point',
  8. bool visible = true,
  9. int zIndex = 0,
  10. VoidCallback? onTap,
})

Creates an immutable representation of a MFPOI to draw on Map4dMap.

Implementation

const MFPOI(
    {required this.poiId,
    this.consumeTapEvents = false,
    this.position = const MFLatLng(0.0, 0.0),
    this.title = '',
    this.titleColor = Colors.blue,
    // this.subtitle = '',
    this.icon = MFBitmap.defaultIcon,
    this.type = 'point',
    this.visible = true,
    this.zIndex = 0,
    this.onTap});