googlemaps / android-maps-compose

Jetpack Compose composables for the Maps SDK for Android

Home Page:https://developers.google.com/maps/documentation/android-sdk/maps-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

currentCameraPositionState does not handle new CameraPositionState object

bubenheimer opened this issue ยท comments

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,

๐ŸŽ‰ This issue has been resolved in version 4.3.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€