gbif_maps_get_vector_tile_url
Generate Mapbox Vector Tile URLs for GBIF occurrence data to render client-side styled, interactive maps in Mapbox GL JS, Leaflet, or OpenLayers, with filters for taxon, country, year, or dataset.
Instructions
Generate URL for occurrence vector tiles in Mapbox Vector Tile (MVT) format. Vector tiles enable client-side styling, interactivity, and dynamic rendering. Ideal for web mapping libraries like Mapbox GL JS, Leaflet with vector tile plugins, or OpenLayers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Tile column number. Horizontal position in tile grid. Valid range: 0 to (2^z - 1). | |
| y | Yes | Tile row number. Vertical position in tile grid. Valid range: 0 to (2^z - 1). | |
| z | Yes | Zoom level (0-20). Controls detail level and tile grid size. Standard web Mercator zoom levels. | |
| year | No | Filter by year or year range. Format: "2024" or "2020,2024". | |
| style | No | Style name for vector tiles. Common: "classic.poly", "green.poly". Get available styles from gbif_maps_list_styles. | |
| country | No | Filter to specific country. 2-letter ISO code. Example: "US". | |
| taxonKey | No | Filter to specific taxon. GBIF taxon key. Example: 212 (birds). | |
| datasetKey | No | Filter to specific dataset. Dataset UUID. | |
| basisOfRecord | No | Filter by record type. Example: HUMAN_OBSERVATION, PRESERVED_SPECIMEN. |