We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13227e4 commit a6c5a5eCopy full SHA for a6c5a5e
snippets/app-utils-ktx/src/main/java/com/example/app_utils_ktx/Heatmaps.kt
@@ -49,7 +49,7 @@ internal class Heatmaps {
49
50
// Create a heat map tile provider, passing it the latlngs of the police stations.
51
val provider = HeatmapTileProvider.Builder()
52
- .data(latLngs)
+ .data(latLngs?.filterNotNull() ?: emptyList())
53
.build()
54
55
// Add a tile overlay to the map, using the heat map tile provider.
0 commit comments