Package mil.nga.gars.tile
Class GARSTileProvider
java.lang.Object
mil.nga.gars.tile.GARSTileProvider
- All Implemented Interfaces:
TileProvider
GARS Tile Provider
-
Field Summary
Fields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE
-
Constructor Summary
ConstructorDescriptionGARSTileProvider
(int tileLength) ConstructorGARSTileProvider
(int tileWidth, int tileHeight) ConstructorGARSTileProvider
(int tileWidth, int tileHeight, Collection<GridType> types) ConstructorGARSTileProvider
(int tileWidth, int tileHeight, GridType... types) ConstructorGARSTileProvider
(int tileWidth, int tileHeight, Grids grids) ConstructorGARSTileProvider
(int tileLength, Collection<GridType> types) ConstructorGARSTileProvider
(int tileLength, GridType... types) ConstructorGARSTileProvider
(int tileLength, Grids grids) ConstructorGARSTileProvider
(Context context) ConstructorGARSTileProvider
(Context context, Collection<GridType> types) ConstructorGARSTileProvider
(Context context, GridType... types) ConstructorGARSTileProvider
(Context context, Grids grids) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic GARSTileProvider
create
(int tileLength) Create a tile provider with all gridsstatic GARSTileProvider
create
(int tileWidth, int tileHeight) Create a tile provider with all gridsstatic GARSTileProvider
create
(int tileWidth, int tileHeight, Collection<GridType> types) Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with gridsstatic GARSTileProvider
create
(int tileLength, Collection<GridType> types) Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with gridsstatic GARSTileProvider
Create a tile provider with all gridsstatic GARSTileProvider
create
(Context context, Collection<GridType> types) Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with grid typesstatic GARSTileProvider
Create a tile provider with gridsdrawTile
(int x, int y, int zoom) Draw the tilegetCoordinate
(LatLng latLng) Get the Global Area Reference System coordinate for the location in five minute precisiongetCoordinate
(LatLng latLng, int zoom) Get the Global Area Reference System coordinate for the location in the zoom level precisiongetCoordinate
(LatLng latLng, GridType type) Get the Global Area Reference System coordinate for the location in the grid type precisionGet the Global Area Reference System for the locationGet the gridgetGrids()
Get the gridsgetPrecision
(int zoom) Get the grid precision for the zoom levelgetTile
(int x, int y, int zoom) int
Get the tile heightint
Get the tile widthvoid
Set the gridsvoid
setTileHeight
(int tileHeight) Set the tile heightvoid
setTileWidth
(int tileWidth) Set the tile width
-
Constructor Details
-
GARSTileProvider
Constructor- Parameters:
context
- app context
-
GARSTileProvider
Constructor- Parameters:
context
- app contexttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
context
- app contexttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
context
- app contextgrids
- grids
-
GARSTileProvider
public GARSTileProvider(int tileLength) Constructor- Parameters:
tileLength
- tile width and height
-
GARSTileProvider
Constructor- Parameters:
tileLength
- tile width and heighttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
tileLength
- tile width and heighttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
tileLength
- tile width and heightgrids
- grids
-
GARSTileProvider
public GARSTileProvider(int tileWidth, int tileHeight) Constructor- Parameters:
tileWidth
- tile widthtileHeight
- tile height
-
GARSTileProvider
Constructor- Parameters:
tileWidth
- tile widthtileHeight
- tile heighttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
tileWidth
- tile widthtileHeight
- tile heighttypes
- grids types to enable
-
GARSTileProvider
Constructor- Parameters:
tileWidth
- tile widthtileHeight
- tile heightgrids
- grids
-
-
Method Details
-
create
Create a tile provider with all grids- Parameters:
context
- app context- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
context
- app contexttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
context
- app contexttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grids- Parameters:
context
- app contextgrids
- grids- Returns:
- tile provider
-
create
Create a tile provider with all grids- Parameters:
tileLength
- tile width and height- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
tileLength
- tile width and heighttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
tileLength
- tile width and heighttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grids- Parameters:
tileLength
- tile width and heightgrids
- grids- Returns:
- tile provider
-
create
Create a tile provider with all grids- Parameters:
tileWidth
- tile widthtileHeight
- tile height- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
tileWidth
- tile widthtileHeight
- tile heighttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grid types- Parameters:
tileWidth
- tile widthtileHeight
- tile heighttypes
- grids types to enable- Returns:
- tile provider
-
create
Create a tile provider with grids- Parameters:
tileWidth
- tile widthtileHeight
- tile heightgrids
- grids- Returns:
- tile provider
-
getTileWidth
public int getTileWidth()Get the tile width- Returns:
- tile width
-
setTileWidth
public void setTileWidth(int tileWidth) Set the tile width- Parameters:
tileWidth
- tile width
-
getTileHeight
public int getTileHeight()Get the tile height- Returns:
- tile height
-
setTileHeight
public void setTileHeight(int tileHeight) Set the tile height- Parameters:
tileHeight
- tile height
-
getGrids
Get the grids- Returns:
- grids
-
setGrids
Set the grids- Parameters:
grids
- grids
-
getGrid
Get the grid- Parameters:
type
- grid type- Returns:
- grid
-
getCoordinate
Get the Global Area Reference System coordinate for the location in five minute precision- Parameters:
latLng
- location- Returns:
- GARS coordinate
-
getCoordinate
Get the Global Area Reference System coordinate for the location in the zoom level precision- Parameters:
latLng
- locationzoom
- zoom level precision- Returns:
- GARS coordinate
-
getCoordinate
Get the Global Area Reference System coordinate for the location in the grid type precision- Parameters:
latLng
- locationtype
- grid type precision- Returns:
- GARS coordinate
-
getGARS
Get the Global Area Reference System for the location- Parameters:
latLng
- location- Returns:
- GARS
-
getPrecision
Get the grid precision for the zoom level- Parameters:
zoom
- zoom level- Returns:
- grid type precision
-
getTile
- Specified by:
getTile
in interfaceTileProvider
-
drawTile
Draw the tile- Parameters:
x
- x coordinatey
- y coordinatezoom
- zoom level- Returns:
- bitmap
-