jasu
03/15/2023, 2:36 PM1. AndroidView(
2. factory = { mapView },
3. update = { mapView ->
4. mapView.getMapAsync { map ->
5. Log.e("insidemap", "${map.hashCode()}")
Problem is i'm getting new instance of map inside getMapAsync everytime there is a change in the state.
any idea why so, due to this drawn overlays, polyline and polygons are being redrawn and jerking frequently
Due to some personal reasons I'm not able to use Jetpack compose maps so please give any idea for the above impljim
03/15/2023, 7:21 PMAndroidView because it is not being created within the factory lambda. Your factory lambda is ideally supposed to create your mapView, not just return a reference to the map view. I realize that some of the AndroidView examples do a poor job of showing this, or sometimes even do the wrong thing.