New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
Follow these steps to get set up with advanced markers.
Enable the new map renderer
An upgraded map renderer is available as of version 18.0.0 of the
Maps SDK for Android. This renderer brings many improvements, including
support for Cloud-based maps styling, to Maps SDK for Android.
With the release of version 18.2.0 of the Maps SDK for Android, Google switched the
default renderer from the legacy renderer to the upgraded map renderer. This
change means that the upgraded map renderer is now used by default in your app
when you build a new app or rebuild an existing app.
Create a map ID
To create a new map ID, follow the steps at
Create a map ID. Make sure you
set the Map type to Android.
Update your map initialization code
This step requires the map ID you just created. It can be found on your Maps
Management page.
Advanced markers requires a map ID. If the map ID is missing, or an
invalid map ID is passed, advanced markers cannot load. Use
the
MapCapabilities.isAdvancedMarkersAvailable()
method to check to see if advanced markers are supported.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-29 UTC."],[[["Advanced markers necessitate the utilization of the upgraded map renderer, available in Maps SDK for Android version 18.0.0 and later, and are enabled by default in version 18.2.0 and later."],["A crucial initial step involves creating a map ID within the Google Cloud console and integrating it into your map initialization code."],["It is imperative to verify if advanced markers are supported on the device using `MapCapabilities.isAdvancedMarkersAvailable()`, and to provide a fallback mechanism, such as standard markers, if they are not."],["Developers must ensure compatibility by checking device requirements for the new map renderer, as some devices might not support it."]]],[]]