MapShapeLayer constructor
const
MapShapeLayer({
- Key? key,
- required MapShapeSource source,
- MapLoadingBuilder? loadingBuilder,
- MapShapeLayerController? controller,
- MapLatLngBounds? initialLatLngBounds,
- List<
MapSublayer> ? sublayers, - int initialMarkersCount = 0,
- MapMarkerBuilder? markerBuilder,
- IndexedWidgetBuilder? shapeTooltipBuilder,
- IndexedWidgetBuilder? bubbleTooltipBuilder,
- IndexedWidgetBuilder? markerTooltipBuilder,
- bool showDataLabels = false,
- Color? color,
- Color? strokeColor,
- double? strokeWidth,
- MapLegend? legend,
- MapDataLabelSettings dataLabelSettings = const MapDataLabelSettings(),
- MapBubbleSettings bubbleSettings = const MapBubbleSettings(),
- MapSelectionSettings selectionSettings = const MapSelectionSettings(),
- MapTooltipSettings tooltipSettings = const MapTooltipSettings(),
- int selectedIndex = -1,
- MapZoomPanBehavior? zoomPanBehavior,
- ValueChanged<
int> ? onSelectionChanged, - WillZoomCallback? onWillZoom,
- WillPanCallback? onWillPan,
Creates a MapShapeLayer.
Implementation
const MapShapeLayer({
Key? key,
required this.source,
this.loadingBuilder,
this.controller,
MapLatLngBounds? initialLatLngBounds,
List<MapSublayer>? sublayers,
int initialMarkersCount = 0,
MapMarkerBuilder? markerBuilder,
this.shapeTooltipBuilder,
this.bubbleTooltipBuilder,
IndexedWidgetBuilder? markerTooltipBuilder,
this.showDataLabels = false,
this.color,
this.strokeColor,
this.strokeWidth,
this.legend,
this.dataLabelSettings = const MapDataLabelSettings(),
this.bubbleSettings = const MapBubbleSettings(),
this.selectionSettings = const MapSelectionSettings(),
MapTooltipSettings tooltipSettings = const MapTooltipSettings(),
this.selectedIndex = -1,
MapZoomPanBehavior? zoomPanBehavior,
this.onSelectionChanged,
WillZoomCallback? onWillZoom,
WillPanCallback? onWillPan,
}) : super(
key: key,
initialLatLngBounds: initialLatLngBounds,
sublayers: sublayers,
initialMarkersCount: initialMarkersCount,
markerBuilder: markerBuilder,
markerTooltipBuilder: markerTooltipBuilder,
tooltipSettings: tooltipSettings,
zoomPanBehavior: zoomPanBehavior,
onWillZoom: onWillZoom,
onWillPan: onWillPan,
);