android-maps-compose 4.3.0
The currentCameraPositionState property references only the CameraPositionState object that was initially provided to GoogleMap(). If the caller provides a new CameraPositionState object it is ignored by the currentCameraPositionState property. While providing a new CameraPositionState object is not recommended, it should not break the code.
The culprit is here, the CompositionLocalProvider() uses the originally provided cameraPositionState object rather than the delegated version from rememberUpdatedState():
|
LocalCameraPositionState provides cameraPositionState, |
android-maps-compose 4.3.0
The
currentCameraPositionStateproperty references only theCameraPositionStateobject that was initially provided toGoogleMap(). If the caller provides a newCameraPositionStateobject it is ignored by thecurrentCameraPositionStateproperty. While providing a newCameraPositionStateobject is not recommended, it should not break the code.The culprit is here, the CompositionLocalProvider() uses the originally provided
cameraPositionStateobject rather than the delegated version fromrememberUpdatedState():android-maps-compose/maps-compose/src/main/java/com/google/maps/android/compose/GoogleMap.kt
Line 140 in 6b6e0e1