FlutterMapView constructor
const
FlutterMapView({
- Key? key,
- required Place? initialLocation,
- required double initialZoom,
- required List<
PolyLineLayer> polylines, - required List<
CustomMarker> markers, - required MapViewMode mode,
- dynamic onControllerReady()?,
- required dynamic onMapMoved(
- LatLng latLng,
- double zoom,
- LatLngBounds bounds,
- MapMoveEventType eventType,
- required bool interactive,
- required EdgeInsets padding,
- required GlobalKey<
State< markerKey,StatefulWidget> > - required CenterMarker? centerMarker,
- required List<
CircleMarker> circleMarkers, - required bool useCachedTiles,
- required bool isPolylineDrawEnabled,
- required PolyEditor? polyEditor,
- dynamic onPolylineDrawn(
- List<
LatLng>
- List<
- MapboxOptions? mapboxOptions,
- OpenStreetMapsOptions? openStreetMapOptions,
- required MapProviderEnum provider,
- required List<
HeatmapConfig> heatmapConfig, - required bool showMyLocation,
Implementation
const FlutterMapView({
super.key,
required this.initialLocation,
required this.initialZoom,
required this.polylines,
required this.markers,
required this.mode,
this.onControllerReady,
required this.onMapMoved,
required this.interactive,
required this.padding,
required this.markerKey,
required this.centerMarker,
required this.circleMarkers,
required this.useCachedTiles,
required this.isPolylineDrawEnabled,
required this.polyEditor,
this.onPolylineDrawn,
this.mapboxOptions,
this.openStreetMapOptions,
required this.provider,
required this.heatmapConfig,
required this.showMyLocation,
});