public class MarkerInfo extends BaseInfo
Toolkit users fill this class out and pass it into the addScreenMarkers() or addMarkers() call on the MaplyController.
Modifier and Type | Field and Description |
---|---|
static int |
MarkerPriorityDefault
Default priority for markers.
|
static int |
ScreenMarkerPriorityDefault |
disposeAfterUse, nativeHandle
Constructor and Description |
---|
MarkerInfo() |
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
void |
setClusterGroup(int clusterGroup)
If greater than -1 we'll sort these markers into cluster groups when zooming out.
|
void |
setColor(float r,
float g,
float b,
float a)
Set the background color for the markers.
|
void |
setColor(int color)
Set the color from a standard Android Color value.
|
void |
setLayoutImportance(float newImport)
The layout engine controls how text is displayed.
|
getDrawOffset, getDrawPriority, getEnable, getFadeIn, getFadeOut, getFadeOutTime, getShaderID, getViewDistRangeMax, getViewDistRangeMin, getViewerCenter, getVisibleHeightMax, getVisibleHeightMin, setDrawOffset, setDrawPriority, setEnable, setEnableTimes, setFade, setFadeInOut, setFadeOutTime, setMaxVis, setMinVis, setRenderTarget, setShader, setShaderID, setViewDistRange, setViewerCenter, setVisibleHeightRange, setZBufferRead, setZBufferWrite
public static int MarkerPriorityDefault
public static int ScreenMarkerPriorityDefault
public void finalize()
finalize
in class java.lang.Object
public void setColor(int color)
color
- Color value, including alpha.public void setColor(float r, float g, float b, float a)
r
- redg
- greenb
- bluea
- alphapublic void setLayoutImportance(float newImport)
Defaults to MAXFLOAT, which is off. That means the layout engine does not control the associated markers.
public void setClusterGroup(int clusterGroup)