Fix viewport change
This commit is contained in:
parent
dcc05f7129
commit
31a3ec3b05
2 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue