HeatmapConfig constructor

HeatmapConfig({
  1. double heatmapRadius = 20.0,
  2. double heatmapOpacity = 0.3,
  3. double heatmapIntensity = 1.0,
  4. HeatmapInterpolation interpolationMethod = HeatmapInterpolation.linear,
  5. List<Color> colors = const [Colors.blue, Colors.green, Colors.yellow, Colors.orange, Colors.red],
  6. List<double> stops = const [0.2, 0.4, 0.6, 0.8, 1.0],
  7. List<double> zoomStops = const [0.0, 5.0, 10.0],
  8. List<double> zoomWeights = const [0.1, 0.5, 1.5],
  9. HeatmapReference reference = HeatmapReference.heatmapDensity,
  10. List<LatLng> points = const [],
})

Creates a HeatmapConfig instance.

Implementation

HeatmapConfig({
  this.heatmapRadius = 20.0,
  this.heatmapOpacity = 0.3,
  this.heatmapIntensity = 1.0,
  this.interpolationMethod = HeatmapInterpolation.linear,
  this.colors = const [
    Colors.blue,
    Colors.green,
    Colors.yellow,
    Colors.orange,
    Colors.red,
  ],
  this.stops = const [0.2, 0.4, 0.6, 0.8, 1.0],
  this.zoomStops = const [0.0, 5.0, 10.0],
  this.zoomWeights = const [0.1, 0.5, 1.5],
  this.reference = HeatmapReference.heatmapDensity,
  this.points = const [],
}) {
  _validate();
  if (reference == HeatmapReference.zoom) {
    setZoomStopsAndWeights(zoomStops, zoomWeights);
  } else {
    setColorsAndStops(colors, stops);
  }
}