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

"googleMapId" not working on IOS #5038

Closed
demoox opened this issue Apr 23, 2024 · 2 comments
Closed

"googleMapId" not working on IOS #5038

demoox opened this issue Apr 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@demoox
Copy link

demoox commented Apr 23, 2024

Summary

The googleMapId attribute does not seem to have any effect on IOS compared to the customMapStyle attribute which works very well.

As you probably know, the JSON personalization system will soon be deprecated to make way for cloud-based maps personalization.

Reproducible sample code

<MapView 
style={{ flex: 1 }} 
provider={PROVIDER_GOOGLE}
googleMapId='XXXXXXXXXXX'
initialRegion={{
  latitude: lat,
  longitude: lng,
  latitudeDelta: 0.0922,
  longitudeDelta: 0.0421
}}
showsUserLocation={true}
showsMyLocationButton={true}
>

Steps to reproduce

Create a map style on the cloud, then get the map id and set it in the "googleMapId" attribute

Expected result

.

Actual result

The default map style is applied instead of the map with the defined id.

React Native Maps Version

1.14.0

What platforms are you seeing the problem on?

iOS (Google Maps)

React Native Version

0.73.2

What version of Expo are you using?

SDK 48

Device(s)

iPhone XS Max

Additional information

No response

@demoox demoox added the bug Something isn't working label Apr 23, 2024
@mateki0
Copy link
Collaborator

mateki0 commented Apr 23, 2024

Hi @demoox. If I understood correctly it is not possible yet on iOS. We have to wait for new version of Google Maps SDK for iOS.
See description in Salah's PR.
#4922

Unfortunately for iOS without updating to google-maps SDK v 8.2 the style won't be visible .. waiting on google

@demoox
Copy link
Author

demoox commented Apr 23, 2024

Hi @mateki0 thank you for your reply.

Oh yes indeed! Hopefully the update will be done quickly :)

@demoox demoox closed this as completed Apr 23, 2024
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

2 participants