Map overzoom: fix MapElement labelPosition processing #393
This commit is contained in:
parent
92937667d8
commit
befa40e094
@ -111,6 +111,26 @@ public class MapElement extends GeometryBuffer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MapElement scale(float scaleX, float scaleY) {
|
||||||
|
super.scale(scaleX, scaleY);
|
||||||
|
if (labelPosition != null) {
|
||||||
|
labelPosition.x *= scaleX;
|
||||||
|
labelPosition.y *= scaleY;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MapElement translate(float dx, float dy) {
|
||||||
|
super.translate(dx, dy);
|
||||||
|
if (labelPosition != null) {
|
||||||
|
labelPosition.x += dx;
|
||||||
|
labelPosition.y += dy;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return tags.toString() + '\n' + super.toString() + '\n';
|
return tags.toString() + '\n' + super.toString() + '\n';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user