Skip to content

Commit df72c4c

Browse files
committed
fix: added test
1 parent 60cf31e commit df72c4c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • maps-compose-widgets/src/main/java/com/google/maps/android/compose/widgets

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ public fun ScaleBar(
185185
}
186186
}
187187

188+
/**
189+
* An animated scale bar that appears when the zoom level of the map changes, and then disappears
190+
* after [visibilityDurationMillis]. This composable wraps [ScaleBar] with visibility animations.
191+
*
192+
* Implement your own observer on camera move events using [CameraPositionState] and pass it in
193+
* as [cameraPositionState].
194+
*/
188195
@Composable
189196
public fun DisappearingScaleBar(
190197
modifier: Modifier = Modifier,

0 commit comments

Comments
 (0)