public class FeatureOverlayQuery extends Object
| Constructor and Description |
|---|
FeatureOverlayQuery(Context context,
BoundedOverlay boundedOverlay,
FeatureTiles featureTiles)
Constructor
|
FeatureOverlayQuery(Context context,
FeatureOverlay featureOverlay)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
buildClickBoundingBox(LatLng latLng,
BoundingBox mapBounds)
Build a bounding box using the location coordinate click location and map view bounds
|
String |
buildMapClickMessage(LatLng latLng,
View view,
GoogleMap map)
Perform a query based upon the map click location and build a info message
|
String |
buildMapClickMessage(LatLng latLng,
View view,
GoogleMap map,
mil.nga.sf.proj.Projection projection)
Perform a query based upon the map click location and build a info message
|
String |
buildMapClickMessageWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance)
Perform a query based upon the map click location and build a info message
|
String |
buildMapClickMessageWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance,
mil.nga.sf.proj.Projection projection)
Perform a query based upon the map click location and build a info message
|
FeatureTableData |
buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map)
Perform a query based upon the map click location and build feature table data
|
FeatureTableData |
buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map,
mil.nga.sf.proj.Projection projection)
Perform a query based upon the map click location and build feature table data
|
FeatureTableData |
buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance)
Perform a query based upon the map click location and build feature table data
|
FeatureTableData |
buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance,
mil.nga.sf.proj.Projection projection)
Perform a query based upon the map click location and build feature table data
|
String |
buildMaxFeaturesInfoMessage(long tileFeaturesCount)
Get a max features information message
|
void |
close()
Close the feature overlay query connection
|
BoundedOverlay |
getBoundedOverlay()
Get the bounded overlay
|
FeatureInfoBuilder |
getFeatureInfoBuilder()
Get the feature info builder
|
FeatureTiles |
getFeatureTiles()
Get the feature tiles
|
float |
getScreenClickPercentage()
Get the screen click percentage, between 0.0 and 1.0
|
boolean |
isIndexed()
Check if the features are indexed
|
boolean |
isMoreThanMaxFeatures(long tileFeaturesCount)
Determine if the provided count of features in the tile is more than the configured max features per tile
|
boolean |
isOnAtCurrentZoom(double zoom,
LatLng latLng)
Determine if the feature overlay is on for the provided zoom level at the location
|
boolean |
isOnAtCurrentZoom(GoogleMap map,
LatLng latLng)
Determine if the the feature overlay is on for the current zoom level of the map at the location
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox)
Query for features in the WGS84 projected bounding box
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox,
mil.nga.sf.proj.Projection projection)
Query for features in the bounding box
|
void |
setScreenClickPercentage(float screenClickPercentage)
Set the screen click percentage, between 0.0 and 1.0
|
long |
tileFeatureCount(LatLng latLng,
double zoom)
Get the count of features in the tile at the lat lng coordinate and zoom level
|
long |
tileFeatureCount(LatLng latLng,
int zoom)
Get the count of features in the tile at the lat lng coordinate and zoom level
|
public FeatureOverlayQuery(Context context, FeatureOverlay featureOverlay)
context - contextfeatureOverlay - feature overlaypublic FeatureOverlayQuery(Context context, BoundedOverlay boundedOverlay, FeatureTiles featureTiles)
context - contextboundedOverlay - bounded overlayfeatureTiles - feature tilespublic void close()
public BoundedOverlay getBoundedOverlay()
public FeatureTiles getFeatureTiles()
public FeatureInfoBuilder getFeatureInfoBuilder()
public float getScreenClickPercentage()
public void setScreenClickPercentage(float screenClickPercentage)
screenClickPercentage - screen click percentagepublic boolean isOnAtCurrentZoom(GoogleMap map,
LatLng latLng)
map - google maplatLng - lat lon locationpublic boolean isOnAtCurrentZoom(double zoom,
LatLng latLng)
zoom - zoom levellatLng - lat lon locationpublic long tileFeatureCount(LatLng latLng,
double zoom)
latLng - lat lng locationzoom - zoom levelpublic long tileFeatureCount(LatLng latLng,
int zoom)
latLng - lat lng locationzoom - zoom levelpublic boolean isMoreThanMaxFeatures(long tileFeaturesCount)
tileFeaturesCount - tile features countpublic BoundingBox buildClickBoundingBox(LatLng latLng, BoundingBox mapBounds)
latLng - click locationmapBounds - map boundspublic FeatureIndexResults queryFeatures(BoundingBox boundingBox)
boundingBox - query bounding box in WGS84 projectionpublic FeatureIndexResults queryFeatures(BoundingBox boundingBox, mil.nga.sf.proj.Projection projection)
boundingBox - query bounding boxprojection - bounding box projectionpublic boolean isIndexed()
public String buildMaxFeaturesInfoMessage(long tileFeaturesCount)
tileFeaturesCount - tile features countpublic String buildMapClickMessage(LatLng latLng, View view, GoogleMap map)
latLng - locationview - viewmap - Google Mappublic String buildMapClickMessage(LatLng latLng, View view, GoogleMap map, mil.nga.sf.proj.Projection projection)
latLng - locationview - viewmap - Google Mapprojection - desired geometry projectionpublic String buildMapClickMessageWithMapBounds(LatLng latLng, double zoom, BoundingBox mapBounds, double tolerance)
latLng - locationzoom - current zoom levelmapBounds - map view boundstolerance - tolerance distancepublic String buildMapClickMessageWithMapBounds(LatLng latLng, double zoom, BoundingBox mapBounds, double tolerance, mil.nga.sf.proj.Projection projection)
latLng - locationzoom - current zoom levelmapBounds - map view boundstolerance - tolerance distanceprojection - desired geometry projectionpublic FeatureTableData buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map)
latLng - locationview - viewmap - Google Mappublic FeatureTableData buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map,
mil.nga.sf.proj.Projection projection)
latLng - locationview - viewmap - Google Mapprojection - desired geometry projectionpublic FeatureTableData buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance)
latLng - locationzoom - current zoom levelmapBounds - map view boundstolerance - distance tolerancepublic FeatureTableData buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
double tolerance,
mil.nga.sf.proj.Projection projection)
latLng - locationzoom - current zoom levelmapBounds - map view boundstolerance - distance toleranceprojection - desired geometry projection