public abstract class MarkerLayer 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.)
|
Layer.EnableHandler| Modifier and Type | Field and Description |
|---|---|
protected MarkerInterface |
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 MarkerInterface |
createItem(int i)
Method by which subclasses create the actual Items.
|
MarkerInterface |
getFocus() |
void |
populate()
Utility method to perform all processing on a new ItemizedOverlay.
|
void |
setFocus(MarkerInterface 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.
|
void |
update() |
getRenderer, isEnabled, map, onDetach, setEnabled, setEnableHandlerprotected final MarkerRenderer mMarkerRenderer
protected MarkerInterface mFocusedItem
public MarkerLayer(Map map, MarkerSymbol defaultSymbol)
public MarkerLayer(Map map, MarkerRendererFactory markerRendererFactory)
protected abstract MarkerInterface createItem(int i)
public abstract int size()
public final void populate()
public void setFocus(MarkerInterface item)
item - public MarkerInterface getFocus()
public void update()