I have setup a geoserver with Postgres/PostGIS data store and enabled the geoserver vectortiles plugin. After loading up layers in the geoserver, the maps can be seen using the Openlayers interface provided by geoserver portal. Following this, I have been trying to get these tiles to render on front-end using a Openlayers, following the tutorial here.
The code works like charm for the sample world map data given with the tutorial but while trying to render any other map layer that I have in Postgres data store, it shows up blank.
My data in confined to a small region (country India) rather than the whole world and uses the projection system 'EPSG:4326'. The only changes made in the tutorial code is the layer name and projection_epsg_no.
The requests being made to geoserver return an empty response (no errors). This is the request URL: http://localhost:8080/geoserver/gwc/service/tms/1.0.0/layer_name@EPSG:4326@pbf/0/0/0.pbf