Repository navigation
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Please be sure to include as much information as possible:
Environment details
OS type and version: Android 14 (issue discovered only on Google Pixel 7a)
Library and version: com.google.maps.android:maps-compose:5.0.3
Compose version: BOM 2024.04.00, Compiler 1.5.10
Steps to reproduce
- Create a simple layout with some content
- Add a composable Dialog on top of this content
- Put a GoogleMap inside the aforementioned dialog
- Pan and Zoom the map and look closely around streets or railways in particular, you will notice a slight transparency around the border of map's elements that allows to see content beneath the dialog.
Code example
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Row(modifier = Modifier.fillMaxSize()) {
Box(Modifier.weight(1f).fillMaxHeight().background(Color.Red))
Box(Modifier.weight(1f).fillMaxHeight().background(Color.Green))
Box(Modifier.weight(1f).fillMaxHeight().background(Color.Blue))
}
Dialog(
onDismissRequest = {},
) {
GoogleMap()
}
}
}
}
Screenshots
This is what happens in our app, sometimes it glitches even worse
Footnote
This issue has only been observed on Google Pixel 7a, we tested 2 different 7a and both of them have this issue. Other phones with android 14 including S23 ultra and Pixel 4a do not have this issue.
We have also tried to:
- put a colored box inside the dialog and behind the map
- draw a filled rectangle with drawBehind modifier
- set the GoogleMapOptions.backgroundColor property
but neither of those have resolved the issue.
Thanks.
Reacted by ln-12 and Jakub Nahacz
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.



Activity
matteo-goghero-leitha commentedon Jul 29, 2024
Any updates on this?
Thank you.
ln-12 commentedon Sep 4, 2024
I am experiencing the exact same issue when using the map inside a
Dialogcomposable. The background is transparent on a Pixel 7 but it works as expected in the emulator.Pixel 7:

Emulator:

I am using Compose 1.6.8 and 6.1.2/4.3.2 of this library.
Another approach I tried is adding a background directly to the dialog bit it did also not work:
sacelis commentedon Oct 11, 2024
Any updates on this or maybe a workaround? Thanks
matteo-goghero-leitha commentedon Feb 7, 2025
Hi, any updates? Thank you
matteo-goghero-leitha commentedon Sep 3, 2025
Still no updates or workarounds? Thanks
DanicMa commentedon Oct 22, 2025
This still happens on some devices with
com.google.maps.android:maps-compose:6.12.1andandroidx.compose:compose-bom:2025.10.00... any updates? 🙏ln-12 commentedon Oct 30, 2025
This is still a major issue for us. It also happens in satellite mode depending on the zoom level.
1000053001.mp4
frlgrd commentedon Dec 16, 2025
Same issue here with a map in a
ModalBottomSheetcompose BOM :
2025.12.00Google maps SDK :
6.12.2Screen_recording_20251216_180214.mp4
Enjot commentedon Mar 8, 2026
I was able to fix this issue by applying this Modifier to the
GoogleMapComposable:Should work for both
DialogandModalBottomSheet.Let me know if this fixes your issue as well.
matteo-goghero-leitha commentedon Mar 10, 2026
@Enjot solution did the trick for me, thanks!
Enjot commentedon Mar 13, 2026
@matteo-goghero-leitha let's keep it open so that authors of the library can fix this on their side
matteo-goghero-leitha commentedon Mar 13, 2026
You're right