MapElement: fix clear() method, #735
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* Copyright 2012 Hannes Janetzek
|
* Copyright 2012 Hannes Janetzek
|
||||||
* Copyright 2016 Andrey Novikov
|
* Copyright 2016 Andrey Novikov
|
||||||
* Copyright 2017-2019 Gustl22
|
* Copyright 2017-2019 Gustl22
|
||||||
* Copyright 2018 devemux86
|
* Copyright 2018-2019 devemux86
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@@ -114,6 +114,7 @@ public class MapElement extends GeometryBuffer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MapElement clear() {
|
public MapElement clear() {
|
||||||
|
labelPosition = null;
|
||||||
layer = 5;
|
layer = 5;
|
||||||
super.clear();
|
super.clear();
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -963,8 +963,6 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
|
|
||||||
if (labelPosition != null && wayDataBlock == 0)
|
if (labelPosition != null && wayDataBlock == 0)
|
||||||
e.setLabelPosition(e.points[0] + labelPosition[0], e.points[1] + labelPosition[1]);
|
e.setLabelPosition(e.points[0] + labelPosition[0], e.points[1] + labelPosition[1]);
|
||||||
else
|
|
||||||
e.labelPosition = null;
|
|
||||||
|
|
||||||
mTileProjection.project(e);
|
mTileProjection.project(e);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user