public class AdvancedMarker extends Marker
Extends Marker
, 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 class com.google.android.gms.maps.model.Marker
boolean | |
float |
getAlpha()
Gets the alpha of the marker.
|
String |
getId()
Gets this marker's id.
|
LatLng |
getPosition()
Returns the position of the marker.
|
float |
getRotation()
Gets the rotation of the marker.
|
String |
getSnippet()
Gets the snippet of the marker.
|
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 |
hashCode()
|
void |
hideInfoWindow()
Hides the info window if it is shown from this marker.
|
boolean |
isDraggable()
Gets the draggability of the marker.
|
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 map
true
or a billboard facing the camera false .
|
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 |
showInfoWindow()
Shows the info window of this marker on the map, if this marker
isVisible() .
|
Public Methods
public View getIconView ()
Gets the view being used for the marker if the marker has any.
Returns
- view being used as a Marker icon or null
public void setIconView (View view)
Sets the view to be used for the marker.
If iconView
is set, the BitmapDescriptor
set via
Marker.setIcon(BitmapDescriptor)
will be ignored.
Parameters
view | the view instance to be used as a marker on the map. |
---|