Fix viewport change
This commit is contained in:
parent
31a3ec3b05
commit
9a35b70773
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ public class TileEndpoint implements OsmAndHttpServer.ApiEndpoint {
|
||||||
int timeout = 0;
|
int timeout = 0;
|
||||||
try {
|
try {
|
||||||
AsyncLoadingThread athread = mapActivity.getMyApplication().getResourceManager().getAsyncLoadingThread();
|
AsyncLoadingThread athread = mapActivity.getMyApplication().getResourceManager().getAsyncLoadingThread();
|
||||||
|
mapActivity.getMyApplication().getResourceManager().updateRendererMap(res.bbox, null);
|
||||||
Thread.sleep(TIMEOUT_STEP); // to do line should be removed in future
|
Thread.sleep(TIMEOUT_STEP); // to do line should be removed in future
|
||||||
while (athread.areResourcesLoading() && timeout < TIMEOUT) {
|
while (athread.areResourcesLoading() && timeout < TIMEOUT) {
|
||||||
if(lastRequestedZoom != zoom) {
|
if(lastRequestedZoom != zoom) {
|
||||||
|
|
Loading…
Reference in a new issue