class VectorTiles extends TileLayer
A TileLayer for VectorTiles
Modifiers | Name | Description |
---|---|---|
static class |
VectorTiles.Factory |
The VectorTiles TileLayerFactory |
Type | Name and description |
---|---|
private File |
dir The File directory |
private File |
file The MBTiles File |
private Projection |
proj The Projection of the Layers |
private Pyramid |
pyramid The Pyramid structure |
private Reader |
reader The Layer Reader |
private java.lang.Object |
style Either a Style or a Map of Styles by Layer name |
private java.lang.String |
type The vector tile type (json, pbf) |
private URL |
url The base URL |
Constructor and description |
---|
VectorTiles
(Map options, java.lang.String name, File file, Pyramid pyramid, java.lang.String type) Create a new VectorTiles TileLayer for a directory |
VectorTiles
(Map options, java.lang.String name, URL url, Pyramid pyramid, java.lang.String type) Create a new VectorTiles TileLayer for a URL |
VectorTiles
() |
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
|
|
List |
getLayers(TileCursor cursor) Get a List of Layers for the Tiles in the TileCursor
|
|
List |
getMapLayers(Bounds bounds, List size) |
|
Pyramid |
getPyramid() Get the Pyramid
|
|
void |
put(Tile t) Add a Tile
|
Methods inherited from class | Name |
---|---|
class TileLayer |
close, delete, delete, get, getLayer, getPyramid, getTileCoordinates, getTileLayer, getTileLayer, getTileRenderer, getTileRenderer, put, tiles, tiles, tiles, tiles, tiles, tiles, toString, withTileLayer |
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