Looks like there's a bug in the Crane Compose sample, here:
See this line where the map is updated e.g. by a change in zoom.
The map preparation coroutine will run with every recomposition.
Firstly it feels to me like running
getMapAsync
every time is rather inefficient, the first returned instance could be cached? But ok, if we let that pass and assume that the same Map instance will be returned each time... then this code is continually adding more MapMarkers to the map and never removing them?
a
Adam Powell
04/08/2021, 1:21 PM
cc @nickbutcher
👀 1
d
darkmoon_uk
04/09/2021, 12:08 AM
cc @Manuel Vivo 👆
m
Manuel Vivo
04/12/2021, 6:37 AM
Thanks! I’ll take a look, I think we’re relying on