MFMapView constructor

const MFMapView({
  1. Key? key,
  2. MFCameraPosition? initialCameraPosition,
  3. MFMapCreatedCallback? onMapCreated,
  4. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  5. String? mapId,
  6. String? style,
  7. MFMapType mapType = MFMapType.roadmap,
  8. MFMinMaxZoom minMaxZoomPreference = MFMinMaxZoom.unbounded,
  9. bool rotateGesturesEnabled = true,
  10. bool scrollGesturesEnabled = true,
  11. bool zoomGesturesEnabled = true,
  12. bool tiltGesturesEnabled = true,
  13. bool myLocationEnabled = false,
  14. bool myLocationButtonEnabled = false,
  15. bool poisEnabled = true,
  16. bool buildingsEnabled = true,
  17. VoidCallback? onCameraMoveStarted,
  18. MFCameraPositionCallback? onCameraMove,
  19. VoidCallback? onCameraIdle,
  20. MFLatLngCallback? onTap,
  21. MFMapPOICallback? onPOITap,
  22. MFMapBuildingCallback? onBuildingTap,
  23. MFMapPlaceCallback? onPlaceTap,
  24. MFDataSourceFeatureCallback? onDataSourceFeatureTap,
  25. Set<MFMarker> markers = const <MFMarker>{},
  26. Set<MFCircle> circles = const <MFCircle>{},
  27. Set<MFPolygon> polygons = const <MFPolygon>{},
  28. Set<MFPolyline> polylines = const <MFPolyline>{},
  29. Set<MFPOI> pois = const <MFPOI>{},
  30. Set<MFBuilding> buildings = const <MFBuilding>{},
  31. Set<MFTileOverlay> tileOverlays = const <MFTileOverlay>{},
  32. Set<MFImageOverlay> imageOverlays = const <MFImageOverlay>{},
  33. Set<MFDirectionsRenderer> directionsRenderers = const <MFDirectionsRenderer>{},
})

Implementation

const MFMapView({
  Key? key,
  this.initialCameraPosition,
  this.onMapCreated,
  this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  this.mapId,
  this.style,
  this.mapType = MFMapType.roadmap,
  this.minMaxZoomPreference = MFMinMaxZoom.unbounded,
  this.rotateGesturesEnabled = true,
  this.scrollGesturesEnabled = true,
  this.zoomGesturesEnabled = true,
  this.tiltGesturesEnabled = true,
  this.myLocationEnabled = false,
  this.myLocationButtonEnabled = false,
  this.poisEnabled = true,
  this.buildingsEnabled = true,
  this.onCameraMoveStarted,
  this.onCameraMove,
  this.onCameraIdle,
  this.onTap,
  this.onPOITap,
  this.onBuildingTap,
  this.onPlaceTap,
  this.onDataSourceFeatureTap,
  this.markers = const <MFMarker>{},
  this.circles = const <MFCircle>{},
  this.polygons = const <MFPolygon>{},
  this.polylines = const <MFPolyline>{},
  this.pois = const <MFPOI>{},
  this.buildings = const <MFBuilding>{},
  this.tileOverlays = const <MFTileOverlay>{},
  this.imageOverlays = const <MFImageOverlay>{},
  this.directionsRenderers = const <MFDirectionsRenderer>{},
}) : super(key: key);