public class Marker extends Annotation
An InfoWindow can be shown when a Marker is pressed
mapboxMap, mapView| Constructor and Description |
|---|
Marker(BaseMarkerOptions baseMarkerOptions) |
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon() |
InfoWindow |
getInfoWindow() |
LatLng |
getPosition() |
java.lang.String |
getSnippet() |
java.lang.String |
getTitle() |
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 |
setRightOffsetPixels(int rightOffsetPixels)
Do not use this method.
|
void |
setSnippet(java.lang.String snippet) |
void |
setTitle(java.lang.String title) |
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, equals, getId, getMapboxMap, getMapView, hashCode, remove, setId, setMapboxMap, setMapViewpublic 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 setSnippet(java.lang.String snippet)
public void setIcon(Icon icon)
icon - The icon to be used as Marker imagepublic Icon getIcon()
public void setTitle(java.lang.String title)
public InfoWindow getInfoWindow()
public InfoWindow showInfoWindow(MapboxMap mapboxMap, MapView mapView)
public void setTopOffsetPixels(int topOffsetPixels)
public void setRightOffsetPixels(int rightOffsetPixels)
public java.lang.String toString()
toString in class java.lang.Object