Guy Bieber
06/04/2020, 3:15 AMJohn O'Reilly
07/05/2020, 1:38 PMSupportMapFragment
right now and looking to get working with Compose....curious how data source that for example drives placement of markers would be managed.....and likewise where panning of map triggers data query/updateAndroidView
....do you know of any examples of this used for a map like this?AndroidView
with a layout file that includes com.google.android.gms.maps.SupportMapFragment
fragment ....looking next at what options are for accessing map and tying in for example with map lifecycle callbacksAndroidView(resId = R.layout.fragment_nearby, modifier = Modifier.weight(0.4f)) {
val mapFragment = fragmentManager.findFragmentById(R.id.map) as SupportMapFragment
mapFragment.getMapAsync {map ->
map.isMyLocationEnabled = true
}
}