Closed ericberman closed 2 years ago
This results in a blank map on some Android 12 devices. Switching to request legacy renderer, while keeping this issue open to switch again when this is formally rolled out sometime in 2022. Looks like an Android bug.
Call MapsInitializer.initialize(getApplicationContext(), MapsInitializer.Renderer.LATEST, this); instead of Renderer.LEGACY when sure it will work...
Per https://developers.google.com/android/reference/com/google/android/gms/maps/MapsInitializer: "If you are using MapFragment or MapView and have already obtained a (non-null) GoogleMap by calling getMapAsync() on either of these classes and waiting for the onMapReady(GoogleMap map) callback, then you do not need to worry about this class."
So I'm going to back out these changes and not bother upgrading.
Some of your projects use Maps SDK for Android. Try the new upgrade to test the improved renderer and other features. Hello Google Maps Platform Customer, We're writing to inform you that we released a major update of Maps SDK for Android (version 18.0.0), and it is now available via Google Play services. This Maps SDK update features a new map renderer, which will become the default renderer for Android devices through a progressive rollout, starting in March 2022 at the earliest. Update to the new SDK (version 18.0.0) now to test and deploy the new SDK and renderer with your apps before the new renderer becomes the default for Android devices. We’ve improved how we serve tiles to your apps and render the map on client devices with the new SDK. Therefore, Android devices will benefit from: • Reduced network load, processing demand, and memory consumption. • Improved gesture handling for better animations, plus smoother panning and zooming. • More fluid transitions and clearly positioned map labels. • A more stable and improved user experience for future map innovations on Android. The new SDK also includes the general availability of Cloud-based maps styling on mobile (Android and iOS). Usage of Cloud-based maps styling for a map in Maps SDK for Android is billed with the Dynamic Maps SKU. For more information on pricing and included features, see our Cloud-based maps styling documentation. *All devices on Android 5.0 (Lollipop) or later with 2 GB or more of data storage will use the new renderer. All other devices will continue to use the legacy renderer until further notice. What do I need to do? To anticipate and avoid issues with your apps we advise you to: