Skip to content

Commit 7b55a93

Browse files
kikosodkhawk
andauthored
feat: exposing contentDescription on MarkerInfoWindow (#764)
* feat: exposing contentDescription on MarkerInfoWindow * feat: default value --------- Co-authored-by: Dale Hawkins <[email protected]>
1 parent ca8cf2d commit 7b55a93

File tree

1 file changed

+3
-0
lines changed
  • maps-compose/src/main/java/com/google/maps/android/compose

1 file changed

+3
-0
lines changed

maps-compose/src/main/java/com/google/maps/android/compose/Marker.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public fun MarkerComposable(
373373
* @param alpha the alpha (opacity) of the marker
374374
* @param anchor the anchor for the marker image
375375
* @param draggable sets the draggability for the marker
376+
* @param contentDescription the content description for accessibility purposes
376377
* @param flat sets if the marker should be flat against the map
377378
* @param icon sets the icon for the marker
378379
* @param infoWindowAnchor the anchor point of the info window on the marker image
@@ -396,6 +397,7 @@ public fun MarkerInfoWindow(
396397
alpha: Float = 1.0f,
397398
anchor: Offset = Offset(0.5f, 1.0f),
398399
draggable: Boolean = false,
400+
contentDescription: String? = "",
399401
flat: Boolean = false,
400402
icon: BitmapDescriptor? = null,
401403
infoWindowAnchor: Offset = Offset(0.5f, 0.0f),
@@ -416,6 +418,7 @@ public fun MarkerInfoWindow(
416418
alpha = alpha,
417419
anchor = anchor,
418420
draggable = draggable,
421+
contentDescription = contentDescription,
419422
flat = flat,
420423
icon = icon,
421424
infoWindowAnchor = infoWindowAnchor,

0 commit comments

Comments
 (0)