Heatmap class
Draws a heatmap on the map.
- Implemented types
- Annotations
Constructors
-
Heatmap({required HeatmapId heatmapId, required List<
WeightedLatLng> data, bool dissipating = true, HeatmapGradient? gradient, double? maxIntensity, double opacity = _defaultOpacity, required HeatmapRadius radius, int minimumZoomIntensity = _defaultMinimumZoomIntensity, int maximumZoomIntensity = _defaultMaximumZoomIntensity}) -
Creates an immutable representation of a Heatmap to draw on
GoogleMap
.const
Properties
-
data
→ List<
WeightedLatLng> -
The data points to display.
final
- dissipating → bool
-
Specifies whether the heatmap dissipate on zoom.
final
- gradient → HeatmapGradient?
-
The color gradient of the heatmap
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heatmapId → HeatmapId
-
Uniquely identifies a Heatmap.
final
- mapsId → HeatmapId
-
A identifier for this object.
no setteroverride
- maximumZoomIntensity → int
-
The maximum zoom intensity used for normalizing intensities.
final
- maxIntensity → double?
-
The maximum intensity of the heatmap.
final
- minimumZoomIntensity → int
-
The minimum zoom intensity used for normalizing intensities.
final
- opacity → double
-
The opacity of the heatmap, expressed as a number between 0 and 1.
final
- radius → HeatmapRadius
-
The radius of influence for each data point, in pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → Heatmap -
Creates a new Heatmap object whose values are the same as this
instance.
override
-
copyWith(
{List< WeightedLatLng> ? dataParam, bool? dissipatingParam, HeatmapGradient? gradientParam, double? maxIntensityParam, double? opacityParam, HeatmapRadius? radiusParam, int? minimumZoomIntensityParam, int? maximumZoomIntensityParam}) → Heatmap - Creates a new Heatmap object whose values are the same as this instance, unless overwritten by the specified parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
Converts this object to something serializable in JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override