abstract class TileLayer<T extends Tile> extends java.lang.Object implements java.io.Closeable
A TileLayer
Type | Name and description |
---|---|
Bounds |
bounds The Bounds |
java.lang.String |
name The name |
Projection |
proj The Projection |
Constructor and description |
---|
TileLayer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract void |
close() Close the TileLayer |
|
abstract void |
delete(T t) Delete a Tile |
|
void |
delete(TileCursor<T> tiles) Delete all of the Tiles in the TileCursor |
|
abstract T |
get(long z, long x, long y) Get a Tile |
|
Layer |
getLayer(Map options, TileCursor cursor) Get a Layer of the Tiles in a TileCursor |
|
abstract Pyramid |
getPyramid() Get the Pyramid |
|
Map |
getTileCoordinates(Bounds b, Grid g) Get Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and Grid |
|
static TileLayer |
getTileLayer(java.lang.String paramsStr) Get a TileLayer from a string of connection parameters. |
|
static TileLayer |
getTileLayer(Map params) Get a TileLayer from a connection parameter Map. |
|
static TileRenderer |
getTileRenderer(Map options, TileLayer tileLayer, Layer layer) Get a default TileRenderer for the given TileLayer. |
|
static TileRenderer |
getTileRenderer(Map options, TileLayer tileLayer, java.util.List<Layer> layers) Get a default TileRenderer for the given TileLayer. |
|
abstract void |
put(T t) Add a Tile |
|
TileCursor<T> |
tiles(long z) Get a TileCursor for all the Tiles in the zoom level |
|
TileCursor<T> |
tiles(long z, long minX, long minY, long maxX, long maxY) Get a TileCursor for all the Tiles in the zoom level for the given columns and rows |
|
TileCursor<T> |
tiles(Bounds b, long z) Get a TileCursor for all the Tiles within the given Bounds |
|
TileCursor<T> |
tiles(Bounds b, double resX, double resY) Get a TileCursor for all the Tiles within the given Bounds and resolutions |
|
TileCursor<T> |
tiles(Bounds b, int w, int h) Get a TileCursor for all the Tiles withing the given Bounds and image size |
|
TileCursor<T> |
tiles(java.awt.Point p, long z, int w, int h) Get a TileCursor for all Tiles centered on a Point for a given zoom level that fill an image of a certain width and height |
|
java.lang.String |
toString() |
|
static void |
withTileLayer(TileLayer tileLayer, groovy.lang.Closure closure) Use a TileLayer within a Closure and make sure it gets closed. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The Bounds
The name
The Projection
Close the TileLayer
Delete a Tile
t
- The TileDelete all of the Tiles in the TileCursor
tiles
- The TileCursorGet a Tile
z
- The zoom levelx
- The columny
- The rowGet a Layer of the Tiles in a TileCursor @return
options
- Optional named parameters
Get the Pyramid
Get Tile coordinates (minX, minY, maxX, maxY) for the given Bounds and Grid
b
- The Boundsg
- The GridGet a TileLayer from a string of connection parameters.
paramsStr
- The connection parameter stringGet a TileLayer from a connection parameter Map.
params
- A Map of connection parameters.
Get a default TileRenderer for the given TileLayer.
options
- The optional named parameters:
tileLayer
- The TileLayerlayer
- The LayerGet a default TileRenderer for the given TileLayer.
options
- The optional named parameters:
tileLayer
- The TileLayerlayers
- The List of Layers (some TileRenderers can only render one Layer at a time)Add a Tile
t
- The TileGet a TileCursor for all the Tiles in the zoom level
z
- The zoom levelGet a TileCursor for all the Tiles in the zoom level for the given columns and rows
z
- The zoom levelminX
- The min x or columnminY
- The min y or rowmaxX
- The max x or columnmaxY
- The max y or rowGet a TileCursor for all the Tiles within the given Bounds
z
- The zoom levelb
- The BoundsGet a TileCursor for all the Tiles within the given Bounds and resolutions
b
- The BoundsresX
- The x resolutionresY
- The y resolutionGet a TileCursor for all the Tiles withing the given Bounds and image size
b
- The Boundsw
- The image widthh
- The image heightGet a TileCursor for all Tiles centered on a Point for a given zoom level that fill an image of a certain width and height
p
- The Point (in the TileLayer's Projection)z
- The zoom levelw
- The image widthh
- The image heightUse a TileLayer within a Closure and make sure it gets closed.
tileLayer
- The TileLayerclosure
- A Closure that takes the TileLayerGroovy Documentation