diff --git a/vtm/src/org/oscim/renderer/LocationRenderer.java b/vtm/src/org/oscim/renderer/LocationRenderer.java index fc91b2db5..0cd5f88e2 100644 --- a/vtm/src/org/oscim/renderer/LocationRenderer.java +++ b/vtm/src/org/oscim/renderer/LocationRenderer.java @@ -28,6 +28,11 @@ import static org.oscim.backend.GLAdapter.gl; public class LocationRenderer extends LayerRenderer { + + private static final long ANIM_RATE = 50; + private static final long INTERVAL = 2000; + + private static final float CIRCLE_SIZE = 60; private static final int SHOW_ACCURACY_ZOOM = 16; public enum Shader {SHADER_1, SHADER_2} @@ -42,11 +47,6 @@ public enum Shader {SHADER_1, SHADER_2} private int hPhase; private int hDirection; - private static final float CIRCLE_SIZE = 60; - - private static final long ANIM_RATE = 50; - private static final long INTERVAL = 2000; - private final Point mIndicatorPosition = new Point(); private final Point mScreenPoint = new Point(); @@ -199,8 +199,9 @@ public void render(GLViewport v) { if (!mLocationIsVisible /* || pos.zoomLevel < SHOW_ACCURACY_ZOOM */) { //animate(true); } else { - if (v.pos.zoomLevel >= mShowAccuracyZoom && mRadius > 0) + if (v.pos.zoomLevel >= mShowAccuracyZoom) radius = (float) (mRadius * v.pos.scale); + radius = Math.max(CIRCLE_SIZE, radius); viewShed = true; //animate(false);