Restore comment on StaticMapView

This commit is contained in:
ganfra 2026-04-20 15:14:10 +02:00
parent 41f86b492c
commit c35b5811d0

View file

@ -58,6 +58,9 @@ fun StaticMapView(
modifier: Modifier = Modifier,
darkMode: Boolean = !ElementTheme.isLightTheme,
) {
// Using BoxWithConstraints to:
// 1) Size the inner Image to the same Dp size of the outer BoxWithConstraints.
// 2) Request the static map image of the exact required size in Px to fill the AsyncImage.
BoxWithConstraints(
modifier = modifier,
contentAlignment = Alignment.Center