googlemaps / android-maps-utils

Maps SDK for Android Utility Library
https://developers.google.com/maps/documentation/android-sdk/utility
Apache License 2.0
3.54k stars 1.53k forks source link

Add AdvancedMarkerManager Collection #1321

Closed jan-kozinski closed 5 months ago

jan-kozinski commented 5 months ago

Hi everybody, I'm trying to add AdvancedMarkers support to the react-native-maps library, but the progress is blocked by a lack of AdvancedMarkerManager collection package

Is your feature request related to a problem? Please describe. The library react-native-maps utilises com.google.maps.android.collections.MarkerManager package. Now, I wanted to implement the Advanced Markers in the library, but since there is no AdvancedMarkerManager collection package, the progress is blocked.

Describe the solution you'd like com.google.maps.android.collections.AdvancedMarkerManager package is added

Describe alternatives you've considered

Additional context The MapManager collection is used in those two files

wangela commented 5 months ago

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@jan-kozinski Thank you for opening this issue. šŸ™ Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

jan-kozinski commented 5 months ago

Just checked with the code and the existing MarkerManager.Collection supports the AdvancedMarkers collection. The error can be solved by casting the type AdvancedMarker

AdvancedMarker marker = (AdvancedMarker) markerCollection.addMarker(getAdvancedMarkerOptions());