AdvancedMarkerOptions.CollisionBehavior
Stay organized with collections
Save and categorize content based on your preferences.
Indicates how the marker is dealt with when involved in a collision with other markers or
base map labels.
Constant Summary
int |
OPTIONAL_AND_HIDES_LOWER_PRIORITY
|
Set if the marker may be replaced/overlapped by
a required marker or replaced by anOPTIONAL_AND_HIDES_LOWER_PRIORITY
marker with higher priority. |
int |
REQUIRED
|
Set if the marker must be placed and may be
overlapped with other markers or labels. |
int |
REQUIRED_AND_HIDES_OPTIONAL
|
Set if the marker must be placed and will hide
anyOPTIONAL_AND_HIDES_LOWER_PRIORITY markers or labels that would
overlap with the marker. |
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstractClass<? extendsAnnotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstractString
|
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.
Constant Value:1
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License,and code samples are licensed under theApache 2.0 License.For details, see theGoogle Developers Site Policies.Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label": "Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label": "Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label": "Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label": "Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label": "Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label": "Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label": "Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label": "Other"
}]