public final class WFSManager extends java.lang.Object implements MapOverlay2, DeepMapItemQuery
Constructor and Description |
---|
WFSManager(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String uri,
java.lang.String mime,
FeatureLayer layer) |
boolean |
contains(java.lang.String uri) |
MapItem |
deepFindClosestItem(GeoPoint location,
double threshold,
java.util.Map<java.lang.String,java.lang.String> metadata)
Finds the closest MapItem to the specified point, that falls within the specified threshold.
|
MapItem |
deepFindItem(java.util.Map<java.lang.String,java.lang.String> metadata) |
java.util.Collection<MapItem> |
deepFindItems(GeoBounds bounds,
java.util.Map<java.lang.String,java.lang.String> metadata)
Find map items within given boundaries
|
java.util.Collection<MapItem> |
deepFindItems(GeoPoint location,
double radius,
java.util.Map<java.lang.String,java.lang.String> metadata)
Find map items within a given area
|
java.util.List<MapItem> |
deepFindItems(java.util.Map<java.lang.String,java.lang.String> metadata) |
MapItem |
deepHitTest(int xpos,
int ypos,
GeoPoint point,
MapView view)
Perform a hit-test for map items
|
java.util.SortedSet<MapItem> |
deepHitTestItems(int xpos,
int ypos,
GeoPoint point,
MapView view)
Perform a hit-test for map items
|
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListFilter prefFilter)
Returns the model that may be used to build a UI to interact with the overlay.
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter adapter,
long capabilities,
HierarchyListItem.Sort preferredSort)
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()
|
void |
remove(FeatureLayer layer) |
FeatureLayer |
remove(java.lang.String uri) |
int |
size() |
public WFSManager(MapView mapView)
public int size()
public boolean contains(java.lang.String uri)
public boolean add(java.lang.String uri, java.lang.String mime, FeatureLayer layer)
public void remove(FeatureLayer layer)
public FeatureLayer remove(java.lang.String uri)
public java.lang.String getIdentifier()
MapOverlay
getIdentifier
in interface MapOverlay
public java.lang.String getName()
MapOverlay
getName
in interface 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.
getRootGroup
in interface MapOverlay
null
if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction
in interface MapOverlay
public HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListItem.Sort preferredSort)
MapOverlay
null
, the overlay
will not appear in the list.getListModel
in interface MapOverlay
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.preferredSort
- The preferred sorting order to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified sort will compromise performance. An ascending alphabetic sort is
recommended as the default.null
if the
overlay should not be included in the list.public HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListFilter prefFilter)
MapOverlay2
null
, the overlay
will not appear in the list.getListModel
in interface MapOverlay2
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.prefFilter
- 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 MapItem deepFindItem(java.util.Map<java.lang.String,java.lang.String> metadata)
deepFindItem
in interface DeepMapItemQuery
public java.util.List<MapItem> deepFindItems(java.util.Map<java.lang.String,java.lang.String> metadata)
deepFindItems
in interface DeepMapItemQuery
public MapItem deepFindClosestItem(GeoPoint location, double threshold, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuery
deepFindClosestItem
in interface DeepMapItemQuery
location
- The locationthreshold
- The search threshold, in meters. Only items that are within this distance
from the point are considered. If no threshold is desired, the value
0.0d
should be specified.metadata
- Extra query metadatapublic java.util.Collection<MapItem> deepFindItems(GeoPoint location, double radius, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuery
deepFindItems
in interface DeepMapItemQuery
location
- Geodetic locationradius
- Radius in metersmetadata
- Extra query metadatapublic java.util.Collection<MapItem> deepFindItems(GeoBounds bounds, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuery
deepFindItems
in interface DeepMapItemQuery
bounds
- Geodetic boundariesmetadata
- Extra query metadatapublic MapItem deepHitTest(int xpos, int ypos, GeoPoint point, MapView view)
DeepMapItemQuery
deepHitTest
in interface DeepMapItemQuery
xpos
- X-positionypos
- Y-positionpoint
- Ppoint on the map that was touchedview
- Map viewpublic java.util.SortedSet<MapItem> deepHitTestItems(int xpos, int ypos, GeoPoint point, MapView view)
DeepMapItemQuery
deepHitTestItems
in interface DeepMapItemQuery
xpos
- X-positionypos
- Y-positionpoint
- Ppoint on the map that was touchedview
- Map view