AdvancedMarker
Stay organized with collections
Save and categorize content based on your preferences.
ExtendsMarker
,and
provides additional premium features.
Public Method Summary
View
|
getIconView()
Gets the view being used for the marker if the marker has any.
|
void |
|
Inherited Method Summary
From classcom.google.android.gms.maps.model.Marker
boolean |
|
float |
getAlpha()
Gets the Alpha of the marker.
|
String
|
getId()
Gets this marker's id.
|
LatLng
|
|
float |
|
String
|
|
Object
|
getTag()
Gets the tag for the marker.
|
String
|
getTitle()
Gets the title of the marker.
|
float |
getZIndex()
Returns the zIndex of the marker.
|
int |
|
void |
hideInfoWindow()
Hides the info window if it is shown from this marker.
|
boolean |
|
boolean |
isFlat()
Gets the flat setting of the Marker.
|
boolean |
isInfoWindowShown()
Returns whether the info window is currently shown above this marker.
|
boolean |
isVisible()
Gets the visibility setting of this marker.
|
void |
remove()
Removes this marker from the map.
|
void |
setAlpha(float Alpha )
Sets the Alpha (opacity) of the marker.
|
void |
setAnchor(float anchorU, float anchorV)
Sets the anchor point for the marker.
|
void |
setDraggable(boolean draggable)
Sets the draggability of the marker.
|
void |
setFlat(boolean flat)
Sets whether this marker should be flat against the maptrue
or a billboard facing the camerafalse .
|
void |
|
void |
setInfoWindowAnchor(float anchorU, float anchorV)
Specifies the point in the marker image at which to anchor the info
window when it is displayed.
|
void |
|
void |
setRotation(float rotation)
Sets the rotation of the marker in degrees clockwise about the marker's
anchor point.
|
void |
|
void |
|
void |
|
void |
setVisible(boolean visible)
Sets the visibility of this marker.
|
void |
setZIndex(float zIndex)
Sets the zIndex of the marker.
|
void |
|
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
finalClass<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
publicViewgetIconView()
Gets the view being used for the marker if the marker has any.
Returns
- view being used as a Marker icon or null
public voidsetIconView(Viewview)
Parameters
view |
the view instance to be used as a marker on the map. |
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"
}]