FlutterMapView constructor

const FlutterMapView({
  1. Key? key,
  2. required Place? initialLocation,
  3. required double initialZoom,
  4. required List<PolyLineLayer> polylines,
  5. required List<CustomMarker> markers,
  6. required MapViewMode mode,
  7. dynamic onControllerReady(
    1. MapViewController
    )?,
  8. required dynamic onMapMoved(
    1. LatLng latLng,
    2. double zoom,
    3. LatLngBounds bounds,
    4. MapMoveEventType eventType,
    )?,
  9. required bool interactive,
  10. required EdgeInsets padding,
  11. required GlobalKey<State<StatefulWidget>> markerKey,
  12. required CenterMarker? centerMarker,
  13. required List<CircleMarker> circleMarkers,
  14. required bool useCachedTiles,
  15. required bool isPolylineDrawEnabled,
  16. required PolyEditor? polyEditor,
  17. dynamic onPolylineDrawn(
    1. List<LatLng>
    )?,
  18. MapboxOptions? mapboxOptions,
  19. OpenStreetMapsOptions? openStreetMapOptions,
  20. required MapProviderEnum provider,
  21. required List<HeatmapConfig> heatmapConfig,
  22. 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,
});