public class FeatureOverlayQuery
extends java.lang.Object
| Constructor and Description |
|---|
FeatureOverlayQuery(android.content.Context context,
FeatureOverlay featureOverlay)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
buildClickBoundingBox(LatLng latLng,
android.view.View view,
GoogleMap map)
Build a bounding box using the click location, map view, and map.
|
java.lang.String |
buildMapClickMessage(LatLng latLng,
android.view.View view,
GoogleMap map)
Perform a query based upon the map click location and build a info message
|
java.lang.String |
buildMaxFeaturesInfoMessage(long tileFeaturesCount)
Get a max features information message
|
java.lang.String |
buildResultsInfoMessage(FeatureIndexResults results)
Build a feature results information message
|
java.lang.String |
buildResultsInfoMessage(FeatureIndexResults results,
LatLng clickLocation)
Build a feature results information message
|
java.lang.String |
buildResultsInfoMessageAndClose(FeatureIndexResults results)
Build a feature results information message and close the results
|
java.lang.String |
buildResultsInfoMessageAndClose(FeatureIndexResults results,
LatLng clickLocation)
Build a feature results information message and close the results
|
float |
getCurrentZoom(GoogleMap map)
Get the current zoom level of the map
|
FeatureOverlay |
getFeatureOverlay()
Get the feature overlay
|
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
|
java.lang.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 |
isMoreThanMaxFeatures(long tileFeaturesCount)
Determine if the provided count of features in the tile is more than the configured max features per tile
|
boolean |
isOnAtCurrentZoom(GoogleMap map)
Determine if the the feature overlay is on for the current zoom level of the map
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox)
Query for features in the WGS84 projected bounding box
|
FeatureIndexResults |
queryFeatures(BoundingBox boundingBox,
mil.nga.geopackage.projection.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(java.lang.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,
float 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
|
long |
tileFeatureCount(Point point,
float zoom)
Get the count of features in the tile at the point coordinate and zoom level
|
long |
tileFeatureCount(Point point,
int zoom)
Get the count of features in the tile at the point coordinate and zoom level
|
public FeatureOverlayQuery(android.content.Context context,
FeatureOverlay featureOverlay)
context - featureOverlay - public FeatureOverlay getFeatureOverlay()
public FeatureTiles getFeatureTiles()
public GeometryType getGeometryType()
public java.lang.String getName()
public void setName(java.lang.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)
map - public long tileFeatureCount(LatLng latLng,
float zoom)
latLng - lat lng locationzoom - zoom levelpublic long tileFeatureCount(LatLng latLng,
int zoom)
latLng - lat lng locationzoom - zoom levelpublic long tileFeatureCount(Point point,
float zoom)
point - point locationzoom - zoom levelpublic long tileFeatureCount(Point point,
int zoom)
point - point locationzoom - zoom levelpublic boolean isMoreThanMaxFeatures(long tileFeaturesCount)
tileFeaturesCount - public BoundingBox buildClickBoundingBox(LatLng latLng,
android.view.View view,
GoogleMap map)
latLng - click locationview - viewmap - Google mappublic FeatureIndexResults queryFeatures(BoundingBox boundingBox)
boundingBox - query bounding box in WGS84 projectionpublic FeatureIndexResults queryFeatures(BoundingBox boundingBox, mil.nga.geopackage.projection.Projection projection)
boundingBox - query bounding boxprojection - bounding box projectionpublic java.lang.String buildMaxFeaturesInfoMessage(long tileFeaturesCount)
tileFeaturesCount - public java.lang.String buildResultsInfoMessageAndClose(FeatureIndexResults results)
results - public java.lang.String buildResultsInfoMessageAndClose(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation - public java.lang.String buildResultsInfoMessage(FeatureIndexResults results)
results - public java.lang.String buildResultsInfoMessage(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation - public java.lang.String buildMapClickMessage(LatLng latLng,
android.view.View view,
GoogleMap map)
latLng - view - map -