MapShapeLayer constructor

const MapShapeLayer({
  1. Key? key,
  2. required MapShapeSource source,
  3. MapLoadingBuilder? loadingBuilder,
  4. MapShapeLayerController? controller,
  5. MapLatLngBounds? initialLatLngBounds,
  6. List<MapSublayer>? sublayers,
  7. int initialMarkersCount = 0,
  8. MapMarkerBuilder? markerBuilder,
  9. IndexedWidgetBuilder? shapeTooltipBuilder,
  10. IndexedWidgetBuilder? bubbleTooltipBuilder,
  11. IndexedWidgetBuilder? markerTooltipBuilder,
  12. bool showDataLabels = false,
  13. Color? color,
  14. Color? strokeColor,
  15. double? strokeWidth,
  16. MapLegend? legend,
  17. MapDataLabelSettings dataLabelSettings = const MapDataLabelSettings(),
  18. MapBubbleSettings bubbleSettings = const MapBubbleSettings(),
  19. MapSelectionSettings selectionSettings = const MapSelectionSettings(),
  20. MapTooltipSettings tooltipSettings = const MapTooltipSettings(),
  21. int selectedIndex = -1,
  22. MapZoomPanBehavior? zoomPanBehavior,
  23. ValueChanged<int>? onSelectionChanged,
  24. WillZoomCallback? onWillZoom,
  25. 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,
      );