An enumeration specifying how an AdvancedMarkerElement
should behave when it collides with another
AdvancedMarkerElement or with the basemap labels on a vector
map.
Note: AdvancedMarkerElement to
AdvancedMarkerElement collision works on both raster and
vector maps, however, AdvancedMarkerElement to base
map's label collision only works on vector maps.
The DOM Element backing the visual of an
AdvancedMarkerElement.
Note:
AdvancedMarkerElement does not clone the passed-in DOM
element. Once the DOM element is passed to an
AdvancedMarkerElement, passing the same DOM element to
another AdvancedMarkerElement will move the DOM element and
cause the previous AdvancedMarkerElement to look empty.
Available only in the v=beta channel: https://goo.gle/3oAthT3.
If true, the AdvancedMarkerElement will be
clickable and trigger the gmp-click event, and will be
interactive for accessibility purposes (e.g. allowing keyboard navigation
via arrow keys).
If true, the AdvancedMarkerElement can be
dragged.
Note: AdvancedMarkerElement
with altitude is not draggable.
Map on which to display the AdvancedMarkerElement. The map
is required to display the AdvancedMarkerElement and can be
provided by setting google.maps.marker.AdvancedMarkerElement.map
if not provided at the construction.
Sets the AdvancedMarkerElement's position. An
AdvancedMarkerElement may be constructed without a position,
but will not be displayed until its position is provided - for example,
by a user's actions or choices. An
AdvancedMarkerElement's position can be provided by
setting google.maps.marker.AdvancedMarkerElement.position if not
provided at the construction.
Note:
AdvancedMarkerElement with altitude is only supported on
vector maps.
Rollover text. If provided, an accessibility text (e.g. for use with
screen readers) will be added to the AdvancedMarkerElement
with the provided value.
All AdvancedMarkerElements are displayed on the map in order
of their zIndex, with higher values displaying in front of
AdvancedMarkerElements with lower values. By default,
AdvancedMarkerElements are displayed according to their
vertical position on screen, with lower
AdvancedMarkerElements appearing in front of
AdvancedMarkerElements farther up the screen. Note that
zIndex is also used to help determine relative priority
between google.maps.CollisionBehavior.OPTIONAL_AND_HIDES_LOWER_PRIORITY Advanced
Markers. A higher zIndex value indicates higher priority.
Generated using TypeDoc
Options for constructing an google.maps.marker.AdvancedMarkerElement.