Has anyone successfully observed camera position c...
# compose
m
Has anyone successfully observed camera position changes on the Compose Google Map? Using snapshotFlow in LaunchedEffect or MapEffect seems to stop observing after the first 2 states.
My problem was that I was observing the
projection
which is not observable (not exactly sure why, perhaps it's not strictly mutable state and just a getter under the hood? Hard to tell since the code source isn't available for
GoogleMap
). My solution was to observe the camera target and zoom instead, but then read the projection on each change.
c
I am using GoogleMap for Android and iOS in my KMP Compose App: https://github.com/realityexpander/FredsRoadtripStoryteller