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()
MapOverlaygetIdentifier in interface MapOverlaypublic java.lang.String getName()
MapOverlaygetName in interface MapOverlaypublic MapGroup getRootGroup()
MapOverlayMapGroup 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 MapOverlaynull if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction in interface MapOverlaypublic HierarchyListItem getListModel(android.widget.BaseAdapter adapter, long capabilities, HierarchyListItem.Sort preferredSort)
MapOverlaynull, the overlay
will not appear in the list.getListModel in interface MapOverlayadapter - 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)
MapOverlay2null, the overlay
will not appear in the list.getListModel in interface MapOverlay2adapter - 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 DeepMapItemQuerypublic java.util.List<MapItem> deepFindItems(java.util.Map<java.lang.String,java.lang.String> metadata)
deepFindItems in interface DeepMapItemQuerypublic MapItem deepFindClosestItem(GeoPoint location, double threshold, java.util.Map<java.lang.String,java.lang.String> metadata)
DeepMapItemQuerydeepFindClosestItem in interface DeepMapItemQuerylocation - 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)
DeepMapItemQuerydeepFindItems in interface DeepMapItemQuerylocation - 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)
DeepMapItemQuerydeepFindItems in interface DeepMapItemQuerybounds - Geodetic boundariesmetadata - Extra query metadatapublic MapItem deepHitTest(int xpos, int ypos, GeoPoint point, MapView view)
DeepMapItemQuerydeepHitTest in interface DeepMapItemQueryxpos - 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)
DeepMapItemQuerydeepHitTestItems in interface DeepMapItemQueryxpos - X-positionypos - Y-positionpoint - Ppoint on the map that was touchedview - Map view