LocationPin : disable hardware rendering if needed
This commit is contained in:
parent
785587911b
commit
5f16a5658b
3 changed files with 24 additions and 6 deletions
|
|
@ -182,7 +182,11 @@ private fun LocationPinMarkerLayer(
|
|||
@Composable
|
||||
private fun rememberLocationPinImage(variant: PinVariant): ImageBitmap {
|
||||
val bitmap = rememberMarkerBitmap(variant) {
|
||||
LocationPin(variant = variant)
|
||||
LocationPin(
|
||||
variant = variant,
|
||||
// Disable as it doesn't work with the rememberMarkerBitmap method
|
||||
allowHardwareBitmapRendering = false
|
||||
)
|
||||
}
|
||||
return bitmap.asImageBitmap()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue