abstract class TileLayer extends java.lang.Object
A TileLayer
| Type | Name and description | 
|---|---|
private Bounds  | 
                            boundsThe Bounds  | 
                        
private java.lang.String  | 
                            nameThe name  | 
                        
private Projection  | 
                            projThe Projection  | 
                        
| Constructor and description | 
|---|
                                TileLayer
                                () | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            close()Close the TileLayer  | 
                        
 | 
                            void | 
                            delete(T t)Delete a Tile 
  | 
                        
 | 
                            void | 
                            delete(TileCursor tiles)Delete all of the Tiles in the TileCursor 
  | 
                        
 | 
                            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  | 
                        
 | 
                            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, List layers)Get a default TileRenderer for the given TileLayer.  | 
                        
 | 
                            void | 
                            put(T t)Add a Tile 
  | 
                        
 | 
                            TileCursor | 
                            tiles(long z)Get a TileCursor for all the Tiles in the zoom level 
 
  | 
                        
 | 
                            TileCursor | 
                            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 | 
                            tiles(Bounds b, long z)Get a TileCursor for all the Tiles within the given Bounds 
 
  | 
                        
 | 
                            TileCursor | 
                            tiles(Bounds b, double resX, double resY)Get a TileCursor for all the Tiles within the given Bounds and resolutions 
 
  | 
                        
 | 
                            TileCursor | 
                            tiles(Bounds b, int w, int h)Get a TileCursor for all the Tiles withing the given Bounds and image size 
 
  | 
                        
 | 
                            TileCursor | 
                            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, 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, int), java.lang.Object#wait(long), 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
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 heightGroovy Documentation