Jérémy CROS
08/16/2022, 10:08 AMAndroidView(
modifier = Modifier
.fillMaxWidth()
.constrainAs(map) {
top.linkTo(<http://parent.top|parent.top>)
bottom.linkTo(<http://bottomBar.top|bottomBar.top>)
},
factory = { context ->
MapView(
context,
mapInitOptions = MapInitOptions(
context,
mapResourceOptions,
styleUri = mapStyleUri
)
)
},
update = {
// Looking to do stuff here
}
)
if (shouldDrawRoadmap) { mapview.drawRoadmap() }
mapview.drawUserLocation()
But it seems strange... Like there’s a better way to do it with states or remembers or something else....
Any idea that could point us in the right direction? 🙂
Thanks for any help! 🙏Colton Idle
08/17/2022, 3:40 PMJérémy CROS
08/17/2022, 5:06 PM