Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] googleMapId is not working on iOS devices #5250

Open
v-andreichuk opened this issue Dec 5, 2024 · 3 comments
Open

[iOS] googleMapId is not working on iOS devices #5250

v-andreichuk opened this issue Dec 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@v-andreichuk
Copy link

Summary

When I try to apply Cloud Styling to my application - nothing happens on iOS devices. However, on Android - everything works fine

Reproducible sample code

<MapView
  googleMapId="MY_MAP_ID"
  // other props
</MapView>

Steps to reproduce

  1. Obtain/Create Custom Google Map Styling in Google Cloud Console;
  2. Create Map ID in Map Management tab;
  3. Associate Custom Map Styling with created Map ID;
  4. Copy Map ID and pass it to the MapView component via googleMapId prop;

Expected result

iOS Google Map is styles accordingly to the Google Cloud config

Actual result

iOS Google Map remains the same after passing googleMapId

React Native Maps Version

1.20.1

What platforms are you seeing the problem on?

iOS (Google Maps)

React Native Version

0.76.3

What version of Expo are you using?

Not using Expo

Device(s)

iPhone 15 Pro

Additional information

No response

@v-andreichuk v-andreichuk added the bug Something isn't working label Dec 5, 2024
@roshan-ship-it
Copy link

I'm running into the same issue, somehow react-google-map is not injecting/passing mapid value to AIRGoogleMap. If directly hardcode the mapid in the AIRGoogleMap file then it works.

@salah-ghanim
Copy link
Collaborator

salah-ghanim commented Dec 25, 2024

@v-andreichuk thanks for reporting this, it's part of the missing support for react-native Fabric / new arch.

please checkout
#5206

I will keep this open because it might get missed while doing the migration and it needs to be tested separately

@Valairan
Copy link

Valairan commented Jan 6, 2025

Has anyone found a solution?
Using a custom map style json works and the cloud style applies to andoird but on iOS the custom style does not render.
I have tried on an iPhone 11 and an iPhone SE 3rd Gen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants