Fix in New Zealand, green map coverage overlay sometimes doesn't match map #1749
This commit is contained in:
parent
f8d99c4623
commit
59b6d0f1ef
1 changed files with 4 additions and 4 deletions
|
@ -176,11 +176,11 @@ public class MapVectorLayer extends BaseMapLayer {
|
|||
canvas.rotate(rot, currentViewport.getCenterPixelX(), currentViewport.getCenterPixelY());
|
||||
final RotatedTileBox calc = currentViewport.copy();
|
||||
calc.setRotate(bmpLoc.getRotate());
|
||||
QuadPointDouble lt = calc.getLeftTopTile(bmpLoc.getZoom());
|
||||
QuadPointDouble rb = calc.getRightBottomTile(bmpLoc.getZoom());
|
||||
QuadPointDouble lt = bmpLoc.getLeftTopTile(bmpLoc.getZoom());
|
||||
QuadPointDouble rb = bmpLoc.getRightBottomTile(bmpLoc.getZoom());
|
||||
final float x1 = calc.getPixXFromTile(lt.x, lt.y, bmpLoc.getZoom());
|
||||
final float x2 = calc.getPixXFromTile(lt.x, lt.y, bmpLoc.getZoom());
|
||||
final float y1 = calc.getPixYFromTile(rb.x, rb.y, bmpLoc.getZoom());
|
||||
final float x2 = calc.getPixXFromTile(rb.x, rb.y, bmpLoc.getZoom());
|
||||
final float y1 = calc.getPixYFromTile(lt.x, lt.y, bmpLoc.getZoom());
|
||||
final float y2 = calc.getPixYFromTile(rb.x, rb.y, bmpLoc.getZoom());
|
||||
|
||||
// LatLon lt = bmpLoc.getLeftTopLatLon();
|
||||
|
|
Loading…
Reference in a new issue