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
|
BoundingBox |
buildClickBoundingBox(LatLng latLng,
View view,
GoogleMap map)
Build a bounding box using the click location, map view, and map.
|
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,
Projection projection)
Perform a query based upon the map click location and build a info message
|
String |
buildMapClickMessageWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds)
Perform a query based upon the map click location and build a info message
|
String |
buildMapClickMessageWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
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,
Projection projection)
Perform a query based upon the map click location and build feature table data
|
FeatureTableData |
buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds)
Perform a query based upon the map click location and build feature table data
|
FeatureTableData |
buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
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
|
String |
buildResultsInfoMessage(FeatureIndexResults results)
Build a feature results information message
|
String |
buildResultsInfoMessage(FeatureIndexResults results,
LatLng clickLocation)
Build a feature results information message
|
String |
buildResultsInfoMessage(FeatureIndexResults results,
LatLng clickLocation,
Projection projection)
Build a feature results information message
|
String |
buildResultsInfoMessage(FeatureIndexResults results,
Projection projection)
Build a feature results information message
|
String |
buildResultsInfoMessageAndClose(FeatureIndexResults results)
Build a feature results information message and close the results
|
String |
buildResultsInfoMessageAndClose(FeatureIndexResults results,
LatLng clickLocation)
Build a feature results information message and close the results
|
String |
buildResultsInfoMessageAndClose(FeatureIndexResults results,
LatLng clickLocation,
Projection projection)
Build a feature results information message and close the results
|
String |
buildResultsInfoMessageAndClose(FeatureIndexResults results,
Projection projection)
Build a feature results information message and close the results
|
FeatureTableData |
buildTableDataAndClose(FeatureIndexResults results,
LatLng clickLocation)
Build a feature results information message
|
FeatureTableData |
buildTableDataAndClose(FeatureIndexResults results,
LatLng clickLocation,
Projection projection)
Build a feature results information message
|
void |
close()
Close the feature overlay query connection
|
BoundedOverlay |
getBoundedOverlay()
Get the bounded overlay
|
float |
getCurrentZoom(GoogleMap map)
Get the current zoom level of the map
|
FeatureTiles |
getFeatureTiles()
Get the feature tiles
|
GeometryType |
getGeometryType()
Get the geometry type
|
int |
getMaxFeatureDetailedInfo()
Get the max features in a query to print detailed results about
|
int |
getMaxPointDetailedInfo()
Get the max points in a query to print detailed results about
|
String |
getName()
Get the name used in text
|
float |
getScreenClickPercentage()
Get the screen click percentage, between 0.0 and 1.0
|
boolean |
isDetailedInfoPrintFeatures()
Is the detailed info going to print feature geometries
|
boolean |
isDetailedInfoPrintPoints()
Is the detailed info going to print point geometries
|
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
|
void |
projectGeometry(GeoPackageGeometryData geometryData,
Projection projection)
Project the geometry into the provided projection
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox)
Query for features in the WGS84 projected bounding box
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox,
Projection projection)
Query for features in the bounding box
|
void |
setDetailedInfoPrintFeatures(boolean detailedInfoPrintFeatures)
Set the detailed info to print feature geometries
|
void |
setDetailedInfoPrintPoints(boolean detailedInfoPrintPoints)
Set the detailed info to print point geometries
|
void |
setMaxFeatureDetailedInfo(int maxFeatureDetailedInfo)
Set the max features in a query to print detailed results about
|
void |
setMaxPointDetailedInfo(int maxPointDetailedInfo)
Set the max points in a query to print detailed results about
|
void |
setName(String name)
Set the name used in text
|
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 - featureOverlay - public FeatureOverlayQuery(Context context, BoundedOverlay boundedOverlay, FeatureTiles featureTiles)
context - boundedOverlay - featureTiles - public void close()
public BoundedOverlay getBoundedOverlay()
public FeatureTiles getFeatureTiles()
public GeometryType getGeometryType()
public String getName()
public void setName(String name)
name - public float getScreenClickPercentage()
public void setScreenClickPercentage(float screenClickPercentage)
screenClickPercentage - public int getMaxPointDetailedInfo()
public void setMaxPointDetailedInfo(int maxPointDetailedInfo)
maxPointDetailedInfo - public int getMaxFeatureDetailedInfo()
public void setMaxFeatureDetailedInfo(int maxFeatureDetailedInfo)
maxFeatureDetailedInfo - public boolean isDetailedInfoPrintPoints()
public void setDetailedInfoPrintPoints(boolean detailedInfoPrintPoints)
detailedInfoPrintPoints - public boolean isDetailedInfoPrintFeatures()
public void setDetailedInfoPrintFeatures(boolean detailedInfoPrintFeatures)
detailedInfoPrintFeatures - public float getCurrentZoom(GoogleMap map)
map - public boolean isOnAtCurrentZoom(GoogleMap map,
LatLng latLng)
map - latLng - 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 - public BoundingBox buildClickBoundingBox(LatLng latLng, View view, GoogleMap map)
latLng - click locationview - viewmap - Google mappublic 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, Projection projection)
boundingBox - query bounding boxprojection - bounding box projectionpublic boolean isIndexed()
public String buildMaxFeaturesInfoMessage(long tileFeaturesCount)
tileFeaturesCount - public String buildResultsInfoMessageAndClose(FeatureIndexResults results)
results - feature index resultspublic String buildResultsInfoMessageAndClose(FeatureIndexResults results, Projection projection)
results - feature index resultsprojection - desired geometry projectionpublic String buildResultsInfoMessageAndClose(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation - public String buildResultsInfoMessageAndClose(FeatureIndexResults results, LatLng clickLocation, Projection projection)
results - clickLocation - projection - desired geometry projectionpublic String buildResultsInfoMessage(FeatureIndexResults results)
results - public String buildResultsInfoMessage(FeatureIndexResults results, Projection projection)
results - projection - desired geometry projectionpublic String buildResultsInfoMessage(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation - public String buildResultsInfoMessage(FeatureIndexResults results, LatLng clickLocation, Projection projection)
results - clickLocation - projection - desired geometry projectionpublic FeatureTableData buildTableDataAndClose(FeatureIndexResults results,
LatLng clickLocation)
results - clickLocation - public FeatureTableData buildTableDataAndClose(FeatureIndexResults results,
LatLng clickLocation,
Projection projection)
results - clickLocation - projection - desired geometry projectionpublic void projectGeometry(GeoPackageGeometryData geometryData, Projection projection)
geometryData - projection - public String buildMapClickMessage(LatLng latLng, View view, GoogleMap map)
latLng - locationview - viewmap - Google Mappublic String buildMapClickMessage(LatLng latLng, View view, GoogleMap map, Projection projection)
latLng - locationview - viewmap - Google Mapprojection - desired geometry projectionpublic String buildMapClickMessageWithMapBounds(LatLng latLng, double zoom, BoundingBox mapBounds)
latLng - locationzoom - current zoom levelmapBounds - map view boundspublic String buildMapClickMessageWithMapBounds(LatLng latLng, double zoom, BoundingBox mapBounds, Projection projection)
latLng - locationzoom - current zoom levelmapBounds - map view boundsprojection - desired geometry projectionpublic FeatureTableData buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map)
latLng - locationview - viewmap - Google Mappublic FeatureTableData buildMapClickTableData(LatLng latLng,
View view,
GoogleMap map,
Projection projection)
latLng - locationview - viewmap - Google Mapprojection - desired geometry projectionpublic FeatureTableData buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds)
latLng - locationzoom - current zoom levelmapBounds - map view boundspublic FeatureTableData buildMapClickTableDataWithMapBounds(LatLng latLng,
double zoom,
BoundingBox mapBounds,
Projection projection)
latLng - locationzoom - current zoom levelmapBounds - map view boundsprojection - desired geometry projection