clear ItemizedOverlay

This commit is contained in:
Hannes Janetzek
2013-10-09 01:55:51 +02:00
parent 019c39d8b8
commit be67647bdd
2 changed files with 16 additions and 1 deletions
@@ -112,6 +112,13 @@ public abstract class ItemizedOverlay<Item extends OverlayItem> extends Overlay
int numVisible = 0;
synchronized (lock) {
if (mItems == null) {
if (layers.textureLayers != null) {
layers.clear();
newData = true;
}
return;
}
// check changes
for (InternalItem it = mItems; it != null; it = it.next) {