public class GRGDeepMapItemQuery extends FeatureDataStoreDeepMapItemQuery implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, MapItem.OnVisibleChangedListener
groupId, layer, noVisibilitySupport, spatialDb, uidPrefix
Constructor and Description |
---|
GRGDeepMapItemQuery(FeatureLayer3 layer,
AbstractDataStoreRasterLayer2 grgDataStore) |
Modifier and Type | Method and Description |
---|---|
java.util.SortedSet<MapItem> |
deepHitTest(MapView mapView,
HitTestQueryParameters params)
Perform a hit-test given a set of query parameters
NOTE: This is called on the GL thread
|
java.util.SortedSet<MapItem> |
deepHitTest(MapView mapView,
HitTestQueryParameters params,
java.util.Map<Layer2,java.util.Collection<HitTestControl>> controls)
Perform a hit test with access to hit test controls
NOTE: This is called on the GL thread with a lock on the map controls
Do NOT call
MapRenderer3#visitControl(Layer2, Visitor, Class)
or any related method here or else the app will deadlock. |
protected MapItem |
featureToMapItem(Feature feature) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
void |
onVisibleChanged(MapItem item) |
deepFindClosestItem, deepFindItem, deepFindItems, deepFindItems, deepFindItems, deepHitTest, deepHitTestItems, deepHitTestItemsImpl, getFeatureUID, getFeatureUID
public GRGDeepMapItemQuery(FeatureLayer3 layer, AbstractDataStoreRasterLayer2 grgDataStore)
protected MapItem featureToMapItem(Feature feature)
featureToMapItem
in class FeatureDataStoreDeepMapItemQuery
public java.util.SortedSet<MapItem> deepHitTest(MapView mapView, HitTestQueryParameters params)
DeepHitTestQuery
deepHitTest
in interface DeepHitTestControlQuery
deepHitTest
in interface DeepHitTestQuery
mapView
- Map view instanceparams
- Hit-test query parameters (location of hit, bounds, etc.)public java.util.SortedSet<MapItem> deepHitTest(MapView mapView, HitTestQueryParameters params, java.util.Map<Layer2,java.util.Collection<HitTestControl>> controls)
DeepHitTestControlQuery
MapRenderer3#visitControl(Layer2, Visitor, Class)
or any related method here or else the app will deadlock.
This is why the controls are provided upfront.deepHitTest
in interface DeepHitTestControlQuery
deepHitTest
in class FeatureDataStoreDeepMapItemQuery
mapView
- Map viewparams
- Hit test parameterscontrols
- Hit test controls mapped by layerpublic void onSharedPreferenceChanged(android.content.SharedPreferences prefs, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onVisibleChanged(MapItem item)
onVisibleChanged
in interface MapItem.OnVisibleChangedListener