Fix viewport change

This commit is contained in:
Victor Shcherb 2020-09-11 11:18:19 +02:00
parent 31a3ec3b05
commit 9a35b70773

View file

@ -92,6 +92,7 @@ public class TileEndpoint implements OsmAndHttpServer.ApiEndpoint {
int timeout = 0;
try {
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
while (athread.areResourcesLoading() && timeout < TIMEOUT) {
if(lastRequestedZoom != zoom) {