Closed jan-kozinski closed 5 months ago
@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:
google-maps
tagThis is an automated message, feel free to ignore.
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());
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
https://github.com/react-native-maps/react-native-maps/blob/master/android/src/main/java/com/rnmaps/maps/MapView.java
https://github.com/react-native-maps/react-native-maps/blob/master/android/src/main/java/com/rnmaps/maps/MapMarker.java
When I try to swith the Markers to AdvancedMarkers, I'm getting the following error
react-native-maps/android/src/main/java/com/rnmaps/maps/MapMarker.java:432 error: incompatible types: Marker cannot be converted to AdvancedMarker marker = markerCollection.addMarker(getAdvancedMarkerOptions());
Troublesome lines are