googlemaps / react-native-navigation-sdk

Apache License 2.0
25 stars 4 forks source link

Add compatibility with `react-native-maps` for android. #104

Closed kirtanbodawala closed 1 month ago

kirtanbodawala commented 6 months ago

Currently when using both the dependencies together we are getting checkDebugDuplicateClasses error when having react-native-maps as dependency error. We need to use react-native-maps to show static maps with custom marker using react-native-vector-icons` which is not supported by this sdk.

Below is the example of custom marker that we would like to implement with the dynamic text in the center:

Screenshot 2024-04-12 at 3 50 21 PM

Also their are other usecases that we are still not supported by this SDK.

For more information refer to Issue 76

kirtanbodawala commented 6 months ago

@caio1985 @ArturoSalazarB16 This is been the priority for us to go to production. Can you please help?

caio1985 commented 6 months ago

hi @kirtanbodawala can you let us know if you need more features than just drawing the static map as you described? If so, would you please list them here?

Today indeed both are not compatible. However if you want to display a static map with a custom marker you can simply make a request to the Static Map API like this:

https://maps.googleapis.com/maps/api/staticmap?zoom=17&size=512x512&markers=icon:https://developers.google.com/maps/documentation/javascript/examples/full/images/info-i_maps.png|34.052230,-118.243680&key=YOUR_API_KEY

kirtanbodawala commented 6 months ago

Based on our use case we need a maps that is draggable with custom marker on a specific location, so I don't think we can use static map.

kirtanbodawala commented 6 months ago

Also we are using https://github.com/bramus/react-native-maps-directions package to show the route overview. I can use react-navigation-sdk for route overview but I don't want to include user location in the overview. Is there anyway I can disable it? See below image for example:

Screenshot 2024-04-16 at 2 35 58 PM
kirtanbodawala commented 5 months ago

@caio1985 Is there any way we can hide user location from the overview? Please see above comment for reference.

nexttrack07 commented 2 months ago

@jokerttu @illuminati1911 - Just wondering if these two libraries are compatible now with all the updates to the SDK now that we're on version 0.4.3? react-native-maps https://github.com/bramus/react-native-maps-directions

jokerttu commented 1 month ago

I've created a new feature issue (#254) that should address this issue by giving way to use classic map within this library. This won't fix the issue where two libraries are not compatible with each other, but gives workaround to use classic map views. Please follow the new issue for updates, and we’ll close this once the new feature is implemented.