Fix viewport change

This commit is contained in:
Victor Shcherb 2020-09-11 11:08:23 +02:00
parent dcc05f7129
commit 31a3ec3b05
2 changed files with 3 additions and 2 deletions

View file

@ -156,7 +156,8 @@ public class MapVectorLayer extends BaseMapLayer {
mapRenderer.setVisualZoomShift(zoomMagnifier - 1.0f);
} else {
if (!view.isZooming()) {
if (resourceManager.updateRenderedMapNeeded(tilesRect, drawSettings)) {
if (resourceManager.updateRenderedMapNeeded(tilesRect, drawSettings) &&
!view.isScreenViewDetached()) {
// pixRect.set(-view.getWidth(), -view.getHeight() / 2, 2 * view.getWidth(), 3 *
// view.getHeight() / 2);
final RotatedTileBox copy = tilesRect.copy();

View file

@ -108,7 +108,7 @@ public class OsmAndHttpServer extends NanoHTTPD {
}
private void registerEndpoints() {
register("/tile", new TileEndpoint(mapActivity));
register("/tile", new TileEndpoint(this));
}
private void register(String path, ApiEndpoint endpoint) {