maps-utils-v3-ktx / com.google.maps.android.ktx.utils.heatmaps / heatmapTileProviderWithWeightedData

heatmapTileProviderWithWeightedData

fun heatmapTileProviderWithWeightedData(latLngs: Collection<WeightedLatLng>, radius: Int = HeatmapTileProvider.DEFAULT_RADIUS, gradient: Gradient = HeatmapTileProvider.DEFAULT_GRADIENT, opacity: Double = HeatmapTileProvider.DEFAULT_OPACITY, maxIntensity: Double = 0.0): HeatmapTileProvider

Constructs a HeatmapTileProvider.

Exceptions

IllegalStateException - when opacity is not within the range 0,1 or if latLngs is empty