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. MFMapType mapType = MFMapType.roadmap,
  7. MFMinMaxZoom minMaxZoomPreference = MFMinMaxZoom.unbounded,
  8. bool rotateGesturesEnabled = true,
  9. bool scrollGesturesEnabled = true,
  10. bool zoomGesturesEnabled = true,
  11. bool tiltGesturesEnabled = true,
  12. bool myLocationEnabled = false,
  13. bool myLocationButtonEnabled = false,
  14. bool poisEnabled = true,
  15. bool buildingsEnabled = true,
  16. VoidCallback? onCameraMoveStarted,
  17. MFCameraPositionCallback? onCameraMove,
  18. VoidCallback? onCameraIdle,
  19. MFLatLngCallback? onTap,
  20. @Deprecated('This method is no longer support, which is subject to removal in a future versions.') MFModeChangedCallback? onModeChange,
  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.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,
  @Deprecated('This method is no longer support, which is subject to removal in a future versions.')
      this.onModeChange,
  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);