public class DefaultMapGroupOverlay extends AbstractMapOverlay2
Modifier and Type | Field and Description |
---|---|
protected MapGroupHierarchyListItem |
currentList |
protected MapGroup.MapItemsCallback |
filter |
protected static MapGroup.MapItemsCallback |
HAS_DESCENDANT_ITEMS |
protected java.lang.String |
iconUri |
protected java.lang.String |
identifier |
protected MapView |
mapView |
protected java.lang.String |
name |
protected MapGroup |
rootGroup |
static java.lang.String |
TAG |
Modifier | Constructor and Description |
---|---|
|
DefaultMapGroupOverlay(MapView mapView,
MapGroup group)
Create a default map group overlay with the friendly name as the name of the overlay.
|
|
DefaultMapGroupOverlay(MapView mapView,
MapGroup group,
MapGroup.MapItemsCallback filter) |
|
DefaultMapGroupOverlay(MapView mapView,
MapGroup group,
java.lang.String iconUri)
Construct a default map group overlay with the friendly name as the name of the overlay with
a given icon described by iconUri.
|
protected |
DefaultMapGroupOverlay(MapView mapView,
java.lang.String id,
MapGroup group,
java.lang.String iconUri,
MapGroup.MapItemsCallback filter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter callback,
long actions,
HierarchyListFilter filter)
Returns the model that may be used to build a UI to interact with the overlay.
|
java.lang.String |
getName()
Returns the name of the overlay.
|
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
getListModel
public static final java.lang.String TAG
protected static final MapGroup.MapItemsCallback HAS_DESCENDANT_ITEMS
protected final MapView mapView
protected final java.lang.String identifier
protected final java.lang.String name
protected final java.lang.String iconUri
protected final MapGroup rootGroup
protected final MapGroup.MapItemsCallback filter
protected MapGroupHierarchyListItem currentList
public DefaultMapGroupOverlay(MapView mapView, MapGroup group)
public DefaultMapGroupOverlay(MapView mapView, MapGroup group, java.lang.String iconUri)
public DefaultMapGroupOverlay(MapView mapView, MapGroup group, MapGroup.MapItemsCallback filter)
protected DefaultMapGroupOverlay(MapView mapView, java.lang.String id, MapGroup group, java.lang.String iconUri, MapGroup.MapItemsCallback filter)
public java.lang.String getIdentifier()
MapOverlay
public java.lang.String getName()
MapOverlay
public MapGroup getRootGroup()
MapOverlay
MapGroup
which will contain all
subgroups and MapItem
instances for the overlay. This
method may return null
to indicate that the overlay does not contain any content
that may be selected or interact with other map items.
null
if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
public HierarchyListItem getListModel(android.widget.BaseAdapter callback, long actions, HierarchyListFilter filter)
MapOverlay2
null
, the overlay
will not appear in the list.callback
- A reference to the adapter that will be responsible for displaying the list.
The overlay may invoke BaseAdapter.notifyDataSetChanged()
if the list content is externally modified and the adapter should update.filter
- The preferred filter to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified filter will compromise performance. A filter with an ascending alphabetic sort is
recommended as the default.null
if the
overlay should not be included in the list.