Inspect tile
inspect_tileReads a vector tile at a given place and zoom to list source layers, feature counts, geometry types, and real field values, helping you write accurate filters and expressions.
Instructions
Reads the vector tile of a source at a place and zoom, and lists each source layer with its number of features, their geometry types, the values of each field and a few example features. It also gives the zoom range of the source and the source layers its metadata lists that the tile lacks. Use it to learn the values data really has, like the classes of roads, before writing filters and expressions. The source is either the id of a source in the style you pass, or the URL of a vector source: a TileJSON URL like a Martin source, a PMTiles archive, or a tile URL with {z}, {x} and {y}. Reads MVT and MLT tiles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of a style JSON document. | |
| path | No | Path to a style JSON file, relative to the directory the server runs in. | |
| zoom | No | Zoom level of the tile. Defaults to the zoom of the style, or the highest zoom of the source. | |
| layer | No | Only list this source layer. | |
| style | No | The style as a JSON object. | |
| center | No | [longitude, latitude] of the place to read. Defaults to the center of the style or the source. | |
| source | No | The id of a source in the style, or the URL of a vector source. Defaults to the only vector source of the style. | |
| examples | No | How many example features to show for each source layer. Defaults to 3. |