public final class PositionIndicator
extends java.lang.Object
PositioningManager
Modifier and Type | Method and Description |
---|---|
Image |
getMarker()
Gets the current marker image.
|
int |
getZIndex()
Get the Z index of the position indicator.
|
boolean |
isAccuracyIndicatorVisible()
Gets the current visibility state of the GPS accuracy indicator.
|
boolean |
isVisible()
Gets the
boolean indicating whether the PositionIndicator instance is
visible. |
PositionIndicator |
setAccuracyIndicatorVisible(boolean visible)
Sets a GPS accuracy indicator for the
PositionIndicator to be either visible or
hidden. |
PositionIndicator |
setMarker(Image marker)
Sets a marker image, overriding the default marker image.
|
PositionIndicator |
setVisible(boolean visible)
Sets a
PositionIndicator to be either visible or hidden. |
PositionIndicator |
setZIndex(int index)
Set the Z index of the position indicator.
|
public PositionIndicator setMarker(Image marker)
marker
- An Image
representing the marker used to display the current position on a
mappublic Image getMarker()
Image
used to display the current position on a mappublic PositionIndicator setVisible(boolean visible)
PositionIndicator
to be either visible or hidden. By default, the position
indicator is invisible.visible
- A boolean
specifying PositionIndicator
visibilitypublic boolean isVisible()
boolean
indicating whether the PositionIndicator
instance is
visible.PositionIndicator
is visible, false otherwisepublic PositionIndicator setAccuracyIndicatorVisible(boolean visible)
PositionIndicator
to be either visible or
hidden. Accuracy is represented by a circle surrounding the marked position, with a smaller
diameter representing higher accuracy. The default is the GPS accuracy is visible.
Note: if the PositionIndicator
is hidden, the GPS accuracy indicator will be hidden
as well.
visible
- A boolean
specifying whether the accuracy indicator should be visiblesetVisible(boolean)
public boolean isAccuracyIndicatorVisible()
public int getZIndex()
public PositionIndicator setZIndex(int index)
index
- A new z-index value for the MapObject
, a 16-bit int
within the
range of [0..65535]MapObject.setZIndex(int)