Tile Server Reference
grid[]
Grid: Custom grid definitionsdatasource[]
NamedDatasourcetileset[]
TileSet: Tileset configurationstilestore[]
TileCacheProvider
Grid
Custom grid definition
json
String: Grid JSON file path
TileSet
Tileset configuration
name
String: Tileset name, visible part of endpointtms[]
TilesetTms (optional): Tile matrix set identifiers (Default:["WebMercatorQuad"]
)- Source: Tile source
cache
String (optional): Tile cache name (Default: no cache)cache_format
String (optional): Tile format in store. Defaults topng
for raster andpbf
for vector tilescache_limits
CacheLimit (optional): Optional limits of zoom levels which should be cached. Tiles in other zoom levels are served from live data.cache_control[]
CacheControl (optional): HTTP cache control headers
TilesetTms
Available tile grid with optional zoom levels
id
String: Tile matrix set identifierminzoom
u8 (optional): Minimum zoom level for which tiles are available (Default: 0).maxzoom
u8 (optional): Maximum zoom level for which tiles are available. Defaults to grid maxzoom (24 forWebMercatorQuad
).Viewers should use data from tiles at maxzoom when displaying the map at higher zoom levels.
Source
Tile sources
wms_proxy
Raster tiles from external WMS
source
String: Name ofwms_proxy
datasourcelayers
String
map_service
Raster tiles from map service
project
Stringsuffix
Stringlayers
Stringparams
String (optional): Additional WMS params like transparent=truetile_size
u16 (optional): Width and height of tile. Defaults to grid tile size (usually 256x256)
postgis
PostGIS datasource
datasource
String (optional): Name ofpostgis
datasource (Default: first with matching type)extent
Extent (optional)center
Option (optional): Longitude, latitude of map center (in WGS84).Viewers can use this value to set the default location.
start_zoom
u8 (optional): Start zoom level. Must be between minzoom and maxzoom.attribution
String (optional): Acknowledgment of ownership, authorship or copyright.postgis2
bool (optional): PostGIS 2 compatible query (without ST_AsMVT)diagnostics
TileDiagnostics (optional): Add diagnostics layerlayer[]
VectorLayer: Layer definitions
mbtiles
Tiles from MBTile archive
path
Path
pmtiles
Tiles from PMTile archive
path
Path
CacheLimit
Tile cache limits
minzoom
u8 (optional)maxzoom
u8 (optional)
CacheControl
HTTP cache control headers
max_age
u64:max-age
value in seconds (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives)minzoom
u8 (optional): Minimum zoom level (Default: 0).maxzoom
u8 (optional): Maximum zoom level.
Extent
minx
f64miny
f64maxx
f64maxy
f64
TileDiagnostics
reference_size
u64 (optional): Maximal tile size (uncompressed)
VectorLayer
PostGIS vector layer
name
String: Layer name.geometry_field
String (optional): Name of geometry field.geometry_type
String (optional): Type of geometry in PostGIS databasePOINT
|MULTIPOINT
|LINESTRING
|MULTILINESTRING
|POLYGON
|MULTIPOLYGON
|COMPOUNDCURVE
|CURVEPOLYGON
srid
i32 (optional): Spatial reference system of source data (PostGIS SRID)no_transform
bool (optional): Assume geometry is in grid SRSfid_field
String (optional): Name of feature ID fieldtable_name
String (optional): Select all fields from table (either table orquery
is required)query[]
VectorLayerQuery (optional): Custom queriesminzoom
u8 (optional): Minimal zoom level for which tiles are available.maxzoom
u8 (optional): Maximum zoom level for which tiles are available.query_limit
u32 (optional): Maximal number of features to read for a single tile (Default: unlimited).tile_size
u32 (optional): Width and height of the tile (Default: 4096. Grid default size is 256)buffer_size
u32 (optional): Tile buffer size in pixels (None: no clipping)simplify
bool (optional): Simplify geometry (lines and polygons). (Default: false)Applied to PostGIS sources only.
tolerance
String (optional): Simplification tolerance (defaults to!pixel_width!/2
)make_valid
bool (optional): Fix invalid geometries after simplification (Default: false)Remark: Clipping step does also fix invalid geometries.
shift_longitude
bool (optional): Apply ST_Shift_Longitude to (transformed) bbox. (Default: false)
VectorLayerQuery
minzoom
u8 (optional): Minimal zoom level for using this query.maxzoom
u8 (optional): Maximal zoom level for using this query.simplify
bool (optional): Simplify geometry (override layer default setting)tolerance
String (optional): Simplification tolerance (override layer default setting)sql
String (optional): User defined SQL query.The following variables are replaced at runtime:
!bbox!
: Bounding box of tile!zoom!
: Zoom level of tile request!x!
,!y!
: x, y of tile request (disables geometry filter)!scale_denominator!
: Map scale of tile request!pixel_width!
: Width of pixel in grid units!<fieldname>!
: Custom field query variable
TileCacheProvider
name
String: Name of tile cachecompression
StoreCompression (optional): Tile compression method. Default is store type dependent.- TileStore: Tile store
StoreCompression
Tile data compression
None
No compression
Gzip
Gzip compression. Default for MBTiles and PMTiles.
TileStore
Tile stores
files
File system tiles store
base_dir
Path: Base directory, tileset name will be appendeddeduplication
FileDedup (optional): Tile deduplication method. Defaults toHardlink
for seeding andOff
for serving.
s3
S3 tile store
path
String
mbtiles
MBTile archive
path
Path
pmtiles
PMTile archive
path
Path
nostore
Disable tile cache
FileDedup
Tile deduplication method.