public abstract class MarkerLayer<Item extends MarkerInterface> extends Layer
MarkerInterface as markers to a map. The item with the
lowest index is drawn as last and therefore the 'topmost' marker. It also
gets checked for onTap first. This class is generic, because you then you get
your custom item-class passed back in onTap(). << TODO| Modifier and Type | Class and Description |
|---|---|
static interface |
MarkerLayer.Snappable
TODO
Interface definition for overlays that contain items that can be snapped
to (for example, when the user invokes a zoom, this could be called
allowing the user to snap the zoom to an interesting point.)
|
| Modifier and Type | Field and Description |
|---|---|
protected Item |
mFocusedItem |
protected MarkerRenderer |
mMarkerRenderer |
| Constructor and Description |
|---|
MarkerLayer(Map map,
MarkerRendererFactory markerRendererFactory) |
MarkerLayer(Map map,
MarkerSymbol defaultSymbol) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Item |
createItem(int i)
Method by which subclasses create the actual Items.
|
Item |
getFocus() |
void |
populate()
Utility method to perform all processing on a new ItemizedOverlay.
|
void |
setFocus(Item item)
TODO
If the given Item is found in the overlay, force it to be the current
focus-bearer.
|
abstract int |
size()
The number of items in this overlay.
|
getRenderer, isEnabled, map, onDetach, setEnabledprotected final MarkerRenderer mMarkerRenderer
protected Item extends MarkerInterface mFocusedItem
public MarkerLayer(Map map, MarkerSymbol defaultSymbol)
public MarkerLayer(Map map, MarkerRendererFactory markerRendererFactory)
protected abstract Item createItem(int i)
public abstract int size()
public final void populate()
public void setFocus(Item item)
item - public Item getFocus()