Tile Server Reference
grid[]Grid: Custom grid definitionsdatasource[]NamedDatasourcetileset[]TileSet: Tileset configurationstilestore[]TileCacheProvider
Grid
Custom grid definition
jsonString: Grid JSON file path
TileSet
Tileset configuration
nameString: Tileset name, visible part of endpointtms[]TilesetTms (optional): Tile matrix set identifiers (Default:["WebMercatorQuad"])- Source: Tile source
cacheString (optional): Tile cache name (Default: no cache)cache_formatString (optional): Tile format in store. Defaults topngfor raster andpbffor vector tilescache_limitsCacheLimit (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
idString: Tile matrix set identifierminzoomu8 (optional): Minimum zoom level for which tiles are available (Default: 0).maxzoomu8 (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
sourceString: Name ofwms_proxydatasourcelayersString
map_service
Raster tiles from map service
projectStringsuffixStringlayersStringparamsString (optional): Additional WMS params like transparent=truetile_sizeu16 (optional): Width and height of tile. Defaults to grid tile size (usually 256x256)
postgis
PostGIS datasource
datasourceString (optional): Name ofpostgisdatasource (Default: first with matching type)extentExtent (optional)centerOption (optional): Longitude, latitude of map center (in WGS84).Viewers can use this value to set the default location.
start_zoomu8 (optional): Start zoom level. Must be between minzoom and maxzoom.attributionString (optional): Acknowledgment of ownership, authorship or copyright.postgis2bool (optional): PostGIS 2 compatible query (without ST_AsMVT)diagnosticsTileDiagnostics (optional): Add diagnostics layerlayer[]VectorLayer: Layer definitions
mbtiles
Tiles from MBTile archive
pathPath
pmtiles
Tiles from PMTile archive
pathPath
CacheLimit
Tile cache limits
minzoomu8 (optional)maxzoomu8 (optional)
CacheControl
HTTP cache control headers
max_ageu64:max-agevalue in seconds (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives)minzoomu8 (optional): Minimum zoom level (Default: 0).maxzoomu8 (optional): Maximum zoom level.
Extent
minxf64minyf64maxxf64maxyf64
TileDiagnostics
reference_sizeu64 (optional): Maximal tile size (uncompressed)
VectorLayer
PostGIS vector layer
nameString: Layer name.geometry_fieldString (optional): Name of geometry field.geometry_typeString (optional): Type of geometry in PostGIS databasePOINT|MULTIPOINT|LINESTRING|MULTILINESTRING|POLYGON|MULTIPOLYGON|COMPOUNDCURVE|CURVEPOLYGONsridi32 (optional): Spatial reference system of source data (PostGIS SRID)no_transformbool (optional): Assume geometry is in grid SRSfid_fieldString (optional): Name of feature ID fieldtable_nameString (optional): Select all fields from table (either table orqueryis required)query[]VectorLayerQuery (optional): Custom queriesminzoomu8 (optional): Minimal zoom level for which tiles are available.maxzoomu8 (optional): Maximum zoom level for which tiles are available.query_limitu32 (optional): Maximal number of features to read for a single tile (Default: unlimited).tile_sizeu32 (optional): Width and height of the tile (Default: 4096. Grid default size is 256)buffer_sizeu32 (optional): Tile buffer size in pixels (None: no clipping)simplifybool (optional): Simplify geometry (lines and polygons). (Default: false)Applied to PostGIS sources only.
toleranceString (optional): Simplification tolerance (defaults to!pixel_width!/2)make_validbool (optional): Fix invalid geometries after simplification (Default: false)Remark: Clipping step does also fix invalid geometries.
shift_longitudebool (optional): Apply ST_Shift_Longitude to (transformed) bbox. (Default: false)
VectorLayerQuery
minzoomu8 (optional): Minimal zoom level for using this query.maxzoomu8 (optional): Maximal zoom level for using this query.simplifybool (optional): Simplify geometry (override layer default setting)toleranceString (optional): Simplification tolerance (override layer default setting)sqlString (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
nameString: Name of tile cachecompressionStoreCompression (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_dirPath: Base directory, tileset name will be appendeddeduplicationFileDedup (optional): Tile deduplication method. Defaults toHardlinkfor seeding andOfffor serving.
s3
S3 tile store
pathString
mbtiles
MBTile archive
pathPath
pmtiles
PMTile archive
pathPath
nostore
Disable tile cache
FileDedup
Tile deduplication method.