Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import com.google.maps.android.clustering.ClusterItem
* (https://youtrack.jetbrains.com/issue/KT-6653?_ga=2.30406975.1494223917.1585591891-1137021041.1573759593)
* so we must name our fields differently and then pass them to the ClusterItem methods.
*/
data class MyItem(val latLng: LatLng, val myTitle: String?, val mySnippet: String?, val myZIndex: Float?) : ClusterItem {
override fun getPosition() = latLng
override fun getTitle() = myTitle
override fun getSnippet() = mySnippet
override fun getZIndex() = myZIndex
}
data class MyItem(
override val position: LatLng,
override val title: String?,
override val snippet: String?,
override val zIndex: Float?
) : ClusterItem
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ androidxStartup = "1.2.0"
# --- Google Maps ---
# Versions for Google Play Services libraries, which are essential for this sample.
androidMapsSdk = "20.0.0"
androidMapsUtils = "4.4.0"
androidMapsUtils = "5.0.0-rc01"

# --- Testing ---
# Versions for testing libraries.
Expand Down
Loading