Debugging Missing Mapbox Vector Tile Features
Features missing from your Mapbox map? Check the vector tile's zoom range and attributes before rewriting your style.
12 Feb 2026, 08:38 UTC

Your Mapbox layer is empty, but the style has no errors
You added a vector tile source, wrote a fill layer, and the map loads without console errors—yet no polygons appear. The useful takeaway is that the problem is usually not the paint expression. It is that the vector tile does not contain the feature at the current zoom level, or the attribute you are filtering on is missing from the tile.
What a vector tile actually holds
A vector tile is a binary package of geometries and attributes for a specific geographic bounding box and zoom level. Unlike an image tile, it carries raw feature data that the Mapbox GL JS client renders. Each tileset declares a minzoom and maxzoom. If you request a tile outside that range, the server returns nothing or an empty tile. Attributes such as name or type exist only if the tile generator included them.
Worked example: inspect a live layer from the browser console
Open your map in a browser, open Developer Tools, and click the Console tab. No special permissions are required. The viewport is the visible portion of the map. Run the following after the map has loaded, replacing MAP_INSTANCE with your map variable and LAYER_ID with the id of the layer that should show features:
const features = MAP_INSTANCE.queryRenderedFeatures({ layers: ['LAYER_ID'] });
console.log(features.length, features.slice(0, 3));Expected check: if the array is empty at the current viewport and zoom, either no features intersect the visible bounds or the layer's source has no data at this zoom. Inspect one returned feature to confirm the attribute names:
console.log(features[0]?.properties);Risk: queryRenderedFeatures only returns features the client has already rendered for the current viewport. An empty result does not prove the tileset is empty everywhere; it proves nothing is visible right now.
Check the tileset's zoom range in the style JSON
Inspect the map style to confirm the source covers the zoom you are viewing. In the console:
const style = MAP_INSTANCE.getStyle();
const source = style.sources['YOUR_SOURCE_ID'];
console.log(source.minzoom, source.maxzoom);Replace YOUR_SOURCE_ID with the source id from your style. If minzoom is 6 and you are at zoom 4, the tile request returns no features. Raising maxzoom can make features appear at closer zoom levels, but it increases tile size and hosting cost because each tile covers a smaller area and may carry more detailed geometry.
Common symptoms and likely causes
| Symptom | Likely cause |
|---|---|
| No features at any zoom | Source URL or access token is wrong |
| Features appear only after zooming in | minzoom is set too high |
| Features disappear after zooming in | maxzoom is set too low, or data was simplified |
| Filter matches nothing | Attribute is missing from tile properties |
Trade-off: detail versus tile cost
Publishing tiles at higher zoom levels gives the client more geometry to render, which improves feature visibility but increases storage, bandwidth, and client memory use. There is no universal zoom setting; match it to the smallest feature you need users to see.
Practical verification
- Load the map at the zoom where features are missing.
- Run queryRenderedFeatures for the layer in the console.
- If the array is empty, check source.minzoom and source.maxzoom against the current map zoom.
- If the zoom range is correct, inspect feature.properties on a nearby visible feature to confirm the attribute used in your filter or paint expression exists.
If the attribute is absent, the fix belongs in the tile generation pipeline, not the Mapbox style JSON. This diagnostic applies to client-side rendering in Mapbox GL JS; it does not apply to static map images or server-side rendering.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.