googlemaps / googlemaps/android-maps-compose

rememberCameraPositionState() should accept `inputs` parameter

Open
#198 9 comments 3 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Kotlin
Stars
1.3k
Forks
181
Avg merge
2d 23h
Merged PRs (30d)
18

Description

I noticed that in version 2.7.0 of `maps-compose` the function [rememberCameraPositionState](https://github.com/googlemaps/android-maps-compose/blob/202f34fc660046f3ce14ae827fa27d72ef7b9853/maps-compose/src/main/java/com/google/maps/android/compose/CameraPositionState.kt#L45-L51) does not accept an `inputs` parameter although it just delegates to `rememberSaveable`, which has `vararg inputs: Any?`. Is this a deliberate design decision?

I have a situation where the value actually should be recreated because latitude and longitude change after the user has selected a different location.

I'm happy to provide a pull request if this is a desired change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.