MapLayer constructor

const MapLayer({
  1. Key? key,
  2. MapLatLngBounds? initialLatLngBounds,
  3. List<MapSublayer>? sublayers,
  4. int initialMarkersCount = 0,
  5. MapMarkerBuilder? markerBuilder,
  6. IndexedWidgetBuilder? markerTooltipBuilder,
  7. MapTooltipSettings tooltipSettings = const MapTooltipSettings(),
  8. MapZoomPanBehavior? zoomPanBehavior,
  9. WillZoomCallback? onWillZoom,
  10. WillPanCallback? onWillPan,
})

Creates a MapLayer.

Implementation

const MapLayer({
  Key? key,
  this.initialLatLngBounds,
  this.sublayers,
  this.initialMarkersCount = 0,
  this.markerBuilder,
  this.markerTooltipBuilder,
  this.tooltipSettings = const MapTooltipSettings(),
  this.zoomPanBehavior,
  this.onWillZoom,
  this.onWillPan,
}) : super(key: key);