ItemizedLayer API enhancements, #6
This commit is contained in:
parent
79d209a225
commit
dd2f240792
@ -103,6 +103,10 @@ public class ItemizedLayer<Item extends MarkerItem> extends MarkerLayer<Item>
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<Item> getItemList() {
|
||||||
|
return mItemList;
|
||||||
|
}
|
||||||
|
|
||||||
public void removeAllItems() {
|
public void removeAllItems() {
|
||||||
removeAllItems(true);
|
removeAllItems(true);
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2013 Hannes Janetzek
|
* Copyright 2013 Hannes Janetzek
|
||||||
* Copyright 2016 Stephan Leuschner
|
* Copyright 2016 Stephan Leuschner
|
||||||
|
* 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).
|
||||||
*
|
*
|
||||||
@ -20,7 +21,6 @@
|
|||||||
* You should have received a copy of the GNU Lesser General Public License along with
|
* You should have received a copy of the GNU Lesser General Public License along with
|
||||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.oscim.layers.marker;
|
package org.oscim.layers.marker;
|
||||||
|
|
||||||
import org.oscim.core.Point;
|
import org.oscim.core.Point;
|
||||||
@ -70,7 +70,7 @@ public abstract class MarkerLayer<Item extends MarkerItem> extends Layer {
|
|||||||
* should call this as soon as it has data, before anything else gets
|
* should call this as soon as it has data, before anything else gets
|
||||||
* called.
|
* called.
|
||||||
*/
|
*/
|
||||||
protected final void populate() {
|
public final void populate() {
|
||||||
mMarkerRenderer.populate(size());
|
mMarkerRenderer.populate(size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user