Get a map layer from a query
Returns metadata and URLs to fetch a map layer built from a SQL query.
Omit format to get the full response with a URL per available format. Pass format to get that single format directly.
Path parameters
Name of the connection to use.
Query parameters
The SQL query, or the name of a named source.
Values for the parameters in the query, as a JSON string. Named object on BigQuery, positional array on Snowflake, Redshift and PostgreSQL.
Column holding the geometry or spatial index. Defaults to geom. Required from v=3.3 onwards.
Type of the spatial column. Defaults to geo. Required from v=3.3 onwards.
Legacy way to select the geometry column, in the form [spatialIndexType:]columnName. Use spatialDataColumn and spatialDataType instead — from v=3.3 this parameter returns 400.
Comma-separated list of columns to return.
Return a single format instead of the full response. Omit to get URLs for every available format.
Resolution of the generated tiles.
Aggregation expression applied when building spatial index tiles, for example SUM(population) as population.
Resolution level for spatial index aggregation. Requires aggregationExp. Defaults to 6 for quadbin and 4 for H3.
API version. From 3.3, spatialDataColumn and spatialDataType replace geo_column.
Response
Map layer metadata and download URLs.