HeatmapConfig constructor
HeatmapConfig({
- double heatmapRadius = 20.0,
- double heatmapOpacity = 0.3,
- double heatmapIntensity = 1.0,
- HeatmapInterpolation interpolationMethod = HeatmapInterpolation.linear,
- List<
Color> colors = const [Colors.blue, Colors.green, Colors.yellow, Colors.orange, Colors.red], - List<
double> stops = const [0.2, 0.4, 0.6, 0.8, 1.0], - List<
double> zoomStops = const [0.0, 5.0, 10.0], - List<
double> zoomWeights = const [0.1, 0.5, 1.5], - HeatmapReference reference = HeatmapReference.heatmapDensity,
- 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);
}
}