HeatmapConfig class

Configuration class for heatmap properties, supporting multiple map platforms.

Constructors

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.

Properties

colors ↔ List<Color>
List of colors used for the heatmap gradient.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
heatmapIntensity → double
The intensity of the heatmap, affecting the color density.
final
heatmapOpacity → double
The overall opacity of the heatmap layer.
final
heatmapRadius → double
The radius of the heatmap points in pixels.
final
interpolationMethod → HeatmapInterpolation
The interpolation method used for color and weight calculations.
final
points → List<LatLng>
List of LatLng points representing heatmap data.
final
reference → HeatmapReference
The reference property for interpolation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stops ↔ List<double>
List of stop values for the color gradient (0.0 to 1.0).
getter/setter pair
zoomStops ↔ List<double>
List of zoom levels for controlling heatmap weight.
getter/setter pair
zoomWeights ↔ List<double>
List of weight values corresponding to zoom levels.
getter/setter pair

Methods

getHeatmapColorEntries() → List<MapEntry<double, Color>>
Generates a list of MapEntry for heatmap color gradient.
getHeatmapColorExpression() → List<Object>
Converts the color gradient entries to a generic expression.
getHeatmapWeightEntries() → List<MapEntry<double, double>>
Generates a list of MapEntry for heatmap weight based on zoom levels.
getHeatmapWeightExpression() → List<Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColorsAndStops(List<Color> colors, List<double> stops) → void
Sets the colors and stops for the heatmap gradient.
setZoomStopsAndWeights(List<double> zoomStops, List<double> zoomWeights) → void
Sets the zoom stop and weight values.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited