Location renderer: avoid continuous rendering, closes #141
This commit is contained in:
parent
b94d943247
commit
223eb120fa
@ -6,7 +6,7 @@
|
|||||||
- Marker clustering [#312](https://github.com/mapsforge/vtm/issues/312)
|
- Marker clustering [#312](https://github.com/mapsforge/vtm/issues/312)
|
||||||
- Osmagray theme [#300](https://github.com/mapsforge/vtm/issues/300)
|
- Osmagray theme [#300](https://github.com/mapsforge/vtm/issues/300)
|
||||||
- Symbol rotation [#294](https://github.com/mapsforge/vtm/issues/294)
|
- Symbol rotation [#294](https://github.com/mapsforge/vtm/issues/294)
|
||||||
- Location renderer improvements [#317](https://github.com/mapsforge/vtm/issues/317) [#321](https://github.com/mapsforge/vtm/issues/321) [#361](https://github.com/mapsforge/vtm/issues/361)
|
- Location renderer improvements [#317](https://github.com/mapsforge/vtm/issues/317)
|
||||||
- POT textures [#334](https://github.com/mapsforge/vtm/issues/334)
|
- POT textures [#334](https://github.com/mapsforge/vtm/issues/334)
|
||||||
- OkHttp external cache [#135](https://github.com/mapsforge/vtm/issues/135)
|
- OkHttp external cache [#135](https://github.com/mapsforge/vtm/issues/135)
|
||||||
- Texture atlas improvements [#301](https://github.com/mapsforge/vtm/pull/301) [#304](https://github.com/mapsforge/vtm/pull/304)
|
- Texture atlas improvements [#301](https://github.com/mapsforge/vtm/pull/301) [#304](https://github.com/mapsforge/vtm/pull/304)
|
||||||
|
|||||||
@ -125,7 +125,8 @@ public class LocationRenderer extends LayerRenderer {
|
|||||||
|
|
||||||
long diff = System.currentTimeMillis() - lastRun;
|
long diff = System.currentTimeMillis() - lastRun;
|
||||||
mMap.postDelayed(this, Math.min(ANIM_RATE, diff));
|
mMap.postDelayed(this, Math.min(ANIM_RATE, diff));
|
||||||
mMap.render();
|
if (!mLocationIsVisible)
|
||||||
|
mMap.render();
|
||||||
lastRun = System.currentTimeMillis();
|
lastRun = System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user