public class MapOverlayParent extends AbstractMapOverlay2
Modifier and Type | Class and Description |
---|---|
class |
MapOverlayParent.ListModelImpl |
Constructor and Description |
---|
MapOverlayParent(MapView mapView,
java.lang.String id,
java.lang.String name,
java.lang.String iconUri,
int order,
boolean alwaysVisible) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(MapOverlay overlay) |
void |
clear() |
MapOverlay |
get(java.lang.String id) |
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
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.
|
static MapOverlayParent |
getOrAddParent(MapView mapView,
java.lang.String id,
java.lang.String name,
java.lang.String iconUri,
int order,
boolean alwaysVisible)
Fetch and return MapOverlayParent with specified ID.
|
java.util.List<MapOverlay> |
getOverlays() |
static MapOverlayParent |
getParent(MapView mapView,
java.lang.String id) |
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
void |
remove(MapOverlay overlay) |
MapOverlay |
remove(java.lang.String id) |
getListModel
public MapOverlayParent(MapView mapView, java.lang.String id, java.lang.String name, java.lang.String iconUri, int order, boolean alwaysVisible)
public boolean add(MapOverlay overlay)
public MapOverlay get(java.lang.String id)
public java.util.List<MapOverlay> getOverlays()
public void remove(MapOverlay overlay)
public MapOverlay remove(java.lang.String id)
public void clear()
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 adapter, long capabilities, HierarchyListFilter filter)
MapOverlay2
null
, the overlay
will not appear in the list.adapter
- 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.public static MapOverlayParent getOrAddParent(MapView mapView, java.lang.String id, java.lang.String name, java.lang.String iconUri, int order, boolean alwaysVisible)
mapView
- the map view needed for looking up the map overlayid
- the identifier usedto identify the map overlayname
- the parent nameiconUri
- the icon name for the parentorder
- the ordering as an integeralwaysVisible
- true if the parent is always visiblepublic static MapOverlayParent getParent(MapView mapView, java.lang.String id)