MFMapView constructor
const
MFMapView({
- Key? key,
- MFCameraPosition? initialCameraPosition,
- MFMapCreatedCallback? onMapCreated,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - String? mapId,
- MFMapType mapType = MFMapType.roadmap,
- MFMinMaxZoom minMaxZoomPreference = MFMinMaxZoom.unbounded,
- bool rotateGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool zoomGesturesEnabled = true,
- bool tiltGesturesEnabled = true,
- bool myLocationEnabled = false,
- bool myLocationButtonEnabled = false,
- bool poisEnabled = true,
- bool buildingsEnabled = true,
- VoidCallback? onCameraMoveStarted,
- MFCameraPositionCallback? onCameraMove,
- VoidCallback? onCameraIdle,
- MFLatLngCallback? onTap,
- @Deprecated('This method is no longer support, which is subject to removal in a future versions.') MFModeChangedCallback? onModeChange,
- MFMapPOICallback? onPOITap,
- MFMapBuildingCallback? onBuildingTap,
- MFMapPlaceCallback? onPlaceTap,
- MFDataSourceFeatureCallback? onDataSourceFeatureTap,
- Set<
MFMarker> markers = const <MFMarker>{}, - Set<
MFCircle> circles = const <MFCircle>{}, - Set<
MFPolygon> polygons = const <MFPolygon>{}, - Set<
MFPolyline> polylines = const <MFPolyline>{}, - Set<
MFPOI> pois = const <MFPOI>{}, - Set<
MFBuilding> buildings = const <MFBuilding>{}, - Set<
MFTileOverlay> tileOverlays = const <MFTileOverlay>{}, - Set<
MFImageOverlay> imageOverlays = const <MFImageOverlay>{}, - 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);