InteractiveMap<T> constructor

const InteractiveMap<T>({
  1. Key? key,
  2. required List<T> items,
  3. required LatLng positionMapper(
    1. T item
    ),
  4. required Widget markerBuilder(
    1. BuildContext context,
    2. T item,
    3. int index
    ),
  5. MapClusteringConfig? clustering,
  6. MapUserLocationConfig? userLocation,
  7. MapInteractionConfig<T>? interaction,
  8. MapThemeConfig theme = const MapThemeConfig(),
  9. InteractiveMapController<T>? controller,
  10. MapControlConfig? compassConfig = const MapControlConfig(alignment: Alignment.topRight),
  11. MapControlConfig? zoomConfig = const MapControlConfig(alignment: Alignment.bottomRight, padding: EdgeInsets.only(bottom: 90, right: 16)),
  12. LatLng initialCenter = const LatLng(45.4642, 9.1900),
  13. double initialZoom = 13.0,
  14. double markerWidth = 80.0,
  15. double markerHeight = 80.0,
})

Implementation

const InteractiveMap({
  super.key,
  required this.items,
  required this.positionMapper,
  required this.markerBuilder,
  this.clustering,
  this.userLocation,
  this.interaction,
  this.theme = const MapThemeConfig(),
  this.controller,
  this.compassConfig = const MapControlConfig(alignment: Alignment.topRight),
  this.zoomConfig = const MapControlConfig(
    alignment: Alignment.bottomRight,
    padding: EdgeInsets.only(bottom: 90, right: 16),
  ),
  this.initialCenter = const LatLng(45.4642, 9.1900),
  this.initialZoom = 13.0,
  this.markerWidth = 80.0,
  this.markerHeight = 80.0,
});