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,
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 |
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 |
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
|
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(float 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,
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,
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(Context context, FeatureOverlay featureOverlay)
context - featureOverlay - public FeatureOverlayQuery(Context context, BoundedOverlay boundedOverlay, FeatureTiles featureTiles)
context - boundedOverlay - featureTiles - 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(float zoom,
LatLng latLng)
zoom - zoom levellatLng - lat lon locationpublic 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, 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, Projection projection)
boundingBox - query bounding boxprojection - bounding box projectionpublic boolean isIndexed()
public String buildMaxFeaturesInfoMessage(long tileFeaturesCount)
tileFeaturesCount - public String buildResultsInfoMessageAndClose(FeatureIndexResults results)
results - public String buildResultsInfoMessageAndClose(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation - public String buildResultsInfoMessage(FeatureIndexResults results)
results - public String buildResultsInfoMessage(FeatureIndexResults results, LatLng clickLocation)
results - clickLocation -