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.
Overview
With advanced markers you can create and customize highly
performant markers. Customize the default marker's background, border, and glyph
color, and replace the default marker icon with a custom
graphic image.
Advanced markers are objects of type
AdvancedMarker
,
which is a subclass of
Marker
.
With advanced markers, all the existing
Marker
properties are customizable, including:
Advanced markers add the following additional features:
- Customize colored pins
- Set any Android
View
as the marker
- Control collision behavior
Customize marker properties
Customize the default marker's background, glyph, and border color.
Use an Android view as the marker
Replace the default marker icon with an Android
View
containing a custom completely custom marker.
Set marker collision behavior
Specify how a marker should behave when it collides with
another marker or map label. Marker altitude is only supported on vector maps.
Next step
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-29 UTC.
[null,null,["Last updated 2025-01-29 UTC."],[[["Advanced markers allow you to create highly performant and customizable markers, offering control over background, border, glyph color, and the ability to replace the default icon with custom graphics."],["They inherit all existing `Marker` properties, including title, snippet, click events, and drag events, while adding features like customizing colored pins, using Android views as markers, and controlling collision behavior."],["Developers can further personalize markers by customizing the default marker's appearance, including background, glyph, and border color, or even replace it entirely with a custom Android view."],["Advanced markers also provide options for managing collision behavior, allowing developers to specify how markers should react when overlapping with other markers or map labels."]]],[]]