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.
Set if the marker must be placed and will hide any OPTIONAL_AND_HIDES_LOWER_PRIORITY markers
or labels that would overlap with the marker.
Inherited Method Summary
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
annotationType()
abstract
boolean
equals(Object arg0)
abstract
int
hashCode()
abstract
String
toString()
Constants
public
static
final
int
OPTIONAL_AND_HIDES_LOWER_PRIORITY
Set if the marker may be replaced/overlapped by a required marker or replaced by an
OPTIONAL_AND_HIDES_LOWER_PRIORITY marker with higher priority.
Constant Value:
2
public
static
final
int
REQUIRED
Set if the marker must be placed and may be overlapped with other markers or labels. This is
the default behavior.
Constant Value:
0
public
static
final
int
REQUIRED_AND_HIDES_OPTIONAL
Set if the marker must be placed and will hide any OPTIONAL_AND_HIDES_LOWER_PRIORITY markers
or labels that would overlap with the marker. It may be overlapped with other required
markers.