ItemizedLayer: use getters for accessing the items, closes #6

This commit is contained in:
Emux 2016-06-17 12:21:58 +03:00
parent 92c10edb11
commit 35d8d2d57e

View File

@ -2,6 +2,7 @@
* Copyright 2012 osmdroid authors: Nicolas Gramlich, Theodore Hong, Fred Eisele * Copyright 2012 osmdroid authors: Nicolas Gramlich, Theodore Hong, Fred Eisele
* *
* Copyright 2013 Hannes Janetzek * Copyright 2013 Hannes Janetzek
* Copyright 2016 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).
* *
@ -181,8 +182,8 @@ public class ItemizedLayer<Item extends MarkerItem> extends MarkerLayer<Item>
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
Item item = mItemList.get(i); Item item = mItemList.get(i);
if (!box.contains(item.geoPoint.longitudeE6, if (!box.contains(item.getPoint().longitudeE6,
item.geoPoint.latitudeE6)) item.getPoint().latitudeE6))
continue; continue;
mapPosition.toScreenPoint(item.getPoint(), mTmpPoint); mapPosition.toScreenPoint(item.getPoint(), mTmpPoint);