class VectorTiles extends TileLayer<Tile> implements Renderable
A TileLayer for VectorTiles
| Modifiers | Name | Description |
|---|---|---|
static class |
VectorTiles.Factory |
The VectorTiles TileLayerFactory |
| Type | Name and description |
|---|---|
java.io.File |
dirThe File directory |
java.io.File |
fileThe MBTiles File |
Projection |
projThe Projection of the Layers |
Pyramid |
pyramidThe Pyramid structure |
Reader |
readerThe Layer Reader |
java.lang.Object |
styleEither a Style or a Map of Styles by Layer name |
java.lang.String |
typeThe vector tile type (json, pbf) |
java.net.URL |
urlThe base URL |
| Constructor and description |
|---|
VectorTiles
(Map options, java.lang.String name, java.io.File file, Pyramid pyramid, java.lang.String type)Create a new VectorTiles TileLayer for a directory |
VectorTiles
(Map options, java.lang.String name, java.net.URL url, Pyramid pyramid, java.lang.String type)Create a new VectorTiles TileLayer for a URL |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
close()Close the TileLayer |
|
void |
delete(Tile t)Delete a Tile |
|
Tile |
get(long z, long x, long y)Get a Tile |
|
java.util.List<Layer> |
getLayers(TileCursor<Tile> cursor)Get a List of Layers for the Tiles in the TileCursor |
|
java.util.List<org.geotools.map.Layer> |
getMapLayers(Bounds bounds, java.util.List size) |
|
Pyramid |
getPyramid()Get the Pyramid |
|
void |
put(Tile t)Add a Tile |
The File directory
The MBTiles File
The Projection of the Layers
The Pyramid structure
The Layer Reader
Either a Style or a Map of Styles by Layer name
The vector tile type (json, pbf)
The base URL
Create a new VectorTiles TileLayer for a directory
options - The optional named parameters
name - The name of the TileLayerfile - The directory of the Tiles or the MBTiles Filepyramid - The Pyramidtype - The type (pbf, mvt, geojson, kml)Create a new VectorTiles TileLayer for a URL
options - The optional named parameters
name - The name of the TileLayerurl - The base URLpyramid - The Pyramidtype - The type (pbf, mvt, geojson, kml)Close the TileLayer
Delete a Tile
t - The TileGet a Tile
z - The zoom levelx - The columny - The rowGet a List of Layers for the Tiles in the TileCursor
cursor - The TileCursorGet the Pyramid
Add a Tile
t - The TileGroovy Documentation