I want to use Mapbox GL to render vector tiles that I am generating from PostGIS requests. I have built a tile server using Mapnik, sphericalmecator, and pg plugins for npm. I added the tile endpoint to the stylesheet for Mapbox GL, and have confirmed that the correct tiles are requested, but the tiles are not rendered on the map. I used the same backend for a leaflet plugin and it works correctly, so I’m not sure I have to change the backend. Any advice is appreciated. Code is below. I want to use Mapbox GL to render vector tiles that I am generating from PostGIS requests. I have built a tile server using Mapnik, sphericalmecator, and pg plugins for npm. I added the tile endpoint to the stylesheet for Mapbox GL, and have confirmed that the correct tiles are requested, but the tiles are not rendered on the map. I used the same backend for a leaflet plugin and it works correctly, so I’m not sure I have to change the backend. Any advice is appreciated. Code is below. ‘SELECT row_to_json(fc) FROM ( SELECT ‘FeatureCollection’ As type, array_to_json(array_agg(f)) As features FROM (SELECT ‘ So the .pbf files and the style JSON are definitely making it into the browser ok? Do you have another way to verify that the .pbf files are correctly generated? Can you load your vector tile source into Mapbox Studio Classic? and it worked some I’m wondering why it wouldn’t render for MapboxGL. Unfortunately Mapbox Studio Classic only impelements the TileJSON spec so I would have to create a new JSON for the tiles to be called. I tried this but it didn’t seem to work. You might have to step through the MapboxGL code to see where it’s going wrong. Maybe it’s rendering in the wrong place, maybe it’s invisible, maybe the style ends up with nothing rendered, maybe the whole layer is invisible for some reason… Source.