MapElement: revert clear(), #735

This commit is contained in:
Emux
2019-07-31 13:57:06 +03:00
parent 4be42dbc0f
commit 900448f8d3
2 changed files with 2 additions and 1 deletions

View File

@@ -114,7 +114,6 @@ public class MapElement extends GeometryBuffer {
@Override
public MapElement clear() {
labelPosition = null;
layer = 5;
super.clear();
return this;

View File

@@ -963,6 +963,8 @@ public class MapDatabase implements ITileDataSource {
if (labelPosition != null && wayDataBlock == 0)
e.setLabelPosition(e.points[0] + labelPosition[0], e.points[1] + labelPosition[1]);
else
e.labelPosition = null;
mTileProjection.project(e);