public class Marker extends Annotation
InfoWindow can be shown when a Marker is pressed| Constructor and Description |
|---|
Marker(BaseMarkerOptions baseMarkerOptions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Icon |
getIcon() |
LatLng |
getPosition() |
java.lang.String |
getSnippet() |
java.lang.String |
getTitle() |
int |
hashCode() |
void |
hideInfoWindow()
Do not use this method.
|
boolean |
isInfoWindowShown()
Do not use this method.
|
void |
setIcon(Icon icon)
Sets the icon.
|
void |
setPosition(LatLng position)
Sets the position.
|
void |
setTopOffsetPixels(int topOffsetPixels)
Do not use this method.
|
InfoWindow |
showInfoWindow(MapboxMap mapboxMap,
MapView mapView)
Do not use this method.
|
java.lang.String |
toString() |
compareTo, getId, getMapboxMap, remove, setId, setMapboxMappublic Marker(BaseMarkerOptions baseMarkerOptions)
public LatLng getPosition()
public java.lang.String getSnippet()
public java.lang.String getTitle()
public void hideInfoWindow()
public boolean isInfoWindowShown()
public void setPosition(LatLng position)
position - new positionpublic void setIcon(Icon icon)
icon - The icon to be used as Marker imagepublic Icon getIcon()
public InfoWindow showInfoWindow(MapboxMap mapboxMap, MapView mapView)
public void setTopOffsetPixels(int topOffsetPixels)
public boolean equals(java.lang.Object o)
equals in class Annotationpublic int hashCode()
hashCode in class Annotationpublic java.lang.String toString()
toString in class java.lang.Object