Open initLiu opened 8 months ago
@initLiu Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
google-maps
tagThis is an automated message, feel free to ignore.
Hi @initLiu ,
It is hard to see what was going on here without a code snippet, can you provide a sample that can get this reproduced?
Also, as a rule of thumb: this can happen when you are trying to access a Marker that has been removed from the map with map.clear()
. Could you check if this is the case?
@kikoso Here is code :
val bitmapDescriptor = BitmapDescriptorFactory.fromResource(drawableResId)
val marker = mClusterRenderer?.getMarker(clusterItem)
marker?.setIcon(bitmapDescriptor)
version:
com.google.android.gms:play-services-maps:17.0.0
com.google.maps.android:android-maps-utils:3.6.0
OS version: Android 12
The exception, java.lang.IllegalArgumentException : Unmanaged descriptor is thrown when set icon for marker.