public class FeatureTiles
extends java.lang.Object
| Constructor and Description |
|---|
FeatureTiles(android.content.Context context,
FeatureDao featureDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateDrawOverlap()
Call after making changes to the point icon, point radius, or paint stroke widths.
|
android.graphics.Bitmap |
drawTile(BoundingBox boundingBox,
FeatureCursor cursor)
Draw a tile bitmap from feature geometries in the provided cursor
|
android.graphics.Bitmap |
drawTile(BoundingBox boundingBox,
java.util.List<FeatureRow> featureRow)
Draw a tile bitmap from the feature rows
|
android.graphics.Bitmap |
drawTile(int x,
int y,
int zoom)
Draw a tile bitmap from the x, y, and zoom level
|
byte[] |
drawTileBytes(int x,
int y,
int zoom)
Draw the tile and get the bytes from the x, y, and zoom level
|
android.graphics.Bitmap |
drawTileQueryAll(int x,
int y,
int zoom)
Draw a tile bitmap from the x, y, and zoom level by querying all features.
|
android.graphics.Bitmap |
drawTileQueryIndex(int x,
int y,
int zoom)
Draw a tile bitmap from the x, y, and zoom level by querying features in the tile location
|
android.graphics.Bitmap.CompressFormat |
getCompressFormat()
Get the compress format
|
FeatureDao |
getFeatureDao()
Get the feature DAO
|
float |
getHeightDrawOverlap()
Get the height draw overlap
|
FeatureIndexManager |
getIndexManager()
Get the index manager
|
android.graphics.Paint |
getLinePaint()
Get the line paint
|
java.lang.Integer |
getMaxFeaturesPerTile()
Get the max features per tile
|
CustomFeaturesTile |
getMaxFeaturesTileDraw()
Get the max features tile draw, the custom tile drawing implementation for tiles with more
features than the max at #getMaxFeaturesPerTile
|
FeatureTilePointIcon |
getPointIcon()
Get the point icon
|
android.graphics.Paint |
getPointPaint()
Get point paint
|
float |
getPointRadius()
Get the point radius
|
android.graphics.Paint |
getPolygonFillPaint()
Get the polygon fill paint
|
android.graphics.Paint |
getPolygonPaint()
Get the polygon paint
|
int |
getTileHeight()
Get the tile height
|
int |
getTileWidth()
Get the tile width
|
float |
getWidthDrawOverlap()
Get the width draw overlap
|
boolean |
isFillPolygon()
Is fill polygon
|
boolean |
isIndexQuery()
Is index query
|
FeatureIndexResults |
queryIndexedFeatures(BoundingBox webMercatorBoundingBox)
Query for feature results in the x, y, and zoom level by querying features in the tile location
|
long |
queryIndexedFeaturesCount(int x,
int y,
int zoom)
Draw a tile bitmap from the x, y, and zoom level by querying features in the tile location
|
void |
setCompressFormat(android.graphics.Bitmap.CompressFormat compressFormat)
Set the compress format
|
void |
setDrawOverlap(float pixels)
Manually set the width and height draw overlap
|
void |
setFillPolygon(boolean fillPolygon)
Set the fill polygon
|
void |
setHeightDrawOverlap(float pixels)
Manually set the height draw overlap
|
void |
setIndexManager(FeatureIndexManager indexManager)
Set the index
|
void |
setLinePaint(android.graphics.Paint linePaint)
Set the line paint
|
void |
setMaxFeaturesPerTile(java.lang.Integer maxFeaturesPerTile)
Set the max features per tile.
|
void |
setMaxFeaturesTileDraw(CustomFeaturesTile maxFeaturesTileDraw)
Set the max features tile draw, used to draw tiles when more features for a single tile
than the max at #getMaxFeaturesPerTile exist
|
void |
setPointIcon(FeatureTilePointIcon pointIcon)
Set the point icon
|
void |
setPointPaint(android.graphics.Paint pointPaint)
Set the point paint
|
void |
setPointRadius(float pointRadius)
Set the point radius
|
void |
setPolygonFillPaint(android.graphics.Paint polygonFillPaint)
Set the polygon fill paint
|
void |
setPolygonPaint(android.graphics.Paint polygonPaint)
Set the polygon paint
|
void |
setTileHeight(int tileHeight)
Set the tile height
|
void |
setTileWidth(int tileWidth)
Set the tile width
|
void |
setWidthDrawOverlap(float pixels)
Manually set the width draw overlap
|
public FeatureTiles(android.content.Context context,
FeatureDao featureDao)
context - featureDao - public void calculateDrawOverlap()
public void setDrawOverlap(float pixels)
pixels - public float getWidthDrawOverlap()
public void setWidthDrawOverlap(float pixels)
pixels - public float getHeightDrawOverlap()
public void setHeightDrawOverlap(float pixels)
pixels - public FeatureDao getFeatureDao()
public boolean isIndexQuery()
public FeatureIndexManager getIndexManager()
public void setIndexManager(FeatureIndexManager indexManager)
indexManager - public int getTileWidth()
public void setTileWidth(int tileWidth)
tileWidth - public int getTileHeight()
public void setTileHeight(int tileHeight)
tileHeight - public android.graphics.Bitmap.CompressFormat getCompressFormat()
public void setCompressFormat(android.graphics.Bitmap.CompressFormat compressFormat)
compressFormat - public float getPointRadius()
public void setPointRadius(float pointRadius)
pointRadius - public android.graphics.Paint getPointPaint()
public void setPointPaint(android.graphics.Paint pointPaint)
pointPaint - public FeatureTilePointIcon getPointIcon()
public void setPointIcon(FeatureTilePointIcon pointIcon)
pointIcon - public android.graphics.Paint getLinePaint()
public void setLinePaint(android.graphics.Paint linePaint)
linePaint - public android.graphics.Paint getPolygonPaint()
public void setPolygonPaint(android.graphics.Paint polygonPaint)
polygonPaint - public boolean isFillPolygon()
public void setFillPolygon(boolean fillPolygon)
fillPolygon - public android.graphics.Paint getPolygonFillPaint()
public void setPolygonFillPaint(android.graphics.Paint polygonFillPaint)
polygonFillPaint - public java.lang.Integer getMaxFeaturesPerTile()
public void setMaxFeaturesPerTile(java.lang.Integer maxFeaturesPerTile)
maxFeaturesPerTile - public CustomFeaturesTile getMaxFeaturesTileDraw()
CustomFeaturesTile,
custom features tile implementationpublic void setMaxFeaturesTileDraw(CustomFeaturesTile maxFeaturesTileDraw)
maxFeaturesTileDraw - CustomFeaturesTile,
custom features tile implementationpublic byte[] drawTileBytes(int x,
int y,
int zoom)
x - y - zoom - public android.graphics.Bitmap drawTile(int x,
int y,
int zoom)
x - y - zoom - public android.graphics.Bitmap drawTileQueryIndex(int x,
int y,
int zoom)
x - y - zoom - public long queryIndexedFeaturesCount(int x,
int y,
int zoom)
x - y - zoom - public FeatureIndexResults queryIndexedFeatures(BoundingBox webMercatorBoundingBox)
webMercatorBoundingBox - public android.graphics.Bitmap drawTileQueryAll(int x,
int y,
int zoom)
x - y - zoom - public android.graphics.Bitmap drawTile(BoundingBox boundingBox,
FeatureCursor cursor)
boundingBox - cursor - public android.graphics.Bitmap drawTile(BoundingBox boundingBox,
java.util.List<FeatureRow> featureRow)
boundingBox - featureRow -