InteractiveMap<T> constructor
const
InteractiveMap<T> ({
- Key? key,
- required List<
T> items, - required LatLng positionMapper(
- T item
- required Widget markerBuilder(
- BuildContext context,
- T item,
- int index
- MapClusteringConfig? clustering,
- MapUserLocationConfig? userLocation,
- MapInteractionConfig<
T> ? interaction, - MapThemeConfig theme = const MapThemeConfig(),
- InteractiveMapController<
T> ? controller, - MapControlConfig? compassConfig = const MapControlConfig(alignment: Alignment.topRight),
- MapControlConfig? zoomConfig = const MapControlConfig(alignment: Alignment.bottomRight, padding: EdgeInsets.only(bottom: 90, right: 16)),
- LatLng initialCenter = const LatLng(45.4642, 9.1900),
- double initialZoom = 13.0,
- double markerWidth = 80.0,
- 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,
});