android-maps-compose
android-maps-compose copied to clipboard
Cannot add shadow to custom Marker info content
Environment details
- Specify the API at the beginning of the title (for example, "Places: ...") - Maps directly
- OS type and version - Android 10+
- Library version and other environment information - google.android.maps-compose=2.11.4
Steps to reproduce
- Create a custom
contentin aMarkerInfoWindowand apply a shadow Modifier to it - The shadow isn't applied and doesn't appear anywhere on the info window
If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.
@MaxMichel2 Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
-
StackOverflow - use the
google-mapstag
This is an automated message, feel free to ignore.
@MaxMichel2 , can you provide us with a code sample?
Hi @kikoso I can provide a sample.
MarkerInfoWindow(
state = MarkerState(location),
icon = if (isSelected) selectedDescriptor else unselectedDescriptor,
onClick = {
isSelected = true
false
},
onInfoWindowClick = {
},
onInfoWindowClose = {
isSelected = false
}
) {
// Has 8.dp of elevation
CustomElevatedCard (
modifier = Modifier
.padding(horizontal = 24.dp)
)
// Also tried wrapping this in a container with shadow modifier w/ no luck
}
Hope this is helpful