android-maps-compose icon indicating copy to clipboard operation
android-maps-compose copied to clipboard

Map recomposes every time location changes in sample LocationTrackingActivity

Open cf256 opened this issue 2 years ago • 2 comments

Not sure if this is they way it's supposed to work (or if it has any performance implications), but it looks like the entire GoogleMaps composable recomposes when the location changes in the LocationTrackingActivity sample.

I would expect only the cameraPosition to change + the blue dot, not the entire map.

See attached video from Layout Inspector in Android Studio

https://user-images.githubusercontent.com/6727140/229069754-0d05fe06-9941-442e-b21c-86fba22b2d45.mov

cf256 avatar Mar 31 '23 08:03 cf256

Seems likely related to #293.

DSteve595 avatar Apr 03 '23 18:04 DSteve595

any update here? seems that any child composables of the map are being recomposed regardless of their state

cwsiteplan avatar Sep 18 '23 11:09 cwsiteplan