public class LocationRenderer extends LayerRenderer
| Modifier and Type | Field and Description |
|---|---|
static float |
CIRCLE_SIZE |
protected MapPosition |
mMapPosition
Use mMapPosition.copy(position) to keep the position for which
the Overlay is *compiled*.
|
protected float |
mScale |
protected int |
mShaderProgram |
| Constructor and Description |
|---|
LocationRenderer(Map map,
Layer layer) |
LocationRenderer(Map map,
Layer layer,
float scale) |
| Modifier and Type | Method and Description |
|---|---|
void |
animate(boolean enable) |
protected boolean |
init() |
void |
render(GLViewport v)
2.
|
void |
setAnimate(boolean animate) |
void |
setCallback(LocationCallback callback) |
void |
setCenter(boolean center) |
void |
setColor(int color) |
void |
setLocation(double x,
double y,
double radius) |
void |
setShader(java.lang.String shaderFile) |
void |
setShowAccuracyZoom(int showAccuracyZoom) |
void |
update(GLViewport v)
1.
|
isReady, setReady, setuppublic static float CIRCLE_SIZE
protected final float mScale
protected MapPosition mMapPosition
protected int mShaderProgram
public void setAnimate(boolean animate)
public void setCallback(LocationCallback callback)
public void setCenter(boolean center)
public void setColor(int color)
public void setLocation(double x,
double y,
double radius)
public void setShader(java.lang.String shaderFile)
public void setShowAccuracyZoom(int showAccuracyZoom)
public void animate(boolean enable)
public void update(GLViewport v)
LayerRendererupdate in class LayerRendererpublic void render(GLViewport v)
LayerRendererrender in class LayerRendererprotected boolean init()